内部服务器错误 apache 问题

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/ [R=301,L]

好的,根据您发布的错误,这似乎是所有权问题。从命令行 chown 你的 web 目录,看看会发生什么。

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

注意我以用户“apache”为例。将您的网络用户用于您的文件。例如www-dataapachehttpd

看看结果如何。