Solved

Apache debian

Posted on 2006-06-28
4
1,415 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
If you don't know how to downgrade, my instructions below should be helpful.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

688 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