I tried to install Apache 2.0.39 and PHP 4.2.1 on a SuSe Linux and it
didn't work. First the Apache would say that the previous PHP4.2.0 module
was not compatible with the server, then the PHP 4.2.1 would result in
error when using make.
Finally I did it. The solution:
1. install apache 2.0.39 as explained in the INSTALL file.
2. change the <PHP4.2.1source>/sapi/apache2filter/php_functions.c
(line 93) as instructed in a previous post (You must change
MODULE_MAGIC_AT_LEAST with AP_MODULE_MAGIC_AT_LEAST)
3. ./configure --with-mysql --with-apxs2=<path to the apxs script in
the apache2 install>
4. make clean
5. make (watch out for errors. my errors appeared here. After solving the
issue this make would work with no error)
6. make install -i (-i for ignoring the errors. It gave me an error in the
install-sapi: part and stopped. After ignoring it I see it works)
Hope I helped some poor other not miss uselessly a day of his life.
Siderite
d'après un commentaire sur php.net
willone
Je@nb a écrit a écrit :
et apache 2.0.39 marche pas je crois avec php 4.2.1
Ah bon ?? t'es sur ?? :??: pourquoi donc ?
Je@nb
et apache 2.0.39 marche pas je crois avec php 4.2.1
monokrome
gcc -v te renvoi quelque chose ?
si non a mon avis tu as pas installé les packages de developement (compilo et librairies) tu sais ce qui te reste a faire ;)
willone
Bon voilà, j'essaye de compiler la dernière version de PHP... Mais voilà, qd je fais un ./configure il me renvoit ce message d'erreur :
error: no acceptable cc found in $path
Du coup, qd je fais make... Il me renvoit ce message :
make: *** Pas de cibles spécifiées et aucun makefile n'a été trouvé. Arrêt
OS : Red HAt 7.3 tout fraichement installé
PHP : 4.2.1
Apache : 2.0.39