500 Internal server error: File is writeable by group
Issue:-
The site is showing 500 internal server error and found following error from the error log.
[Tue Jun 01 07:21:16 2021] [error] [client 122.165.240.98] File does not exist: /home/example/public_html/500.shtml
[Tue Jun 01 07:21:16 2021] [error] [client 122.165.240.98] SoftException in Application.cpp:256: File "/home/example/public_html/index.php" is writeable by group
Solution :-
No doubt, this is clearly a permissions error. So, you will need to check the file permissions of the file.
Here, the “/home/example/public_html/index.php” was having file permission ‘0664’.
As you know the default file permission should be ‘0644’.
So, in order to fix this error, you will need to change file’s permission from ‘0664’ to ‘0644’ using following command
chmod 0644 /home/example/public_html/index.php