PHP 5.3.3 mit nativem php-fpm bauen

Als Merkzettel:

cd /usr/local/src/
wget 'http://de.php.net/get/php-5.3.3.tar.bz2/from/this/mirror'
tar jxf php-5.3.3.tar.bz2
export CFLAGS='-O3 -mtune=core2 -mmmx -msse -msse2 -msse3 -fexpensive-optimizations -ftree-loop-optimize -ftree-vectorize -ftree-vectorizer-verbose=5'
export CXXFLAGS=$CFLAGS
wget 'http://download.suhosin.org/suhosin-patch-5.3.3-0.9.10.patch.gz'
gunzip suhosin-patch-5.3.3-0.9.10.patch.gz
cd php-5.3.3
patch -p 1 -i ../suhosin-patch-5.3.3-0.9.10.patch
./buildconf
./configure  --prefix=/usr/local/php533 -with-libdir=lib64 --with-openssl --with-zlib --enable-bcmath --with-bz2 --enable-calendar --with-curl --enable-dba=shared --enable-exif=shared --with-pcre-regex --enable-ftp=shared --with-gd=shared --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir --with-gettext --with-imap=shared,/usr --with-imap-ssl --with-kerberos --enable-mbstring --with-mcrypt=shared,/usr --with-mhash=shared,/usr --with-mysql=shared --with-mysqli=shared --with-pdo-mysql=shared --with-pspell=shared,/usr --enable-soap --enable-sockets --enable-sqlite-utf8 --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-tidy=shared,/usr --enable-wddx --with-xmlrpc=shared --with-libexpat-dir --with-iconv-dir --enable-zip --with-pear --enable-zend-multibyte --enable-fpm --enable-gd-native-ttf --with-fpm-user=www-data --with-fpm-group=www-data --with-config-file-path=/usr/local/lib --with-config-file-scan-dir=/etc/php5/conf.d
make -j3
make test
make install
cd ..
wget 'http://pecl.php.net/get/memcache-2.2.5.tgz'
tar zxf memcache-2.2.5.tgz
cd memcache-2.2.5
export PHP_PREFIX="/usr/local/php533"
$PHP_PREFIX/bin/phpize
./configure --with-php-config=$PHP_PREFIX/bin/php-config
make -j2
make install
cd ..
wget 'http://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.tar.bz2'
tar jxf eaccelerator-0.9.6.1.tar.bz2
cd eaccelerator-0.9.6.1
$PHP_PREFIX/bin/phpize
./configure --enable-eaccelerator=shared --without-eaccelerator-use-inode
 --with-php-config=$PHP_PREFIX/bin/php-config
make -j2
make install
cd ..

Das könnte dich auch interessieren …

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert