Hey, Nginx gain popularity because it lightweight and scalability. Here I will provide a short how to set up nginx running php with php5-fpm(fastcgi process manager) in ubuntu 12.04
#apt-get install nginx php-fpm
Config file for php is at /etc/php5/fpm/pool.d/
This you can control how php process run, tcp or unix socket
The config file for nginx to run php is you need the following configuration to location block :
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
}
For configuration optimizing please see this link :
http://www.if-not-true-then-false.com/2011/nginx-and-php-fpm-configuration-and-optimizing-tips-and-tricks/
A brief short linux how to and problem solving. This blog is intended to be a reference by summarizing from reliable data source and my experience. Readers should have a basic understanding about linux.
วันอังคารที่ 22 พฤษภาคม พ.ศ. 2555
วันศุกร์ที่ 11 พฤษภาคม พ.ศ. 2555
PHP5.2 for ubuntu
New ubuntu come with PHP5.3. If you need php5.2 to run your old application you have 3 ways.
1) use karmic repository
http://randyfay.com/node/63
2) use .deb
http://thejibe.com/blog/10/10/php-5210-debs-ubuntu-1010-maverick
3) use launchpad respository
https://launchpad.net/~txwikinger/+archive/php5.2
สมัครสมาชิก:
บทความ (Atom)