Showing posts with label Permission. Show all posts
Showing posts with label Permission. Show all posts

Saturday 12 August 2017

SoftException in Application.cpp:668: is writable by group

500 Error: File is writable by group

On occasion you may get a 500 page error (a blue/green error) when trying to run a PHP file in your account. When checking the error log which you can do via the cPanel account log in you may see the following line:

[Sat Aug 12 00:57:37 2017] [error] [client 103.240.34.54] SoftException in Application.cpp:668: Directory "/home/username/public_html/index.php" is writeable by group

This is due to the server running SuPHP and the files having higher permissions than allowed, 
 
How to solve this issue
 
Fix this problem you need to make sure your files are chmod 644 for all PHP based files and 755 for directories in order for them to work with SuPHP. You can easily do this by connecting via FTP with Filezilla Not from Cpanel and right clicking on the problem folders and files and selecting file permissions. Also set  0755 permission on public_html directory.

Saturday 16 April 2016

How to ignore chmod/permission of files and directory changes on git/bitbucket

if you want a git/bitbucket repository to ignore permission changes (chmod),
type the following command into the Terminal while inside the git/bitbucket repository:

git config core.filemode false
It is usually possible to do this for all git repositories at once, instead of going one-by-one.
This is done by using the following command inside the Terminal (no need to be inside a git repository for this command):

git config --global core.filemode false