View previous topic :: View next topic |
Author |
Message |
incubator Guru
Joined: 05 Jun 2003 Posts: 584 Location: Belgium
|
Posted: Sun Apr 11, 2004 1:12 pm Post subject: apache2 fails to start, mod_php4.3.9rc2 fails to compile |
|
|
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 |
|
|
joeybravo n00b
Joined: 30 Aug 2002 Posts: 45 Location: PH
|
Posted: Tue Apr 13, 2004 7:10 am Post subject: |
|
|
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 |
|
|
Teardrop Apprentice
Joined: 21 Oct 2002 Posts: 176
|
Posted: Sat Apr 17, 2004 4:11 pm Post subject: |
|
|
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 |
|
|
joeybravo n00b
Joined: 30 Aug 2002 Posts: 45 Location: PH
|
Posted: Mon Apr 19, 2004 6:28 am Post subject: |
|
|
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 |
|
|
Teardrop Apprentice
Joined: 21 Oct 2002 Posts: 176
|
Posted: Mon Apr 19, 2004 7:52 am Post subject: |
|
|
thx for your answer. the first i knew, the second not.
thx
Teardrop |
|
Back to top |
|
|
Matrix7 n00b
Joined: 21 Feb 2004 Posts: 54 Location: Sussex
|
Posted: Thu May 06, 2004 8:06 am Post subject: |
|
|
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 |
|
|
Immortal Q Apprentice
Joined: 14 Sep 2003 Posts: 241 Location: Silicone Valley
|
Posted: Thu May 06, 2004 9:15 am Post subject: |
|
|
(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 |
|
|
Matrix7 n00b
Joined: 21 Feb 2004 Posts: 54 Location: Sussex
|
Posted: Fri May 07, 2004 2:10 pm Post subject: |
|
|
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 |
|
|
|