Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd April 2013, 23: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; 4th April 2013 at 00:50.
Reply With Quote
Sponsored Links
  #2  
Old 4th April 2013, 19:16
MyKE MyKE is offline
Junior Member
 
Join Date: Feb 2010
Posts: 28
Thanks: 4
Thanked 1 Time in 1 Post
 
Default

Problem solved!

My path in ISPConfig to pool and ini were bad. Correct - /opt/php-5.4.13/lib not /opt/php-5.4.13-fpm/lib...

And also I have upgraded to lastest Nginx and must edit nginx configuration file from line:

Quote:
listen 80;
listen [::]:80 default_server;
to:

Quote:
listen 80;
listen [::]:80 ipv6only=on default_server;
Otherwise Nginx could not start

Quote:
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)


Reply With Quote
The Following User Says Thank You to MyKE For This Useful Post:
falko (5th April 2013)
Reply

Bookmarks

Tags
ispconfig 3.0.5.2, nginx, php-fpm, ubuntu

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 20:04.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.