Ubuntu 12.10 tacitly installs PHP5-FPM no listening 9000 port, Nginx cannot link php5-fpm fix

Source: Internet
Author: User
Ubuntu 12.10 Default installation PHP5-FPM No monitoring 9000 port, Nginx cannot link php5-fpm fix
After upgrading to Ubuntu 12.10 Nginx reported 502 error, PHP will not run.
Netstat-an not found listening on port 9000.
View/var/log/php5-fpm.log everything is OK.
Then look at/etc/php5/fpm/pool.d/www.conf and find listen =/var/run/php5-fpm.sock.

Modify the Sites configuration under Nginx
Location ~ \.php$ {
Fastcgi_pass 127.0.0.1:9000;
Fastcgi_index index.php;
Fastcgi_param application_env production;
Include Fastcgi_params;
}

For
Location ~ \.php$ {
Fastcgi_pass Unix:/var/run/php5-fpm.sock;
Fastcgi_index index.php;
Fastcgi_param script_filename $document _root$fastcgi_script_name;
Include Fastcgi_params;
}

After restarting PHP5-FPM with Nginx, restore.

Brother Choi's Blog
  • 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.