You are not logged in.

#1 2008-07-14 14:47:54

RAH
Member
Registered: 2008-06-20
Posts: 205

[SOLVED] Apache

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

#2 2008-07-14 15:08:31

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] Apache

cat /var/log/httpd/error_log


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2008-07-14 15:09:38

RAH
Member
Registered: 2008-06-20
Posts: 205

Re: [SOLVED] Apache

It's empty.

Offline

#4 2008-07-14 15:22:46

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,718
Website

Re: [SOLVED] Apache

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

#5 2008-07-14 16:48:53

RAH
Member
Registered: 2008-06-20
Posts: 205

Re: [SOLVED] Apache

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

#6 2008-07-14 17:38:50

kclive18
Member
From: Columbus, Ohio, USA
Registered: 2008-05-08
Posts: 219

Re: [SOLVED] Apache

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!!! tongue, 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 cool
- 1986 Gibson SG Junior Cherry Red, Ibanez 15W amp, DigiTech RP250 modeling processor

Offline

#7 2008-07-14 18:34:06

RAH
Member
Registered: 2008-06-20
Posts: 205

Re: [SOLVED] Apache

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

#8 2008-07-14 18:43:39

XFire
Member
From: UK
Registered: 2008-05-11
Posts: 192

Re: [SOLVED] Apache

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

#9 2008-07-14 21:53:48

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,718
Website

Re: [SOLVED] Apache

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

#10 2008-07-14 22:12:35

RAH
Member
Registered: 2008-06-20
Posts: 205

Re: [SOLVED] Apache

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

#11 2008-07-14 22:36:59

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: [SOLVED] Apache

Are you using the latest filesystem package? (in other words: did you run pacman -Syu)

Offline

#12 2008-07-14 23:10:41

RAH
Member
Registered: 2008-06-20
Posts: 205

Re: [SOLVED] Apache

Pierre wrote:

Are you using the latest filesystem package? (in other words: did you run pacman -Syu)

Yes.

Offline

#13 2008-07-15 00:38:03

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,718
Website

Re: [SOLVED] Apache

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

Board footer

Powered by FluxBB