Toon posts:

Apache 2.0.28 + PHP 4.1.1

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik heb zojuist op me routertje hier thuis apache 2.0.28 geinstalleerd, dit ging goed, draait al. Toen wilde ik ook PHP op 2.0.28 hebben draaien, ik dus compileren :
code:
1
2
./configure --with-apxs=/etc/apache2/bin/apxs --with-ftp --with-xml --enable-magic-quotes --with-gd 
--with-zlib-dir=/usr/lib --with-png-dir=/usr/lib --with-jpeg-dir=/usr/local/lib/ --with-regex=system --enable-safe-mode

Ging ook nog helemaal goed. Uiteraard de httpd.conf aangepast aan PHP. En toen kwam het : het starten van apache :
code:
1
2
3
4
[root@localhost conf]# /etc/apache2/bin/apachectl start
Syntax error on line 198 of /etc/apache2/conf/httpd.conf:
Cannot load /etc/apache2/modules/libphp4.so into server: /etc/apache2/modules/libphp4.so: undefined symbol: ap_block_alarms
/etc/apache2/bin/apachectl start: httpd could not be started

Regeltje 198 is de volgende regel :
code:
1
LoadModule php4_module    modules/libphp4.so

libphp4.so staat daar wel :
code:
1
2
3
4
5
[root@localhost conf]# locate libphp4.so
/install/php-4.1.1/libs/libphp4.so
/install/php-4.1.1/.libs/libphp4.so
/etc/apache2/modules/libphp4.so
/usr/local/apache/libexec/libphp4.so

Ik kan alleen niet bedenken waar undefined symbol: ap_block_alarms staat en wat ik eraan kan doen.

Iemand een idee ?

  • MikeN
  • Registratie: April 2001
  • Laatst online: 03-05 16:41
Het je hem ook al geprobeerd gewoon in apache te compilen, dus niet als DSO?
Misschien dat dat wel goed gaat.

[edit]
http://www.geocrawler.com/lists/3/Web/5/0/7313879/

[edit2]
Na nog even zoeken:
http://bugs.php.net/bug.php?id=14467
Please try running this command: ./configure --help | grep apxs2
and you'll find the correct configure option to be used with Apache2.

  • Mark
  • Registratie: Juni 1999
  • Laatst online: 03-05 23:21
Wat geeft het volgende commando voor een output (let vooral op libs die hij niet kan vinden):
code:
1
ldd -v /etc/apache2/modules/libphp4.so

Sowieso zijn (of inmiddels waren) er wat problemen met Apache 2.0 (het is niet voor niks nog beta) icm PHP.

Verwijderd

Je mag apxs2 in plaats van apxs1 gaan gebruiken :)