SoftException in Application.cpp:357: UID of script /usr/local/apache/htdocs/www/example.com/index.php" is smaller than min_uid
This error is caused by Apache and its because the script, in this case index.php, does not have the correct user and group ownership. Thus, Apache cannot access the file. Users and groups are used on Linux for access control, e.g to control access to the system's files, directories, and peripherals.
# ls -l ... -rw-r--r-- 1 root root 2845 Aug 1 22:37 index.php ...
How can i fix this?
To fix this, you will need the find the name of the Apache user. For example, in CentOS the name of the Apache user is nobody, and in Ubuntu is www-data. In CentOs, you can check this with the following Linux command:
# egrep -i '^user|^group' /etc/httpd/conf/httpd.conf
which gives you an output similar to this one:
User nobody Group nobody UserDir public_html UserDir disabled
Next, change the user and group ownership of your website root directory and files
# chown -R nobody:nobody /home/www/example.com/
also you might want to change the permissions to 755, if they are not already set.
# chmod -R 755 /home/www/example.com