内部服务器错误阿帕奇问题


Internal Server Error apache issue

我在尝试向我的网站添加页面时遇到了一个奇怪的问题。

我实际上正在尝试在我的目录中创建一个"test.php",但是当我尝试访问它时,我得到了

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, contact@mywebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

我的.htaccess看起来像这样:

 RewriteEngine on
 RewriteCond %{HTTP_HOST} ^www'.mywebsite'.com [NC]
 RewriteRule (.*) http://mywebsite.com/$1 [R=301,L]
好的,

现在根据您发布的错误,它似乎是一个所有权问题。 从命令行创建您的 Web 目录,看看会发生什么。

chown -R apache: /home/krokoweb/public_html/

注意我使用用户" apache "作为示例。将 Web 用户用于您的文件的任何内容。例如 www-dataapachehttpd

看看这是怎么回事。