Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 08-27-2010, 11:25 AM   #1
LQ Newbie
Registered: Aug 2010
Posts: 12

Rep: Reputation: 0
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.
Old 08-27-2010, 12:54 PM   #2
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 100Reputation: 100
ps -ef | grep httpd (or apache)?
1 members found this post helpful.


apache, permissions, php, user

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] PHP script runs from the command line...but not on Apache custangro Linux - Enterprise 3 07-02-2010 07:38 PM
Apache + Php server file owners and user groups Seregwethrin Linux - Server 2 03-11-2008 03:15 PM
user that runs apache 2 on SLES 9 chucker8 Linux - Software 2 01-28-2006 03:56 PM
mod_perl causes segementation fault in Apache when php runs john lee Linux - Newbie 1 10-13-2005 01:44 AM
Games runs slow as normal user, but fast as root user mcore Linux - Software 2 06-08-2004 12:11 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration