[Linux] Installation de Apache 2.4.2 & PHP 5.

Arno59 Messages postés 4603 Date d'inscription   Statut Contributeur Dernière intervention   -  
 andykimpe -
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 ?

--

L'Open source répond à la liberté de choix du consommateur du XXIe siècle

3 réponses

  1. Arno59 Messages postés 4603 Date d'inscription   Statut Contributeur Dernière intervention   499
     
    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
  2. Arno59 Messages postés 4603 Date d'inscription   Statut Contributeur Dernière intervention   499
     
    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
  3. andykimpe
     
    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