CentOS 5.5 – Install PHP
FrançaisLinuxTutorials
This install requires postgresql to be installed… You can remove the –with-pgsql=/usr/local/pgsql from the ./configure line if you don’t want to use it…
yum install -y gd libxml libtiff mrtg libxslt-devel libxml2-devel libjpeg-devel libpng-devel cd ~ wget -c http://fr.php.net/get/php-5.3.3.tar.gz/from/fr2.php.net/mirror tar zxvf php-5.3.3.tar.gz cd php-5.3.3/ ./configure --prefix=/usr/local/php-5.3.3 --with-apxs2=/usr/local/apache/bin/apxs --with-gd --with-zlib --enable-sockets --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib --enable-gd-native-ttf --enable-mbstring=all --enable-magic-quotes --with-gettext --with-pgsql=/usr/local/pgsql --enable-libxml --with-xsl=/usr/lib make clean make make install cd /usr/local/ rm -f /usr/local/php ln -s /usr/local/php-5.3.3/ /usr/local/php cp ~/php-5.3.3/php.ini-production /usr/local/php/lib/php.ini cd ~/ rm -Rf ~/php-5.3.3/ chown -R root.www /usr/local/php chmod -R g-w,o-rwx /usr/local/php
Leave a comment