Here are some rough notes on getting this set up. This is by no means complete, but it's a decent starting point.

#!/bin/bash
 
apt-get install bison flex gcc patch autoconf subversion locate
apt-get install libxml2-dev libbz2-dev libpcre3-dev libssl-dev zlib1g-dev libmcrypt-dev libmhash-dev libmhash2 libcurl4-openssl-dev libpq-dev libpq5 libsyck0-dev
apt-get install libpng-dev
apt-get install libmysqlclient15-dev
apt-get install libpcre3-dev
apt-get install libevent-dev
apt-get install libjpeg62-dev
 
cd /usr/local/src
wget <a href="http://us3.php.net/get/php-5.2.10.tar.gz/from/us.php.net/mirror<br />
wget" title="http://us3.php.net/get/php-5.2.10.tar.gz/from/us.php.net/mirror<br />
wget">http://us3.php.net/get/php-5.2.10.tar.gz/from/us.php.net/mirror<br />
wget</a> <a href="http://php-fpm.org/downloads/php-5.2.10-fpm-0.5.13.diff.gz<br />
tar" title="http://php-fpm.org/downloads/php-5.2.10-fpm-0.5.13.diff.gz<br />
tar">http://php-fpm.org/downloads/php-5.2.10-fpm-0.5.13.diff.gz<br />
tar</a> -xzf ./php-5.2.10.tar.gz
gzip -cd php-5.2.10-fpm-0.5.13.diff.gz | patch -d php-5.2.10 -p1
cd php-5.2.10
./configure --with-openssl --enable-fastcgi --enable-fpm --with-zlib --enable-mbstring --with-mysqli --with-mysql --with-pdo_mysql --with-gd --with-jpeg-dir=/usr/lib/libjpeg.so.62 --without-sqllite --enable-gd-native-tff
make all install
cp ./php.ini-recommended /usr/local/lib
# add /usr/local/lib/php to your include_path in php.ini
rm -rf /usr/local/lib/php/.channels
/usr/local/bin/pear update-channels
 
 
/usr/local/bin/pecl install memcache
/usr/local/bin/pecl install apc # say no to apache
/usr/local/bin/pecl install pecl_http # say no to apache
# add extension=apc.so to php.ini
# add extension=memcache.so to php.ini
# add extension=http.so to php.ini
# add extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613" to php.ini
 
cd /usr/local/src
wget <a href="http://sysoev.ru/nginx/nginx-0.7.61.tar.gz<br />
tar" title="http://sysoev.ru/nginx/nginx-0.7.61.tar.gz<br />
tar">http://sysoev.ru/nginx/nginx-0.7.61.tar.gz<br />
tar</a> -xzf nginx-0.7.61.tar.gz
cd nginx-0.7.61
./configure --with-http_ssl_module --sbin-path=/usr/local/sbin --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_stub_status_module
make build install
 
cd /usr/local/src
wget <a href="http://memcached.googlecode.com/files/memcached-1.4.0.tar.gz<br />
tar" title="http://memcached.googlecode.com/files/memcached-1.4.0.tar.gz<br />
tar">http://memcached.googlecode.com/files/memcached-1.4.0.tar.gz<br />
tar</a> -xzf memcached-1.4.0.tar.gz
cd memcached-1.4.0
./configure
make all install

Powered by Drupal, an open source content management system

Navigation