View Single Post
  #1  
Old 3rd April 2013, 22:29
MyKE MyKE is offline
Junior Member
 
Join Date: Feb 2010
Posts: 28
Thanks: 4
Thanked 1 Time in 1 Post
Lightbulb Problem with Nginx and compiled PHP-FPM

Hello,

Today I have configured successfuly The Perfect Server - Ubuntu 12.10 (nginx, BIND, Dovecot, ISPConfig 3), default ubuntu PHP 5.3.x works with nginx, but when I have compiled my own last stable php version 5.4.13 with this tutorial on page 3 http://www.howtoforge.com/how-to-use...buntu-12.10-p3 and added it to ISP Config as another php version, nginx say 502 Bad Gateway nginx/1.1.19.

Path in ISP config:
Quote:
Path to the PHP-FPM init script: /etc/init.d/php-5.4.13-fpm

Path to the php.ini directory: /opt/php-5.4.13-fpm/lib

Path to the PHP-FPM pool directory: /opt/php-5.4.13-fpm/etc/pool.d
There is /opt/php-5.4.13/var/log/php-fpm.log

Quote:
[03-Apr-2013 18:01:49] NOTICE: fpm is running, pid 22271
[03-Apr-2013 18:01:49] NOTICE: ready to handle connections
[03-Apr-2013 18:10:05] NOTICE: Reloading in progress ...
[03-Apr-2013 18:10:05] NOTICE: reloading: execvp("/opt/php-5.4.13/sbin/php-fpm", {"/opt/php-5.4.13/sbin/php-fpm", "-$
[03-Apr-2013 18:10:05] WARNING: Nothing matches the include pattern '/opt/php-5.4.13/etc/pool.d/*.conf' from /opt/ph$
[03-Apr-2013 18:10:05] NOTICE: using inherited socket fd=8, "127.0.0.1:8999"
[03-Apr-2013 18:10:05] NOTICE: using inherited socket fd=8, "127.0.0.1:8999"
[03-Apr-2013 18:10:05] NOTICE: fpm is running, pid 1455
[03-Apr-2013 18:10:05] NOTICE: ready to handle connections
[03-Apr-2013 20:47:02] NOTICE: Reloading in progress ...
[03-Apr-2013 20:47:02] NOTICE: reloading: execvp("/opt/php-5.4.13/sbin/php-fpm", {"/opt/php-5.4.13/sbin/php-fpm", "-$
[03-Apr-2013 20:47:02] WARNING: Nothing matches the include pattern '/opt/php-5.4.13/etc/pool.d/*.conf' from /opt/ph$
[03-Apr-2013 20:47:02] NOTICE: using inherited socket fd=8, "127.0.0.1:8999"
[03-Apr-2013 20:47:02] NOTICE: using inherited socket fd=8, "127.0.0.1:8999"
[03-Apr-2013 20:47:02] NOTICE: fpm is running, pid 20772
[03-Apr-2013 20:47:02] NOTICE: ready to handle connections
[03-Apr-2013 20:47:06] NOTICE: Reloading in progress ...
[03-Apr-2013 20:47:06] NOTICE: reloading: execvp("/opt/php-5.4.13/sbin/php-fpm", {"/opt/php-5.4.13/sbin/php-fpm", "-$
[03-Apr-2013 20:47:06] WARNING: Nothing matches the include pattern '/opt/php-5.4.13/etc/pool.d/*.conf' from /opt/ph$
[03-Apr-2013 20:47:06] NOTICE: using inherited socket fd=8, "127.0.0.1:8999"
[03-Apr-2013 20:47:06] NOTICE: using inherited socket fd=8, "127.0.0.1:8999"
[03-Apr-2013 20:47:06] NOTICE: fpm is running, pid 20794
[03-Apr-2013 20:47:06] NOTICE: ready to handle connections
[03-Apr-2013 20:57:02] NOTICE: Reloading in progress ...
[03-Apr-2013 20:57:02] NOTICE: reloading: execvp("/opt/php-5.4.13/sbin/php-fpm", {"/opt/php-5.4.13/sbin/php-fpm", "-$
[03-Apr-2013 20:57:02] WARNING: Nothing matches the include pattern '/opt/php-5.4.13/etc/pool.d/*.conf' from /opt/ph$
[03-Apr-2013 20:57:02] NOTICE: using inherited socket fd=8, "127.0.0.1:8999"
[03-Apr-2013 20:57:02] NOTICE: using inherited socket fd=8, "127.0.0.1:8999"
[03-Apr-2013 20:57:02] NOTICE: fpm is running, pid 21028
[03-Apr-2013 20:57:02] NOTICE: ready to handle connections
Can you help me to get work with this another php version?



And last question I look on nginx and I have very old version 1.1.19 can I replace it with newer? Because ubuntu server apt has this legacy version, so I have added lastest stable nginx repository to my update list, I'm worry about this if ISP config refuse it or something happens...

Thank you for help.

Last edited by MyKE; 3rd April 2013 at 23:50.
Reply With Quote
Sponsored Links