Solved

Apache debian

Posted on 2006-06-28
4
1,408 Views
Last Modified: 2013-11-15
when i install redhat the apache is user but when i in stall debian ( by apt) it use apache as user , Is it good to create apache like a user
Pleae suggest i am new for linux
0
Comment
Question by:teera
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
xDamox earned 100 total points
ID: 17001913
Hi,

On redhat if you install Apache via the RPM's the apache user will be created, you can create the apache user on redhat if its not
created for you by typing as root:

useradd apache -s /sbin/nologin

Once that has been done you can edit your httpd.conf file located in the /etc/httpd/conf/ directory and replace the user currently selected to
apache.
0
 
LVL 8

Assisted Solution

by:Autogard
Autogard earned 150 total points
ID: 17002083
Different distributions use different usernames and groups for the apache user, but as far as I know they should all have a user designated as such.  For example, on SuSE the apache user is "wwwrun" and the group is "www".

Try "cat /etc/passwd | grep apache" to see what the user is on your system.
Also, as xDamox mentioned, you can see what it is set to in your httpd.conf file (or on SuSE it is the uid.conf file).
0
 
LVL 8

Assisted Solution

by:Autogard
Autogard earned 150 total points
ID: 17002110
On debian the user and group are "www-data" I think.
0
 
LVL 51

Assisted Solution

by:ahoffmann
ahoffmann earned 100 total points
ID: 17003904
most distributions have their own user to be used for apache, common are: apache, httpd, nobody, wwwrun

For security reason it is highly recommended that the web server process (httpd in this case) has it's own lonley user which is not used for other processes and has no login.
Also ensure that this user belongs only to its own group (other groups, or more than the apache user in that group are used in rare cases or if you want to make a very sophisticated security setup).
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PC upgrade to Linux Mint 7 64
Weather Research and Forecasting (WRF) model 1 46
liboauth-php x oauth-1.2.3 3 45
Steps to follow for Maintenance of Servers 4 50
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now