This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
railsbox.org:~ ozeias$ apt-get update | |
railsbox.org:~ ozeias$ apt-get dist-upgrade | |
railsbox.org:~ ozeias$ apt-get install build-essential | |
railsbox.org:~ ozeias$ apt-get install vim | |
railsbox.org:~ ozeias$ apt-get install zlibc openssl libpcre3 libpcre3-dev libcompress-zlib-perl libpcrecpp0 pcregrep |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
railsbox.org:~ ozeias$ wget http://sysoev.ru/nginx/nginx-0.6.34.tar.gz | |
railsbox.org:~ ozeias$ tar xvf nginx-0.6.34.tar.gz | |
railsbox.org:~ ozeias$ ./configure | |
railsbox.org:~ ozeias$ make | |
railsbox.org:~ ozeias$ sudo make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## railsbox.org:~ ozeias$ vim /usr/local/nginx/conf/nginx.conf | |
user www-data; | |
worker_processes 4; | |
error_log /usr/local/nginx/logs/error.log; | |
pid /usr/local/nginx/logs/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## railsbox.org:~ ozeias$ vim /etc/init.d/nginx | |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the nginx web server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
railsbox.org:~ ozeias$ sudo apt-get install php5-cgi php5-mysql | |
railsbox.org:~ ozeias$ sudo apt-get install lighttpd | |
railsbox.org:~ ozeias$ sudo /etc/init.d/lighttpd stop | |
railsbox.org:~ ozeias$ sudo rm /etc/init.d/lighttpd | |
railsbox.org:~ ozeias$ sudo update-rc.d lighttpd remove |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## railsbox.org:~ ozeias$ vim /etc/init.d/spawn-fcgi | |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts FastCGI for PHP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
railsbox.org:~ ozeias$ cd /etc/init.d | |
railsbox.org:~ ozeias$ sudo update-rc.d spawn-fcgi defaults |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
railsbox.org:~ ozeias$ sudo apt-get install libtool libltdl3-dev libgd-dev libmcrypt-dev libxml2-dev libmysqlclient15-dev flex m4 awk automake autoconf bison make libbz2-dev libpcre3-dev libssl-dev zlib1g-dev vim re2c | |
railsbox.org:~ ozeias$ cd /usr/local/src | |
railsbox.org:~ ozeias$ wget http://it2.php.net/get/php-5.2.6.tar.gz/from/de2.php.net/mirror | |
railsbox.org:~ ozeias$ tar xzvf php-5.2.6.tar.gz | |
railsbox.org:~ ozeias$ wget http://php-fpm.anight.org/downloads/archive/php-5.2/php-5.2.6-fpm-0.5.9.diff.gz | |
railsbox.org:~ ozeias$ gzip -cd php-5.2.6-fpm-0.5.9.diff.gz | patch -d php-5.2.6 -p1 | |
railsbox.org:~ ozeias$ cd php-5.2.6 | |
railsbox.org:~ ozeias$ ./configure --enable-fastcgi --enable-fpm --with-mcrypt --with-zlib --enable-mbstring --with-openssl --with-mysql --with-mysql-sock --with-gd --with-jpeg-dir=/usr/lib --enable-gd-native-ttf --without-sqlite --disable-pdo --disable-reflection | |
railsbox.org:~ ozeias$ sudo make all install | |
railsbox.org:~ ozeias$ sudo strip /usr/local/bin/php-cgi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## railsbox.org:~ ozeias$ sudo vim /usr/local/etc/php-fpm.conf | |
:63 | |
www-data | |
:66 | |
www-data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
railsbox.org:~ ozeias$ cd /etc/init.d | |
railsbox.org:~ ozeias$ ln -s /usr/local/sbin/php-fpm php-fpm | |
railsbox.org:~ ozeias$ /usr/sbin/update-rc.d -f php-fpm defaults |
OlderNewer