Nginx Adjustment PHP-FPM

Source: Internet
Author: User
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.ini Configuring the time zone Vim/usr/local/php/etc/php.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 a new Index.phpecho phpinfo () #nginx.conf configuration in the Htdocs directory add a location ~ \.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 module Specifies 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
?
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.