The path of this article and users are webmaster on their own server, we should be based on the situation of their own servers to make changes.
Install PHP 5.3.3 (5.3.3 already includes FPM):
The code is as follows |
Copy Code |
wget http://cn.php.net/get/php-5.3.3.tar.bz2 (link may fail everyone can go to cn.php.net download the latest version you need) TAR-JXVF php-5.3.3.tar.bz2 CD php-5.3.3./configure--prefix=/usr/home/yaoya/php--enable-fpm make make install
|
Configure PHP:
The code is as follows |
Copy Code |
CP Php.ini-development/usr/home/yaoya/php/lib/php.ini CD/USR/HOME/YAOYA/PHP/ETC CP Php-fpm.conf.default Php-fpm.conf
|
Edit php-fpm.conf
The code is as follows |
Copy Code |
[Global] pid =/usr/home/yaoya/php/var/run/php-fpm.pid Error_log =/usr/home/yaoya/php/var/log/php-fpm.log Log_level = notice [www] listen = 127.0.0.1:9000 user = Yaoya Group = Yaoya pm = Dynamic Pm.max_children = Pm.start_servers = PM . min_spare_servers = 5 Pm.max_spare_servers = 35
|
Start PHP fastcgi:
code is as follows |
copy code |
/usr/home/ YAOYA/PHP/SBIN/PHP-FPM |