Nginxintegrated php-fpmtar-zxvfphp-5.4.9.tar.bz2 cdphp-5.4.9.configure -- prefixusrlocalphp -- enable-fpmmakemakeinstallcpphp.ini-productionusrlocalphpetcphp.inicpusr nginx Integrated php-fpm
Tar-zxvf php-5.4.9.tar.bz2cd php-5.4.9. /configure -- prefix =/usr/local/php -- enable-fpmmake make installcp php. ini-production/usr/local/php/etc/php. inicp/usr/local/php/etc/php-fpm.conf.default/usr/local/php/etc/php-fpm.conf # php. configure the time zone vim/usr/local/php/etc/php in ini. inidate. timezone = Asia/Shanghai # php-fpm.ini configuration Directory, working User vim/usr/local/php/etc/php-fpm.iniaccess.log =/home/fansxnet/wwwroot/phpwww/logs/$ Pool. access. logslowlog =/home/fansxnet/wwwroot/phpwww/logs/$ pool. log. slowuser = fansxnetgroup = fansxnet #/home/fansxnet/wwwroot/phpwww directory folder list htdocs include logs templates # create an index in the htdocs directory. phpecho phpinfo () # nginx. add a location ~ to the conf configuration ~ \. Php $ {root/home/fansxnet/wwwroot/phpwww/htdocs; fastcgi_pass 127.0.0.1: 9000; fastcgi_index index. php; fastcgi_param PHP_VALUE 'include _ path =/home/fansxnet/wwwroot/phpwww/include:/user/share/pear '; fastcgi_param SCRIPT_FILENAME/home/fansxnet/wwwroot/phpwww/htdocs $ fastcgi_script_name; include fastcgi_params ;} # start nginx php-fpm/usr/local/openresty/nginx/sbin/nginx/usr/local/php/sbin/php-fpm-c/usr/local/php/etc /php. ini # Browse http://localhost/index.php# Add the module to specify the extension module directory vim/usr/local/php/etc/php. iniextensioin_dir = "/usr/lib64/php/modules" # curl modulecd php-5.4.9/ext/curlphpize. /configure -- with-php-config =/usr/local/php/bin/php-config -- with-curl =/usr/binmake make installvim/usr/local/php/etc /php. iniextension = curl. so # add curl
?