LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Which user runs apache/PHP? (http://www.linuxquestions.org/questions/linux-server-73/which-user-runs-apache-php-828834/)

craseal 08-27-2010 10:25 AM

Which user runs apache/PHP?
 
I migrated joomla to my new server and noticed that the script doesn't have the permission to edit it's own configuration file and write to the cache folder. All my files are owned by root, which I guess isn't a good idea.

As what user do the PHP scripts run? Or is this system specific? I don't want to chmod all files to 777 so I'd just like to change file and folder ownerships to the user that is executing that script.

quanta 08-27-2010 11:54 AM

ps -ef | grep httpd (or apache)?


All times are GMT -5. The time now is 08:15 AM.