[Linux] Installation de Apache 2.4.2 & PHP 5.

Fermé
Arno59 Messages postés 4600 Date d'inscription jeudi 23 octobre 2003 Statut Contributeur Dernière intervention 18 avril 2023 - 12 juin 2012 à 20:01
 andykimpe - 1 déc. 2012 à 00:24
Bonjour,

Je tente en vain d'installer Apache 2.4.2 http://www.apache.org/ puis PHP 5.4.3 https://www.php.net/
httpd-2.4.2# ls

ABOUT_APACHE     BuildBin.dsp   httpd.dsp       Makefile.in       ROADMAP
acinclude.m4     buildconf      httpd.spec      Makefile.win      server
Apache-apr2.dsw  CHANGES        include         modules           srclib
Apache.dsw       config.layout  INSTALL         NOTICE            support
apache_probes.d  configure      InstallBin.dsp  NWGNUmakefile     test
ap.d             configure.in   LAYOUT          os                VERSIONING
build            docs           libhttpd.dsp    README
BuildAll.dsp     emacs-style    LICENSE         README.platforms


/usr/local/httpd-2.4.2# ./configure 
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu

Configuring Apache Portable Runtime library ...

checking for APR... no
configure: error: APR not found.  Please read the documentation.


Que dois-je configurer ?
A voir également:

3 réponses

Arno59 Messages postés 4600 Date d'inscription jeudi 23 octobre 2003 Statut Contributeur Dernière intervention 18 avril 2023 486
12 juin 2012 à 22:37
En attendant j'ai testé Apache 2.2.22

/usr/local/httpd-2.2.22

L'installation a réussi alors que la version 2.4.2 a échoué ???
0
Arno59 Messages postés 4600 Date d'inscription jeudi 23 octobre 2003 Statut Contributeur Dernière intervention 18 avril 2023 486
Modifié par Arno59 le 12/06/2012 à 22:50
Pour la version Apache 2.4.2 il faut ajouter l'option APR :
./configure --with-included-apr

./configure --prefix=/usr/local/httpd-2.4.2 --with-included-apr
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu

Configuring Apache Portable Runtime library ...

configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.


Je continue la recherche
0
installer apr et apr utils http://apr.apache.org

mais tu devrais utilisez la version 2.2 de cette façon tu pourra installer plus facilement


centos fedora red hat

yum -y install httpd httpd-devel php php-mysql chkconfig

chkconfig httpd on
service start httpd

ubuntu

apt-get -y install apache2 php php-mysql chkconfig
chkconfig apache2 on
service start apache2

debian

aptutude -y install apache2 php php-mysql chkconfig
chkconfig apache2 on
service start apache2
0