View previous topic :: View next topic |
Author |
Message |
aschrijver n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Aug 2004 Posts: 8
|
Posted: Mon Aug 30, 2004 11:07 am Post subject: mod_ssl error on starting apache |
|
|
Hi, I think I really did it this time. After I installed PHP5 on my homesystem, I found that some USE flags are needed for that, ´dba´ or ´-berkdb´ in fact.
That worked okay, so when I installed my server, I used those flags right from the start. But now when I try to start Apache (1.3.31), I get this error
Code: | * Starting apache...
Syntax error on line 59 of /etc/apache/conf/apache.conf:
Cannot load /etc/apache/extramodules/libssl.so into server: /etc/apache/extramodules/libssl.so: undefined symbol: dbm_ [ !! ] |
I tried several dozens of times reinstalling db, gdbm, apache, mod_ssl and mod_php, but nothing worked. Starting apache without mod_ssl works perfectly.
Can somebody please help me on this? I am really out of options here. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pizzaman n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 May 2004 Posts: 13 Location: Bangkok, Thailand
|
Posted: Sat Oct 02, 2004 5:19 pm Post subject: |
|
|
I don't know if you've alrady found a solution, but
in my case I had to emerge openssl, mod_ssl again. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
aschrijver n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Aug 2004 Posts: 8
|
Posted: Tue Oct 05, 2004 8:01 am Post subject: Still not fixed.... :( |
|
|
Quote: | * Starting apache...
Syntax error on line 59 of /etc/apache/conf/apache.conf:
Cannot load /etc/apache/extramodules/libssl.so into server: /etc/apache/extramodules/libssl.so: undefined symbol: dbm_firstkey
|
I still get this error when I want to start apache.
Also I tried a complete fresh installation of Gentoo, with my USE flags, and I still get this error.
Some more info:
Apache 1.3.31
PHP 5.0.2
mod_ssl 2.8.19
OpenSSL 0.9.7d-r1
USE="aalib acpi -apache2 autofs cdr dba dvd dvdr ffmpeg ftp gd gpm gtk gtk2 imap -java -maildir mbox oggvorbis opengl oss pcre pda pnp slc spell ssl truetype unicode usb -xfree xft xml xml2 cups samba mysql sharedmem session -X -qt -kde"
The error talks about dbm, so I tried all combinations of berkdb, dba, dbm and gdbm, but not one works. Simply not using them is not possible, as PHP needs both berkdb and dba.
Re-emerging OpenSSL and any of the other packages has no effect. This problem even occurs when I do a complete new Gentoo install, so it should have something to do with the USE flags (I think). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pizzaman n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 May 2004 Posts: 13 Location: Bangkok, Thailand
|
Posted: Wed Oct 06, 2004 4:24 pm Post subject: |
|
|
You'll also need to run this, after re-emerge mod_ssl
# ebuild /var/db/pkg/net-www/mod_ssl-2.8.19/mod_ssl-2.8.19.ebuild config
Then make sure to edit apache config files to get rid of
duplicated inclusion of mod_ssl related statements. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
helmholtz n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/54796032641f80bced9e57.jpg)
Joined: 20 Aug 2004 Posts: 6
|
Posted: Mon Oct 25, 2004 7:12 pm Post subject: Re: mod_ssl error on starting apache |
|
|
Modify the apache ebuild. Around line 67 you'll see:
Code: | #-DBUFFERED_LOGS
OPTIM="${mycflags} -DHARD_SERVER_LIMIT=${HARD_SERVER_LIMIT:=512} \
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" \
LIBS="-lgdbm -lpthread" \
EAPI_MM=SYSTEM \
|
Change the LIBS line to:
Code: | LIBS="-lgdbm -lpthread -lgdbm_compat" \
|
And then reemerge apache. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
aschrijver n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Aug 2004 Posts: 8
|
Posted: Wed Oct 27, 2004 10:17 am Post subject: It worked!!!!!! |
|
|
It works!!!!!!!!
Thank you very much!!
Finally after months I have https back!
I just had to re-emerge gdbm, and after that Apache with your modifications. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
HAL_9000 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/1004011790415afad3b4676.gif)
Joined: 29 Sep 2004 Posts: 114 Location: Netherlands
|
Posted: Wed Oct 27, 2004 7:26 pm Post subject: |
|
|
for me too
I'm grateful! ![Smile :)](images/smiles/icon_smile.gif) _________________ We are the keepers of the sacred words: Ni peng and Nee wom! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
al_bullit n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Jun 2004 Posts: 6
|
Posted: Fri Nov 19, 2004 9:26 am Post subject: Still broken |
|
|
Sadly none of the above fixes apear to work for me. Is there any word on when the apache ebuild maintainers might release a 'fixed' version for this bug of many weeks in what you would think is a major piece of software?
In the mean time installing apache and mod_ssl by hand appears to work just fine. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
whit Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/d8fe4b3c3dc87fca22277.jpg)
Joined: 26 Oct 2002 Posts: 121 Location: VT
|
Posted: Fri Dec 31, 2004 1:42 am Post subject: |
|
|
pizzaman wrote: | You'll also need to run this, after re-emerge mod_ssl
# ebuild /var/db/pkg/net-www/mod_ssl-2.8.19/mod_ssl-2.8.19.ebuild config
Then make sure to edit apache config files to get rid of
duplicated inclusion of mod_ssl related statements. |
That doesn't do the trick - or change anything really, just duplicates the old entries. This is adjusted for 2.8.21. Damn. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
whit Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/d8fe4b3c3dc87fca22277.jpg)
Joined: 26 Oct 2002 Posts: 121 Location: VT
|
Posted: Fri Dec 31, 2004 1:50 am Post subject: Re: mod_ssl error on starting apache |
|
|
helmholtz wrote: | Change the LIBS line to:
Code: | LIBS="-lgdbm -lpthread -lgdbm_compat" \
|
And then reemerge apache. |
That DOES do the trick! Thank you!
Note: also re-emerge gdbm first, but that alone didn't make a difference. Next step was to change the ebuild for 1.3.33 and re-emerge Apache. Which did it. So can't say whether it was the extra LIB or the rebuilding Apache after rebuilding gdbm which was essential - or both.
(Now, has this been reported as a bug?) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DennisBagley n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/19182463804572e9552f380.png)
Joined: 09 Jan 2005 Posts: 13
|
Posted: Sun Jan 09, 2005 11:23 pm Post subject: |
|
|
Thanks helmholtz,
The ebuild hack alone [+ re-emerging apache] worked for me,
Thanks,
Den _________________ http://uncyclopedia.org/wiki/Gentoo |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Tocano n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Jan 2005 Posts: 1
|
Posted: Mon Jan 10, 2005 3:52 pm Post subject: |
|
|
I appreciate the responses. The recommendations seem to work for me. However, for future knowledge, can anyone explain what this error actually is? Why is it coming up? Is there an error with the apache ebuild or is this bug reflective of something I've done with my system?
Thanks for the insight |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lami n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/9739025243e6bd2567846c.gif)
Joined: 09 Mar 2003 Posts: 23
|
Posted: Fri Jan 21, 2005 12:50 pm Post subject: |
|
|
Seems like ebuild error for me.
You can also use masked ebuild (apache-1.3.33-r1), but you have to unmask it first.
Add these lines into /etc/portage/package.unmask
Code: | =net-www/apache-1.3.33-r1
=net-www/mod_ssl-2.8.22 |
and these into /etc/portage/package.keywords
Code: | =net-www/apache-1.3.33-r1 ~x86
=net-www/mod_ssl-2.8.22 ~x86 |
and then emerge =apache-1.3.33-r1
Create these files if they do not exists _________________ Sometimes is best, let the sleeping dragons lie. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ixion l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/102764936440d97a143123d.jpg)
Joined: 16 Dec 2002 Posts: 708
|
Posted: Tue Jan 25, 2005 2:43 pm Post subject: Re: mod_ssl error on starting apache |
|
|
whit wrote: | (Now, has this been reported as a bug?) |
https://bugs.gentoo.org/show_bug.cgi?id=71273
(edit: found a much more updated bug) _________________ only the paranoid survive |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hollow Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 05 Dec 2003 Posts: 35 Location: Berlin, Germany
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
blackcell n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/18897682234502458f250fa.png)
Joined: 17 Aug 2002 Posts: 56 Location: Oregon
|
Posted: Tue Feb 08, 2005 6:17 am Post subject: |
|
|
Yes, the -lndbm instead of -lgdbm_compat and reemerge Apache worked for me! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hollow Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 05 Dec 2003 Posts: 35 Location: Berlin, Germany
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|