简体   繁体   中英

Internal Server Error apache issue

I've got a strange problem while trying to add pages to my website.

I'm actually trying to create a "test.php" in my directory, but when I try to access it, I've got

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.

My .htaccess looks like this :

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

Ok now according to your error you posted it appears to be like a ownership issue. chown your web directory from the command line and see what happens.

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

Note I used the user " apache " as example. Use whatever your web user is for your files. eg www-data , apache , httpd etc

See how that works out.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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