Lỗi softexception in application.cpp 261 file wordpress năm 2024

You might encounter with 500 Internal Server Errors on browser while browsing the site. While checking for the error logs you might find following error logs

[Wed Jun 23 07:04:04 2010] [error] [client XX.XX.XX.XX] File does not exist: /home/user/public_html/404.shtml SoftException in Application.cpp:357: UID of script “/home/user/public_html/test.php” is smaller than min_uid

If you get this error in the error logs just check the ownership of the files. These are all permission/ownership issues, indicating that the owner of the PHP files incorrect, or the permissions are higher than what is allowed in suphp.conf. It must be configured to user.user.

Just correct the ownership/permissions of the file. The error will be removed.

Yes you are correct. I didn't realise that before. I also changed all files other than php to 644. I think that's how they are meant to be. Thanks.

kspitzley replied on Sep 30, 2019 at 7:12 pm Reply

I just ran into this issue on Bluehost - I unzipped a fresh install onto the server and got a 500 error. Turns out composer.lock, composer.json, and index.php were "0664" permission and not "0644" like they should have been. have no idea why that happened but switching them to "0644" solved the problem.

kspitzley replied on Sep 30, 2019 at 8:08 pm Reply

Just a follow-up to this - it seems that when you extract a zipped folder through Bluehost's file manager, it chooses 0664 permissions for files [seems like this is a wordpress thing] - but when you manually upload the extracted files through an ftp client they come in as 0644.

SoftException in Application.cpp:267: File “/home/username/public_html/foldername/index.php” is writeable by group

The issue is due to folder and files permission not properly set and cPanel not allowing them to run on user end.

To fix this issue, simply login into server [we need SSH access to resolve this] and run the following 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 ‘foldername’ by your project folder or if your files are in root directory of public_html then use public_html folder name.

The first command here modified the permission for the folders and second one help in fixing the files permission.

Chủ Đề