Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache won't start!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
DamnDirtyApe
n00b
n00b


Joined: 08 Jan 2003
Posts: 38
Location: Prince George, British Columbia, Canada

PostPosted: Tue Feb 10, 2004 9:11 pm    Post subject: Apache won't start! Reply with quote

I tried to start apache 2.0.48 today, and I got the following error:

Code:

 * Starting apache2...
Syntax error on line 47 of /etc/apache2/conf/apache2.conf:
Cannot load /etc/apache2/modules/mod_cgid.so into server: /etc/apache2/modules/mod_cgid.so: undefined symbol: apr_os_pipe_put_ex                          [ !! ]


I've reinstalled some packages, but I don't know what I could have done to cause this to break. Does anyone have any ideas?

Thanks,
DDA
Back to top
View user's profile Send private message
thorne
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 177

PostPosted: Wed Feb 11, 2004 1:58 am    Post subject: Reply with quote

1. Look at the error log to get a more informative error message.
On my system, the log happens to be in /var/log/apache/, and is called error_log.

2. Make sure the path is correct and the module exists
3. Make sure that directory is accessible by apache
4. Comment / Disable that module.... :P
_________________
Stupid bug, you go squish now!
-Homer Simpson

Registered linux user #287718
Back to top
View user's profile Send private message
DamnDirtyApe
n00b
n00b


Joined: 08 Jan 2003
Posts: 38
Location: Prince George, British Columbia, Canada

PostPosted: Thu Feb 12, 2004 10:08 pm    Post subject: Reply with quote

When I try to start apache, I get the above error with nothing written to the error logs. If I comment out the mod_cgid.so module, apache will start, but when I try to load http://127.0.0.1/ I get nothing in the browser and the following in the error logs:

Code:

/usr/sbin/apache2: relocation error: /usr/sbin/apache2: undefined symbol: apr_table_compress


I don't know what this means, but is there a likely root cause to all these undefined symbols?
Back to top
View user's profile Send private message
lewk
Retired Dev
Retired Dev


Joined: 21 Dec 2003
Posts: 32
Location: Boston, MA

PostPosted: Thu Feb 12, 2004 11:48 pm    Post subject: Reply with quote

I would recommend running the following command to make sure your config files are correct:

Code:

# apache2ctl configtest
Back to top
View user's profile Send private message
DamnDirtyApe
n00b
n00b


Joined: 08 Jan 2003
Posts: 38
Location: Prince George, British Columbia, Canada

PostPosted: Thu Feb 12, 2004 11:56 pm    Post subject: Reply with quote

Thanks, just tried that, Syntax OK. These problems are on a fresh install.
Back to top
View user's profile Send private message
Immortal Q
Apprentice
Apprentice


Joined: 14 Sep 2003
Posts: 241
Location: Silicone Valley

PostPosted: Fri Feb 13, 2004 4:17 am    Post subject: Reply with quote

Hve you tried unmerging/re-merging apache2?
_________________
Osmos.org
Now with 20% fewer rabid primates.
Back to top
View user's profile Send private message
DamnDirtyApe
n00b
n00b


Joined: 08 Jan 2003
Posts: 38
Location: Prince George, British Columbia, Canada

PostPosted: Fri Feb 13, 2004 4:22 am    Post subject: Reply with quote

Many, many times, to no avail. :(
Back to top
View user's profile Send private message
Janne Pikkarainen
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1143
Location: Helsinki, Finland

PostPosted: Fri Feb 13, 2004 12:45 pm    Post subject: Reply with quote

This sounds like ubertight compiler flags to me... or alternatively a grsecurity-stylish kernel patch denying things.
_________________
Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.".
Back to top
View user's profile Send private message
DamnDirtyApe
n00b
n00b


Joined: 08 Jan 2003
Posts: 38
Location: Prince George, British Columbia, Canada

PostPosted: Fri Feb 13, 2004 3:43 pm    Post subject: Reply with quote

I'm using a stock 2.6.2 kernel, and my flags are:

Code:

CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -mmmx -msse -m3dnow"


Just the same as they've been for ~8 months now, with no problems.
Back to top
View user's profile Send private message
SithMaddox
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2004
Posts: 149

PostPosted: Sun Aug 01, 2004 6:25 am    Post subject: Reply with quote

I'm having the same problem after I did emerge world.
Back to top
View user's profile Send private message
intgr
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 225
Location: Earth, Sol, Milky Way

PostPosted: Sun Aug 01, 2004 11:07 am    Post subject: Re: Apache won't start! Reply with quote

DamnDirtyApe wrote:
I tried to start apache 2.0.48 today

Yikes, you still have Apache 2.0.48? Sounds like you haven't done 'emerge sync' for a long time. Try it, and re-emerge apache. (Possibly also updating other packages using 'emerge -u world')

Code:

 * Starting apache2...
Syntax error on line 47 of /etc/apache2/conf/apache2.conf:
Cannot load /etc/apache2/modules/mod_cgid.so into server: /etc/apache2/modules/mod_cgid.so: undefined symbol: apr_os_pipe_put_ex                          [ !! ]

That sounds like your mod_cgid is borked. Either it's compiled for Apache 1.3 and it somehow ended up in the Apache 2.0 modules directory, or something bad happened during the compilation.

DamnDirtyApe wrote:
Code:

CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -mmmx -msse -m3dnow"

Those look ok to me. (You don't have to specify '-mmmx -msse -m3dnow', because '-march=athlon-xp' implies them.)

Try syncing your Portage database and upgrading your Apache. If this doesn't give any positive effects, return to this forum.
Back to top
View user's profile Send private message
SithMaddox
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2004
Posts: 149

PostPosted: Thu Aug 05, 2004 4:02 am    Post subject: Reply with quote

This topic was posted in February. I didn't know when I posted a reply. That is why the apache2 version is so old.

I'm using apache-2.0.50 and still having this problem.
Back to top
View user's profile Send private message
r4d1x
Apprentice
Apprentice


Joined: 25 Nov 2003
Posts: 157
Location: Japan

PostPosted: Thu Aug 05, 2004 4:47 am    Post subject: Reply with quote

do you have USE="hardened" set? if so, try taking that out. that flag seemed to cause problems with alot of packages. is that the module for cgi? try commenting it out and seem if it will load. or unmerg apache2 delete anre residual files (sometimes emerge -C doesnt remove everything) and remerge it.
_________________
Gentoo Linux 2.6.19.2-grsec
Dual Athlon-MP 1900
1024Mb PC2100 DDR
Radeon 9600 pro
1TB File Server / FTP
Back to top
View user's profile Send private message
Andric
n00b
n00b


Joined: 19 Jan 2004
Posts: 28

PostPosted: Wed Aug 11, 2004 11:10 am    Post subject: Reply with quote

emerged in apache today and after emerging in php,php_mod & mono_mod I get the same error.

/edit
fixed with a reinstall of apache
Back to top
View user's profile Send private message
vedic-Ai
n00b
n00b


Joined: 15 Aug 2003
Posts: 11

PostPosted: Wed Sep 01, 2004 10:29 am    Post subject: Reply with quote

Andric wrote:
emerged in apache today and after emerging in php,php_mod & mono_mod I get the same error.

/edit
fixed with a reinstall of apache


Confirmed.
emerge mod_mono breaks apache2.

Don't know why, don't know where... but it happens. I suggest someone takes a look at this issue.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum