Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache2 fails to start, mod_php4.3.9rc2 fails to compile
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
incubator
Guru
Guru


Joined: 05 Jun 2003
Posts: 584
Location: Belgium

PostPosted: Sun Apr 11, 2004 1:12 pm    Post subject: apache2 fails to start, mod_php4.3.9rc2 fails to compile Reply with quote

when compiling mod_php4.3.6_rc2 I get this error:
Code:

checking for SNMP support... yes
checking OpenSSL dir for SNMP... no
checking for snmp_parse_oid in -lnetsnmp... no
checking for init_snmp in -lnetsnmp... no
configure: error: SNMP sanity check failed. Please check config.log for more information.

!!! ERROR: dev-php/mod_php-4.3.6_rc2 failed.
!!! Function econf, Line 365, Exitcode 1
!!! econf failed


when starting apache I get this (note that I do have a previous version of mod_php installed, -D PHP4 is added and worked with the previos version of apache2)

Apache2 has detected a syntax error in your configuration files:
Syntax error on line 5 of /usr/lib/apache2/conf/modules.d/70_mod_php.conf:
Cannot load /usr/lib/apache2/extramodules/libphp4.so into server: /usr/lib/libnetsnmp.so.5: undefined symbol: des_cbc_encrypt

Is there any way I can get mod_php to compile properly?
Back to top
View user's profile Send private message
joeybravo
n00b
n00b


Joined: 30 Aug 2002
Posts: 45
Location: PH

PostPosted: Tue Apr 13, 2004 7:10 am    Post subject: Reply with quote

If you really don't need SNMP support for mod_php, try:

Code:
USE="-snmp" emerge dev-php/mod_php


I'm guessing here :), coz i noticed that SNMP is where its failing sanity check.
And of course it told you to "check the config.log" it might provide some clues.
_________________
--lucky are the pessimists
for they make backups..
Back to top
View user's profile Send private message
Teardrop
Apprentice
Apprentice


Joined: 21 Oct 2002
Posts: 176

PostPosted: Sat Apr 17, 2004 4:11 pm    Post subject: Reply with quote

i got the same error.

is that a solution to just disable snmp? or do i need it for mod_php?

thx

Teardrop
Back to top
View user's profile Send private message
joeybravo
n00b
n00b


Joined: 30 Aug 2002
Posts: 45
Location: PH

PostPosted: Mon Apr 19, 2004 6:28 am    Post subject: Reply with quote

SNMP = Simple Network Management Protocol
http://www.snmplink.org/src/SNMPv3.html#SNMPv3%20RFC

If you intend to use MOD_PHP for accessing databases, simple web scripting,
no Network Management stuffs, its safe to USE = "-snmp"
_________________
--lucky are the pessimists
for they make backups..
Back to top
View user's profile Send private message
Teardrop
Apprentice
Apprentice


Joined: 21 Oct 2002
Posts: 176

PostPosted: Mon Apr 19, 2004 7:52 am    Post subject: Reply with quote

thx for your answer. the first i knew, the second not.

thx

Teardrop
Back to top
View user's profile Send private message
Matrix7
n00b
n00b


Joined: 21 Feb 2004
Posts: 54
Location: Sussex

PostPosted: Thu May 06, 2004 8:06 am    Post subject: Reply with quote

On the subject of compiling this version of php, mine compiled just fine, but raised this error when retarting apache2:

Quote:

bash-2.05b# /etc/init.d/apache2 restart
* Re-caching dependency info (mtimes differ)...
* Stopping apache2...
Syntax error on line 5 of /usr/lib/apache2/conf/modules.d/70_mod_php.conf:
Cannot load /usr/lib/apache2/extramodules/libphp4.so into server: /usr/lib/apache2/
* Apache2 has detected a syntax error in your configuration files:



I'm going to investigate further, but any pointers would be appreciated.

Ta.
Back to top
View user's profile Send private message
Immortal Q
Apprentice
Apprentice


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

PostPosted: Thu May 06, 2004 9:15 am    Post subject: Reply with quote

(Re-)emerging net-snmp might also help, if that's a set of features you're interested in - it's very useful for system monitoring (a la mrtg, etc)
_________________
Osmos.org
Now with 20% fewer rabid primates.
Back to top
View user's profile Send private message
Matrix7
n00b
n00b


Joined: 21 Feb 2004
Posts: 54
Location: Sussex

PostPosted: Fri May 07, 2004 2:10 pm    Post subject: Reply with quote

I managed to fix my Apache 2/php problem by using a libphp4.so module from an earlier compile on another machine. Something of a kludge but it works fine.

I took a little while to adapt to the new configuration with server root at /usr/lib/apache as opposed to /etc/apache2, but a little tweaking and tinkering has resolved the problems.
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