User and Group problem with Apache install on RH 6.2
I've recently installed Apache on a gnome workstation running RedHat 6.2. I can't start Apache. I get an error saying that Lynx can't access the startfile under localhost. I checked the Apache error log and it seems to be a Linux group problem. I'm pretty sure I need to create a user and a group and specify it in the httpd.conf file, but it doesn't seem to be working. I installed Apache as root.
When I log on as a user lesser than root, Linux doesn't recognize the apachectl command at all. (I'm new to Linux)
Can anybody walk me through what Linux is expecting in my httpd.conf file and how I go about setting up the user and group correctly?
Re: User and Group problem with Apache install on RH 6.2
1) which version of apache?
Originally Posted by tronsgar
2) did you compile from source, or install from RPM?
3) Exact Error message would be handy, along with command used to start it
4) relevant error listing from errorlog
Apache must be started as root, as it binds to a TCP port below 1024.
Apache will then (once started) spawn child processes under the user/group specified In your httpd.conf file.
For example, in my httpd.conf, for apache 1.3.29 under slackware 8.1, i have the following lines:
In my /etc/group file, i have a line:
and in my /etc/passwd file i have a line:
Apache works pretty much the same regardless of distro and distro version.