Ubuntu10.04 configure nginx + php-fpm Mode

Source: Internet
Author: User
Ppa install php-fpm installation toolkit $ sudoapt-getinstallpython-software-properties add ppa source $ sudoadd-apt-repositoryppa: yola/php5 install php5-fpmsudoapt-getupdatesudoapt-getinstall & nb

Install php-fpm using ppa

Installation kit

$ Sudo apt-get install python-software-properties

Add ppa Source

$ Sudo add-apt-repository ppa: yola/php5

Install php5-fpm

Sudo apt-get update
Sudo apt-get install php5-fpm

Install other necessary software

Sudo apt-get install nginx

Configure php-fpm

The php-fpm parser is in the C/S structure, and its configuration file is located:

(1)/etc/php5/fpm/php-fpm.conf

(2)/etc/php5/fpm/pool. d/

Generally, there are no strict Configuration Requirements, or I have not specifically studied the significance of each configuration parameter.

I used the tcp mode to connect to the fastcgi process, so I modified the address and port of the tcp listener and the name of the monitoring directory. I will not explain it in detail here, you can refer to the official documentation for configuration based on your needs.

Restart php5-fpm

Related Article

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.