Step 2 is to download the source for you installed php (or to upgrade the the lateste version). The latest version is now php 5.2.6 and the link where you can download it is http://www.php.net/get/php-5.2.6.tar.bz2/from/a/mirror
Step 3 untar the archive you have dowloaded:
tar -zxvf php-5.2.6.tar.tar
Step 4: cd to the untared directory; ex: cd php-5.2.6
Step 5(try to recompile php without adding any extra configuration) :
copy the entire './configure..' line from your phpinfo.php file, paste it into the console : it should look like this:
'./configure' '--prefix=/usr' '--datadir=/usr/share/php5' '--mandir=/usr/share/man' '--bindir=/usr/bin' '--with-libdir=lib' '--includedir=/usr/include' '--sysconfdir=/etc/php5/apache2' '--with-config-file-path=/etc/php5/apache2' '--with-config-file-scan-dir=/etc/php5/conf.d' '--enable-libxml' '--enable-session' '--with-mm' '--with-pcre-regex=/usr' '--enable-xml' '--enable-simplexml' '--enable-spl' '--enable-filter' '--disable-debug' '--enable-inline-optimization' '--disable-rpath' '--disable-static' '--enable-shared' '--program-suffix=5' '--with-pic' '--with-gnu-ld' '--with-system-tzdata=/usr/share/zoneinfo' '--with-apxs2=/usr/sbin/apxs2' '--disable-all' '--disable-cli'
Hit enter, the configuration script should run fine and you should have no problems.
No comments:
Post a Comment