You are not logged in.
Pages: 1
Hello,
I was following the wiki instructions to install Apache. It's failing to start and doesn't seem to give an error. How do I debug this?
Thanks.
Last edited by RAH (2008-07-15 01:01:01)
Offline
cat /var/log/httpd/error_log
Give what you have. To someone, it may be better than you dare to think.
Offline
It's empty.
Offline
Have you checked /var/log/httpd/error_log and /var/log/everything.log ? That may give you an idea as to where the problem emanates.
Also the latest update of Apache uses the http user as opposed to nobody. You should be able to use nobody as far as I understand but check for that too.
Hope this helps.
R.
edit: Here are the details if you are interested:
==> New default DocumentRoot
[2008-07-14 09:25]
[2008-07-14 09:25] Apache httpd uses /srv/http as default DocumentRoot.
[2008-07-14 09:25] You can still use your current DocumentRoot
[2008-07-14 09:25]
[2008-07-14 09:25] ==> New default user and group
[2008-07-14 09:25]
[2008-07-14 09:25] Instead of "nobody" apache runs as user/group "http" by default now. You might
[2008-07-14 09:25] want to adjust your httpd.conf according to this change. But you can still
[2008-07-14 09:25] run httpd as nobody.
Last edited by ralvez (2008-07-14 15:24:24)
Offline
Nothing is being written to /var/log/httpd/error_log or /var/log/everything.log . Do I have to create the user/group http?
Offline
In the wiki article on LAMP, it has a little note:
Note: New default user and group: Instead of group "nobody" apache now runs as user/group "http" by default. You might want to adjust your httpd.conf according to this change, though you may still run httpd as nobody.
You will have to adjust your httpd.conf first to have an "http" group, then add your user to it.
My Rigs:
- Mid-2007 iMac 20", Intel 2GHz Core 2 Duo, 2x1GB DDR2-800, 250GB SATA HDD, and...MIGHTY MOUSE!!! , OSX 10.5 Leopard, ATI Radeon 2400XT 128MB
- HP zv6203cl, AMD Athlon 64 3200 S939, 2x512MB DDR400, 80GB 4200rpm HDD, ATI Radeon Xpress 200M 128MB, Arch i686
- 1986 Gibson SG Junior Cherry Red, Ibanez 15W amp, DigiTech RP250 modeling processor
Offline
My httpd.conf is already configured for http user and group since installation. Do I have to add my user to the http group and if so how?
Offline
Have you turned off the incoming connections option, if you have then it refuses to start.
to add yourself to the HTTP group
gpasswd -a USERNAME http
It requires root privileges to do the above.
There is a difference between bleeding [edge] and haemorrhaging. - Allan
Offline
I'm not sure is a good idea to add yourself to the http group. Ideally what we want is an unprivileged account, so I would use nobody if the worst comes to worst.
R.
Offline
Where is the incoming connections option? I didn't specifically disable that.
Also the http doesn't appear to exist as I can't add myself to it.
unknown group: http
gpasswd: Permission denied.
Should I be setting the user to nobody in httpd.conf and the group to what?
Offline
Are you using the latest filesystem package? (in other words: did you run pacman -Syu)
Offline
Are you using the latest filesystem package? (in other words: did you run pacman -Syu)
Yes.
Offline
Try this:
add (if it does not exit) in /etc/httpd/conf/httpd.conf
User nobody
Group nobody
Then issue /etc/rc.d/httpd start on a console.
R.
edit: to make sure the use nobody exists (I believe it should be there) issue "id nobody"
You should get back something like this: uid=99(nobody) gid=99(nobody) groups=99(nobody)
Last edited by ralvez (2008-07-15 00:40:07)
Offline
Pages: 1