Php53 » History » Revision 3

Revision 2 (Tobias Liebig, 2008-09-06 12:27) → Revision 3/11 (Christopher Hlubek, 2008-09-06 12:41)

h1. PHP 5.3 

 h2. Building Configure settings for _PHP 5.3 alpha1_ on Debian Linux 

 * Download PHP source (http://downloads.php.net/johannes/php-5.3.0alpha1.tar.bz2) 

 <pre> 
 <code> 
 wget SRC: http://downloads.php.net/johannes/php-5.3.0alpha1.tar.bz2 
 </code> 
 </pre> 

 * Unpack source in some directory: 

 


 <pre> 
 <code> 
 tar xjf php-5.3.0alpha1.tar.bz2 
 </code> 
 </pre> 

 * Install required debian packages for build: 

 <pre> 
 <code> 
 apt-get install apache2-dev apache2-utils build-essential 
 </code> 
 </pre> 

 * Install additional libraries (with dev versions @-dev@!), this depends on the system and configure options: 

 <pre> 
 <code> 
 ./configure --with-apxs2=/usr/bin/apxs2 --with-zlib --enable-bcmath --enable-mbstring --with-mcrypt --with-mysql=mysqlnd --with-mysqli=mysqlnd --without-pear --with-curl --with-mhash --with-pdo-sqlite --with-config-file-path=/etc/php5 

 make && make test && make install 

 apache2ctl restart 
 </code> 
 </pre> 

 h3. Hint: If the apache can't start, try to run libtool: 

 <pre><code> 
 libtool --finish /usr/lib/apache2/modules/libphp5.so 
 </code></pre> 


 h3. Helpful Links/Tips: 
 * http://phpmelb.org/index.php?option=com_content&view=article&id=69