Internal server error with 777 chmodded folders and files

For PHP applications to access MySQL databases or upload (write) files to site folder(s), the file and/or directory access permissions almost always need to be set open enough for the application to do its work. Unfortunately, this also allows any user with access to the Web server to read and/or modify files. Website vandals take advantage of this exploit to modify both the user's own website and other sites on the same server.

With SUPHP, the file permissions can then be set so that only the user can read the file, and the SUPHP page can write in any location where the owner can write.

 

Solution: chmod files and folders to 755 instead of 777.

Was this answer helpful?

 Print this Article

Also Read

How can I restore my account backup from my old host?

If you have a backup of your account that has been generated by cPanel, we can restore it for you...

Do you provide trial accounts?

No, but we we'll give your money back for 14 days if you're not happy with the service ;)...

SSH Commands - List

This is a list of common ssh commands. Useful for server owners :)   ls Displays everything in...

After every reboot, all the services fail and restart for the first few minutes, is this normal? (cPanel servers and Vps)

Yes, this is normal, and happens on all servers. After a reboot, you will see some or all...

Getting passive FTP connections to work through a firewall properly (VPS and Dedi common problem)

Introduction: So you installed a firewall, but it seems to have crippled passive ftp connections....

Need Help with

Deciding?

Talk to one of our hosting specialist who will review your needs and propose a tailored hosting solution that will match your specific business reality and needs.

need help