Dies ist eine alte Version des Dokuments!
Inhaltsverzeichnis
PHP 5.3
Packete
apt-get install libxml2-dev libcurl4-openssl-dev libgd2-xpm-dev libmcrypt-dev libmysqlclient-dev autoconf
libevent
cd /opt wget http://monkey.org/~provos/libevent-2.0.10-stable.tar.gz tar xzf libevent-2.0.10-stable.tar.gz cd libevent-2.0.10-stable ./configure make make install
Beschaffen
cd /opt wget http://www.php.net/get/php-5.3.5.tar.gz/from/de.php.net/mirror tar xzf php-5.3.5.tar.gz cd php-5.3.5
Patch
wget http://download.suhosin.org/suhosin-patch-5.3.4-0.9.10.patch.gz gunzip suhosin-patch-5.3.4-0.9.10.patch.gz patch -p 1 -i suhosin-patch-5.3.4-0.9.10.patch
Configure
Standart:
./configure --enable-fpm --with-libevent --enable-mbstring=all --enable-mbregex --with-pcre-regex --with-mysql --with-mysqli --with-mcrypt --with-curl --without-sqlite3 --without-mm --with-gd --enable-bcmath --with-zlib --with-pear --with-gettext --enable-ftp --enable-soap --with-openssl --disable-pdo --disable-phar --with-freetype-dir=/usr/lib --with-jpeg-dir=/usr/lib --prefix=/opt/php_5.3.5 --with-config-file-path=/etc/php
Abigor:
./configure --enable-fpm --enable-imap --enable-intl --with-imap-ssl --with-libevent --enable-mbstring=all --enable-mbregex --with-pcre-regex --with-mysql --with-mysqli --with-mcrypt --with-curl --without-sqlite3 --without-mm --with-gd --enable-bcmath --with-kerberos --with-zlib --with-pear --with-dom --with-imap --with-iconv --with-tidy --with-mime-magic --with-gettext --enable-ftp --enable-soap --with-openssl --disable-pdo --disable-phar --with-freetype-dir=/usr/lib --with-jpeg-dir=/usr/lib --prefix=/opt/php_5.3.5 --with-config-file-path=/etc/php
Thor und Fosta:
./configure --enable-mbstring=all --enable-mbregex --enable-bcmath --enable-ftp --enable-soap --enable-zip --enable-fpm --disable-pdo --disable-phar --with-pcre-regex --with-mysql --with-mysqli --with-mcrypt --with-curl --with-gd --with-zlib --with-pear --with-gettext --with-openssl --without-sqlite3 --without-mm --with-freetype-dir=/usr/lib --with-jpeg-dir=/usr/lib --prefix=/opt/php_5.3.5 --with-config-file-path=/etc/php
Snotra:
./configure --enable-mbstring=all --enable-mbregex --enable-bcmath --enable-ftp --enable-soap --enable-zip --enable-fpm --enable-sockets --disable-phar --with-libevent --with-pcre-regex --with-mysql --with-mysqli --with-mcrypt --with-curl --with-gd --with-zlib --with-pear --with-gettext --with-openssl --with-pgsql --without-mm --with-freetype-dir=/usr/lib --with-jpeg-dir=/usr/lib --prefix=/opt/php_5.3.5 --with-config-file-path=/etc/php
Vali:
./configure --enable-mbstring=all --enable-mbregex --enable-force-cgi-redirect --with-pcre-regex --with-mysql --with-mysqli --with-mcrypt --with-curl --without-sqlite3 --without-mm --enable-fastcgi --with-gd --enable-bcmath --with-zlib --with-pear --with-gettext --enable-ftp --with-openssl --with-imap --with-kerberos --with-imap-ssl --with-freetype-dir=/usr/lib --with-jpeg-dir=/usr/lib --prefix=/opt/php_5.3.5 --with-config-file-path=/etc/php
Heimdallx1:
./configure --enable-fpm --with-libevent --enable-mbstring=all --enable-calendar --enable-mbregex --with-pcre-regex --with-mysql --with-mysqli --with-mcrypt --with-curl --without-sqlite3 --without-mm --with-gd --enable-bcmath --with-zlib --with-pear --with-gettext --enable-ftp --enable-soap --with-openssl --disable-pdo --disable-phar --with-freetype-dir=/usr/lib --with-jpeg-dir=/usr/lib --prefix=/opt/php_5.3.5 --with-config-file-path=/etc/php
MS-SQL:
./configure --enable-fpm --with-libevent --enable-mbstring=all --enable-mbregex --with-pcre-regex --with-mysql --with-mysqli --with-mcrypt --with-curl --without-sqlite3 --without-mm --with-gd --enable-bcmath --with-zlib --with-pear --with-gettext --enable-ftp --enable-soap --with-openssl --disable-pdo --disable-phar --with-mssql --with-freetype-dir=/usr/lib --with-jpeg-dir=/usr/lib --prefix=/opt/php_5.3.5 --with-config-file-path=/etc/php
Bauen
make make install mkdir /var/log/php/
XCache
cd /opt wget http://xcache.lighttpd.net/pub/Releases/1.3.1/xcache-1.3.1.tar.gz tar xzf xcache-1.3.1.tar.gz cd xcache-1.3.1 /opt/php_5.3.5/bin/phpize ./configure --enable-xcache --enable-xcache-optimizer --with-php-config=/opt/php_5.3.5/bin/php-config make make install
Igbinary
cd /opt wget http://opensource.dynamoid.com/igbinary-1.1.1.tar.gz tar xzf igbinary-1.1.1.tar.gz cd igbinary-1.1.1 /opt/php_5.3.5/bin/phpize ./configure --with-php-config=/opt/php_5.3.5/bin/php-config make make install
http
cd /opt wget http://pecl.php.net/get/pecl_http-1.7.0.tgz tar -zxf pecl_http-1.7.0.tgz cd pecl_http-1.7.0 /opt/php_5.3.5/bin/phpize ./configure --with-php-config=/opt/php_5.3.5/bin/php-config make make install
ssh2
cd /opt wget http://pecl.php.net/get/ssh2-0.11.0.tgz tar -zxf ssh2-0.11.0.tgz cd ssh2-0.11.0 wget http://remi.fedorapeople.org/ssh2-php53.patch patch -p0 < ssh2-php53.patch /opt/php_5.3.5/bin/phpize ./configure --with-php-config=/opt/php_5.3.5/bin/php-config make make install
memcache
cd /opt wget http://pecl.php.net/get/memcache-2.2.6.tgz tar -zxf memcache-2.2.6.tgz cd memcache-2.2.6 /opt/php_5.3.5/bin/phpize ./configure --with-php-config=/opt/php_5.3.5/bin/php-config make make install
memcached
cd /opt wget http://pecl.php.net/get/memcached-1.0.2.tgz tar -zxf memcached-1.0.2.tgz cd memcached-1.0.2 /opt/php_5.3.5/bin/phpize ./configure --with-php-config=/opt/php_5.3.5/bin/php-config --enable-memcached-igbinary make make install
rrd
cd /opt wget http://oss.oetiker.ch/rrdtool/pub/contrib/php_rrdtool.tar.gz tar xzf php_rrdtool.tar.gz cd /opt/rrdtool /opt/php_5.3.5/bin/phpize ./configure --with-rrdtool=/usr/local/rrdtool --with-php-config=/opt/php_5.3.5/bin/php-config make make install
intl
cd /opt wget http://pecl.php.net/get/intl-1.1.2.tgz tar -zxf intl-1.1.2.tgz cd /opt/intl-1.1.2 /opt/php_5.3.5/bin/phpize ./configure --with-php-config=/opt/php_5.3.5/bin/php-config make make install
PHP 5.2
Beschaffen
cd /opt wget http://www.php.net/get/php-5.2.17.tar.gz/from/de.php.net/mirror tar xzf php-5.2.17.tar.gz cd php-5.2.17
wget http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz gunzip php-5.2.17-fpm-0.5.14.diff.gz patch -p 1 -i php-5.2.17-fpm-0.5.14.diff
Patch
wget http://download.suhosin.org/suhosin-patch-5.2.16-0.9.7.patch.gz gunzip suhosin-patch-5.2.16-0.9.7.patch.gz patch -p 1 -i suhosin-patch-5.2.16-0.9.7.patch
Configure
Standart:
./configure --enable-mbstring=all --enable-mbregex --enable-force-cgi-redirect --with-pcre-regex --with-mysql --with-mysqli --with-mcrypt --with-curl --without-sqlite --without-mm --enable-fastcgi --with-gd --enable-bcmath --with-zlib --with-pear --with-gettext --enable-ftp --enable-soap --with-openssl --with-freetype-dir=/usr/lib --with-jpeg-dir=/usr/lib --prefix=/opt/php_5.2.17 --with-config-file-path=/etc/php
Idun und Hoedur:
./configure --enable-mbstring=all --enable-mbregex --enable-force-cgi-redirect --with-pcre-regex --with-mysql --with-mysqli --with-mcrypt --with-curl --with-libevent --without-sqlite --without-mm --enable-fastcgi --with-gd --enable-bcmath --enable-fpm --with-zlib --with-pear --with-gettext --enable-ftp --enable-soap --enable-zip --with-openssl --with-freetype-dir=/usr/lib --with-jpeg-dir=/usr/lib --prefix=/opt/php_5.2.17 --with-config-file-path=/etc/php
Thor und Fosta:
./configure --enable-mbstring=all --enable-mbregex --enable-force-cgi-redirect --with-pcre-regex --with-mysql --with-mysqli --with-mcrypt --with-curl --without-sqlite --without-mm --enable-fastcgi --with-gd --enable-bcmath --with-zlib --with-pear --with-gettext --enable-ftp --with-openssl --enable-soap --enable-zip --with-freetype-dir=/usr/lib --with-jpeg-dir=/usr/lib --prefix=/opt/php_5.2.17 --with-config-file-path=/etc/php
Snotra:
./configure --enable-mbstring=all --enable-mbregex --enable-force-cgi-redirect --with-pcre-regex --with-mysql --with-mysqli --with-pgsql --with-mcrypt --with-curl --without-sqlite --without-mm --enable-fastcgi --with-gd --enable-bcmath --with-zlib --with-pear --with-gettext --enable-ftp --with-openssl --enable-soap --with-freetype-dir=/usr/lib --with-jpeg-dir=/usr/lib --prefix=/opt/php_5.2.17 --with-config-file-path=/etc/php
Vali:
./configure --enable-mbstring=all --enable-mbregex --enable-force-cgi-redirect --with-pcre-regex --with-mysql --with-mysqli --with-mcrypt --with-curl --without-sqlite --without-mm --enable-fastcgi --with-gd --enable-bcmath --with-zlib --with-pear --with-gettext --enable-ftp --with-openssl --with-imap --with-kerberos --with-imap-ssl --with-freetype-dir=/usr/lib --with-jpeg-dir=/usr/lib --prefix=/opt/php_5.2.17 --with-config-file-path=/etc/php
Heimdallx1:
./configure --enable-fpm --with-libevent --enable-mbstring=all --enable-mbregex --enable-force-cgi-redirect --with-pcre-regex --with-mysql --with-mysqli --with-mcrypt --with-curl --without-sqlite --without-mm --enable-fastcgi --with-gd --enable-bcmath --with-zlib --with-pear --disable-debug --with-gettext --enable-ftp --with-openssl --enable-soap --with-freetype-dir=/usr/lib --with-jpeg-dir=/usr/lib --prefix=/opt/php_5.2.17 --with-config-file-path=/etc/php
Bauen
make make install
XCache
cd /opt wget http://xcache.lighttpd.net/pub/Releases/1.3.1/xcache-1.3.1.tar.gz tar xzf xcache-1.3.1.tar.gz cd xcache-1.3.1 phpize ./configure --enable-xcache --enable-xcache-optimizer --with-php-config=/opt/php_5.2.17/bin/php-config make make install
Igbinary
cd /opt wget http://opensource.dynamoid.com/igbinary-1.1.1.tar.gz tar xzf igbinary-1.1.1.tar.gz cd igbinary-1.1.1 phpize ./configure --with-php-config=/opt/php_5.2.17/bin/php-config make make install
http
cd /opt wget http://pecl.php.net/get/pecl_http-1.7.0.tgz tar -zxf pecl_http-1.7.0.tgz cd pecl_http-1.7.0 phpize ./configure --with-php-config=/opt/php_5.2.17/bin/php-config make make install
memcache
cd /opt wget http://pecl.php.net/get/memcache-2.2.6.tgz tar -zxf memcache-2.2.6.tgz cd memcache-2.2.6 phpize ./configure --with-php-config=/opt/php_5.2.17/bin/php-config make make install
memcached
cd /opt wget http://pecl.php.net/get/memcached-1.0.2.tgz tar -zxf memcached-1.0.2.tgz cd memcached-1.0.2 /opt/php_5.2.17/bin/phpize ./configure --with-php-config=/opt/php_5.2.17/bin/php-config --enable-memcached-igbinary make make install
PHP APT
apt-get install php5-cli php5-mysql php5-memcache php5-http
