21fc The FreeBSD Forums - View Single Post - PHP 5.3.2 (was: php 5.3.0)
View Single Post
  #12  
Old July 23rd, 2009, 15:45
MissileSilo MissileSilo is offline
Junior Member
 
Join Date: Feb 2009
Posts: 29
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Well, I can't wait that long. What I did was I downloaded the source code for PHP 5.3.0 and I compiled it manually.

Here is my configure command:

Code:
'./configure' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--with-libxml-
dir=/usr/local' '--enable-reflection' '--program-prefix=' '--enable-fastcgi' '--with-apxs2=/usr/local/sbin/apxs' '--with-regex=php' '--with-
zend-vm=CALL' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--enable-pdo=shared'
Then to compile and install:
Code:
make && make install
Now, I was using php5-extensions but since that is only for version 5.2.10, you have to compile those manually too. Simply cd to the ext directory of the PHP source code, and go into each one of the extensions you want to compile and type:

Code:
phpize
./configure
make && make install

Last edited by DutchDaemon; September 29th, 2009 at 17:25.
 
0