Home
TYPO3 Extensions
TYPO3 Webseiten
Innovation Award
Kundenlogin
Code-Suche
Internet-Suche
Google Trends
Code-Schnipsel
Links
Kontakt

Download php-tarball from php.net

wget http://php.net/php-5.2.6.tar.bz2

[Bearbeiten] Unzip and change to php directory

tar xvvjf php-5.2.6.tar.bz2
cd php-5.2.6

[Bearbeiten] Choose your compiling options (and add them to the script):

 ./configure --help

[Bearbeiten] Run installation script:

./install.sh

The script:

#!/bin/bash
 
mkdir /usr/share/php5
 
sh configure --prefix=/usr --datadir=/usr/share/php5 --mandir=/usr/share/man --bindir=/usr/bin --with-libdir=lib --inc
ludedir=/usr/include --sysconfdir=/etc/php5/apache2 --with-config-file-path=/etc/php5/apache2 --with-config-file-scan-
dir=/etc/php5/conf.d --with-exec-dir=/usr/lib/php5/bin --enable-libxml --enable-filter --enable-session --with-mm --wi
th-pcre-regex=/usr --enable-xml --enable-simplexml --enable-spl --disable-debug --enable-memory-limit --enable-inline-
optimization --enable-zend-multibyte --disable-rpath --with-apxs2=/usr/sbin/apxs2 --disable-all --enable-cli --with-z
lib --with-curl --enable-mbstring
 
make
make install
 
rm /usr/lib/apache2/mod_php5.so
ln -sf /usr/lib/apache2/libphp5.so /usr/lib/apache2/mod_php5.so
 
sudo sh /usr/sbin/apache2ctl restart

[Bearbeiten] Enjoy php

php -r 'echo "Hello World!"'
  1. #!/bin/bash
  2.  
  3. sh configure --prefix=/usr --datadir=/usr/share/php5 --mandir=/usr/share/man --b
  4. indir=/usr/bin --with-libdir=lib --includedir=/usr/include --sysconfdir=/etc/php
  5. 5/apache2 --with-config-file-path=/etc/php5/apache2 --with-config-file-scan-dir=
  6. /etc/php5/conf.d --with-exec-dir=/usr/lib/php5/bin --enable-libxml --enable-filt
  7. er --enable-session --with-mm --with-pcre-regex=/usr --enable-xml --enable-simpl
  8. exml --enable-spl --disable-debug --enable-memory-limit --enable-inline-optimiza
  9. tion --enable-zend-multibyte --disable-rpath --with-apxs2=/usr/sbin/apxs2 --disa
  10. ble-all --enable-cli --with-zlib --with-curl --enable-mbstring
  11.  
  12. make
  13. make install
  14.  
  15. rm /usr/lib/apache2/mod_php5.so
  16. ln -sf /usr/lib/apache2/libphp5.so /usr/lib/apache2/mod_php5.so
  17.  
  18. sudo sh /usr/sbin/apache2ctl restart
© 2005-2011 Chi Hoang. All rights reserved. All trademarks are property of their respective owners. Last Update: 
12.01.2012
bookmark in your browserbookmark at mister wongpublish in twitterbookmark at del.icio.usbookmark at digg.combookmark at furl.netbookmark at linksilo.debookmark at reddit.combookmark at spurl.netbookmark at technorati.combookmark at google.combookmark at yahoo.combookmark at facebook.combookmark at stumbleupon.combookmark at propeller.combookmark at newsvine.combookmark at jumptags.com