How come my Apache can only access root owned files?
问题 Running apache on centos 6.4 and my web server can't see any files unless the root user creates or copies them. ps aux | grep apache shows that apache is running as apache user, not root. I tried chown apache:apache on the files. I even set chmod 777 on the files. -rwxrwxrwx. 1 apache apache 2300 May 15 17:46 example.php I still get an http 500 error, what else could be wrong? also even if I chown the file to root:root, it will not work, I need to actually cp file.php file.php as root before