View previous topic :: View next topic |
Author |
Message |
DamnDirtyApe n00b
Joined: 08 Jan 2003 Posts: 38 Location: Prince George, British Columbia, Canada
|
Posted: Tue Feb 10, 2004 9:11 pm Post subject: Apache won't start! |
|
|
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 |
|
|
thorne Apprentice
Joined: 19 Sep 2002 Posts: 177
|
Posted: Wed Feb 11, 2004 1:58 am Post subject: |
|
|
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.... _________________ Stupid bug, you go squish now!
-Homer Simpson
Registered linux user #287718 |
|
Back to top |
|
|
DamnDirtyApe n00b
Joined: 08 Jan 2003 Posts: 38 Location: Prince George, British Columbia, Canada
|
Posted: Thu Feb 12, 2004 10:08 pm Post subject: |
|
|
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 |
|
|
lewk Retired Dev
Joined: 21 Dec 2003 Posts: 32 Location: Boston, MA
|
Posted: Thu Feb 12, 2004 11:48 pm Post subject: |
|
|
I would recommend running the following command to make sure your config files are correct:
Code: |
# apache2ctl configtest
|
|
|
Back to top |
|
|
DamnDirtyApe n00b
Joined: 08 Jan 2003 Posts: 38 Location: Prince George, British Columbia, Canada
|
Posted: Thu Feb 12, 2004 11:56 pm Post subject: |
|
|
Thanks, just tried that, Syntax OK. These problems are on a fresh install. |
|
Back to top |
|
|
Immortal Q Apprentice
Joined: 14 Sep 2003 Posts: 241 Location: Silicone Valley
|
Posted: Fri Feb 13, 2004 4:17 am Post subject: |
|
|
Hve you tried unmerging/re-merging apache2? _________________ Osmos.org
Now with 20% fewer rabid primates. |
|
Back to top |
|
|
DamnDirtyApe n00b
Joined: 08 Jan 2003 Posts: 38 Location: Prince George, British Columbia, Canada
|
Posted: Fri Feb 13, 2004 4:22 am Post subject: |
|
|
Many, many times, to no avail. |
|
Back to top |
|
|
Janne Pikkarainen Veteran
Joined: 29 Jul 2003 Posts: 1143 Location: Helsinki, Finland
|
Posted: Fri Feb 13, 2004 12:45 pm Post subject: |
|
|
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 |
|
|
DamnDirtyApe n00b
Joined: 08 Jan 2003 Posts: 38 Location: Prince George, British Columbia, Canada
|
Posted: Fri Feb 13, 2004 3:43 pm Post subject: |
|
|
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 |
|
|
SithMaddox Tux's lil' helper
Joined: 02 Jul 2004 Posts: 149
|
Posted: Sun Aug 01, 2004 6:25 am Post subject: |
|
|
I'm having the same problem after I did emerge world. |
|
Back to top |
|
|
intgr Apprentice
Joined: 23 Jun 2004 Posts: 225 Location: Earth, Sol, Milky Way
|
Posted: Sun Aug 01, 2004 11:07 am Post subject: Re: Apache won't start! |
|
|
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 |
|
|
SithMaddox Tux's lil' helper
Joined: 02 Jul 2004 Posts: 149
|
Posted: Thu Aug 05, 2004 4:02 am Post subject: |
|
|
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 |
|
|
r4d1x Apprentice
Joined: 25 Nov 2003 Posts: 157 Location: Japan
|
Posted: Thu Aug 05, 2004 4:47 am Post subject: |
|
|
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 |
|
|
Andric n00b
Joined: 19 Jan 2004 Posts: 28
|
Posted: Wed Aug 11, 2004 11:10 am Post subject: |
|
|
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 |
|
|
vedic-Ai n00b
Joined: 15 Aug 2003 Posts: 11
|
Posted: Wed Sep 01, 2004 10:29 am Post subject: |
|
|
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 |
|
|
|