Ubuntu12.10 default installation php5-fpm no listening port 9000, nginx cannot link php5-fpm fix upgrade to ubuntu12.10 nginx reported 502 error, php cannot run. Netstat-an does not find listening to Port 9000. View the varlogphp5-fpm.log everything works. Then view etcphp5fpmpool. dwww. co ubuntu 12.10 default installation php5-fpm no listening port 9000, nginx cannot link php5-fpm correction
After upgrading to ubuntu 12.10, nginx reports a 502 error and php cannot run.
Netstat-an does not find listening to Port 9000.
View/var/log/php5-fpm.log everything works.
View/etc/php5/fpm/pool. d/www. conf and find listen =/var/run/php5-fpm.sock.
Modify sites configuration in nginx
Location ~ \. Php $ {
Fastcgi_pass 127.0.0.1: 9000;
Fastcgi_index index. php;
Fastcgi_param APPLICATION_ENV production;
Include fastcgi_params;
}
Is
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;
}
Restart the php5-fpm and nginx and restore.
Caige's blog