繁体   English   中英

内部服务器错误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/$1 [R=301,L]

好吧,现在根据您发布的错误,它似乎就像是所有权问题。 从命令行中整理您的Web目录,看看会发生什么。

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

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

看看结果如何。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM