LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-14-2008, 10:24 AM   #1
EpicOfChaos
LQ Newbie
 
Registered: Oct 2008
Location: Ogden, Utah
Distribution: Ubuntu Server 8.10
Posts: 18

Rep: Reputation: 0
Apache User


Hey guys,
I have a noob question for you what user does the apache service use?
 
Old 10-14-2008, 10:44 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,960

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by EpicOfChaos View Post
Hey guys,
I have a noob question for you what user does the apache service use?
What user did you set it up to use? It can use wwwrun, apache, or really any user account you allow.
 
Old 10-14-2008, 10:46 AM   #3
EpicOfChaos
LQ Newbie
 
Registered: Oct 2008
Location: Ogden, Utah
Distribution: Ubuntu Server 8.10
Posts: 18

Original Poster
Rep: Reputation: 0
Where can I check that or change that? I don't remember being prompted for specifying a user when I installed.
 
Old 10-14-2008, 11:18 AM   #4
AuroraCA
Member
 
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
The "apache user" will depend upon the Linux distribution that you are using. Debian based distributions generally use user "www-data" and group "www-data" while others may use "apache", "nobody" or other designations.

The default apache user is set in server configuration files:

Code:
/etc/apache2/httpd.conf
/etc/apache2/envvars
/etc/apache2/apache2.conf
look for APACHE_RUN_USER and APACHE_RUN_GROUP
 
Old 10-15-2008, 09:08 AM   #5
EpicOfChaos
LQ Newbie
 
Registered: Oct 2008
Location: Ogden, Utah
Distribution: Ubuntu Server 8.10
Posts: 18

Original Poster
Rep: Reputation: 0
Ok so I went and changed the envvars so that the user is a different user, but now when I try to start the server it dies, says can not write to fastcgi.conf? any ideas it must be a user issue because if I change the user back it works just fine.
 
Old 10-15-2008, 10:32 AM   #6
Total-MAdMaN
Member
 
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
You'll need to change the owner of fastcgi.conf to the same user Apache is running as.
 
  


Reply


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
Running Apache as a certain user jlukensow Linux - Server 6 12-19-2007 09:13 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 06:30 AM
apache user problem leetcrew Linux - Networking 1 03-10-2004 05:14 AM
Apache User? Crashed_Again Linux - Security 2 02-19-2003 08:53 AM
Apache user hubergeek Linux - Networking 5 04-12-2002 12:59 AM


All times are GMT -5. The time now is 06:52 PM.

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