简体   繁体   中英

Wordpress 500 internal server error after changing permission

I changed my directory permission to 755. After that my wordpress home page goes blank and my network shows 500 internal server error. But my admin panel is working fine. My wp-admin goes to the admin panel and post edits can be made. But my front end completely fails to load.

In cpanel, the files permission should be 0644 and folder permission should be 0755 . You are getting the error because your index.php permission is 0755 . To set correct permissions you need to use these commands:

chown www-data:www-data -R *          # Let apache be owner
find . -type d -exec chmod 755 {} \;  # Change directory permissions rwxr-xr-x
find . -type f -exec chmod 644 {} \;  # Change file permissions rw-r--r--

you can visit this if you want to explore more .

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