Solved

Apache debian

Posted on 2006-06-28
4
1,409 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

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

808 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