Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Fix the "SoftException in Application.cpp" Error

This error appears in the server log when a script is not allowed to run. Your visitors may see a 500 Internal Server Error. Here is how to fix it.

Dedicated Servers2 min read8 steps

What does it mean?

An error log is a diary where the web server writes its problems. A SoftException line often looks like one of these:

SoftException in Application.cpp:226: File "/home/user/public_html/index.php" is writeable by group
SoftException in Application.cpp:350: Script "/home/user/public_html/index.php" resolving to "..." not within configured docroot
SoftException in Application.cpp:193: UID of script is smaller than min_uid

The line numbers can change. What matters is the text after the colon.

The error comes from suPHP, a safety tool that runs your PHP scripts under your own user name. It stops anything that looks risky. This protects other accounts on the server.

What each message means

  • Writeable by group or others: the file or folder has too open permissions. Permissions are rules about who can read, write or run a file.
  • UID smaller than min_uid: the file belongs to a system user such as root. UID is the number that identifies a user.
  • Not within configured docroot: the script sits outside the folder suPHP expects, or a link points somewhere else.

Steps to fix it

Make a backup of your site before changing anything.

  1. Read the error log line. Note the file or folder path.
  2. Open the File Manager in your hosting panel.
  3. Go to that path.
  4. Set permissions to 755 on folders.
  5. Set permissions to 644 on files.
  6. Check the owner. It must be your account user, not root. On a VPS or dedicated server with root access, run the command below. Change username to the real account name.
chown -R username:username /home/username/public_html

This gives every file in the site back to the right owner.

  1. Check your .htaccess file. Remove any php_value or php_flag lines, because suPHP does not allow them and can cause a 500 error. Set PHP options in a php.ini file instead.
  2. Reload your website.
Tip: Avoid permission 777. It invites this error and is unsafe.

Still stuck? Open a ticket at the support page with the full log line.

Quick recap

  • SoftException means suPHP blocked a script as unsafe.
  • Read the text after the colon to learn why.
  • Use 755 for folders and 644 for files.
  • Make sure the owner is the account user.
  • Remove php_value lines from .htaccess.