I was setting up the Apache on CentOS server. My first testing script index.php as well as any others was causing:
500 Internal Server Error
I opened the log file (in my case /usr/local/apache/logs/error_log and /usr/local/apache/logs/suphp_log) and I found some entries as follows:
SoftException in Application.cpp:422: Mismatch between target UID (99) and UID (32010) of file "/usr/local/apache/htdocs/{DIRECTORY OF MY PROJECT}/index.php"
-AND-
[Wed Feb 11 15:16:03 2015] [warn] UID of script "/usr/local/apache/htdocs/{DIRECTORY OF MY PROJECT}/index.php" is smaller than min_uid
What I understood my fie permissions and/or ownership was wrong. Is there any recommended file ownership for website scripts in CentOS environment?