File ".. /public_html/index.php" is writeable by group.

October 21, 2022 43hotness 0likes 0comments

Sometimes you may get a 500 page error (green/blue error page) when trying to run a PHP script in your account. When checking for errors, which you can do through cPanel account login, you may see the following line:

Internal Server Error
File “.. /public_html/index.php” is writeable by group.
suPHP 0.7.2
[Wed Jan 31 16:34:12 2011] [error] [client] SoftException in Application.cpp:256: File “/home/username/public_html/index.php” is writeable by group

This is because the server runs SuPHP and the files have higher permissions than allowed, to fix this problem you need to make sure your file is chmod 644 for all PHP based files and 755 for folders for them to work with SuPHP. You can easily do this by connecting via FTP to Filezilla and right clicking on the problematic folders and files and selecting file permissions.

Way 1
With hosting, you just need to select the wrong folder or file and select it again with set Permission

z3817768726581 cd89b028d233d4f1cc04cc70f519f7ab

Way 2
To fix this issue, just log into the server (we need SSH access to solve this) and run these 2 commands:

cd /home/username/public_html

Replace username by your user.

find foldername -type d -exec chmod 755 {} \;

find foldername -type f -exec chmod 644 {} \;

Replace 'folder name' with your project folder or if your file is in the root of public_html then use public_html folder name.

The first command here modified permissions for directories and the second command fixed file permissions.

Good luck !

If during the implementation process there is an error or problem, you can contact the technical department for help. Currently, BKHOST has the following contact ways:
• Contact via call center 024 7303 8088, then press 2 to meet BPKT.
• Submit a ticket through the website
• Live chat directly on the homepage


This person is a lazy dog and has left nothing