PHP-FPM does not kick-in after installing it

Discussion in 'Installation/Configuration' started by labsy, Nov 10, 2013.

  1. labsy

    labsy New Member

    Hi,

    I have fully functioonal ISPConfig server for few years, and I am very happy with it. Now, it is always fresh, as of this post 3.0.5.3
    Generally:
    - Ubuntu 12.04.3 LTS (Precise Pangolin)
    - Fast-CGI PHP Version 5.3.10-1ubuntu3.8
    - Suhoshin patch
    - Jailkit
    - NOT using any linux firewall, because there is double protection in front of this server. So I turned OFF ufw and apparmor and unistalled it.

    Now, for the sake of speeding it up to support resource-hog called Magento, which is being popular lately among my webhost users, I decided to give a try with:
    - newer PHP versions
    - PHP-FPM version
    - and excellent tuned MySQL 5.5 or 5.6 from PERCONA

    Now, I stuck with PHP-FPM, which I compiled from sources of PHP 5.3.27, following The Perfect Server instructions:
    http://www.howtoforge.com/how-to-us...fpm-and-fastcgi-with-ispconfig-3-ubuntu-12.10
    I installed all for PHP-FPM (APC, memcache, memcached, but no ioncube). Compiling went thru with no errors, PHP-FPM service starts up fine and is listening on port 8999:
    Code:
    [10-Nov-2013 22:46:04] NOTICE: fpm is running, pid 2339
    [10-Nov-2013 22:46:04] NOTICE: ready to handle connections
    [10-Nov-2013 22:47:02] NOTICE: Reloading in progress ...
    [10-Nov-2013 22:47:02] NOTICE: reloading: execvp("/opt/php-5.3.27/sbin/php-fpm", {"/opt/php-5.3.27/sbin/php-fpm", "--fpm-config", "/opt/php-5.3.27/etc/php-fpm.conf"})
    [10-Nov-2013 22:47:02] NOTICE: using inherited socket fd=8, "127.0.0.1:8999"
    [10-Nov-2013 22:47:02] NOTICE: using inherited socket fd=8, "127.0.0.1:8999"
    [10-Nov-2013 22:47:02] NOTICE: using inherited socket fd=9, "127.0.0.1:9195"
    [10-Nov-2013 22:47:02] NOTICE: using inherited socket fd=9, "127.0.0.1:9195"
    [10-Nov-2013 22:47:02] NOTICE: using inherited socket fd=10, "/var/lib/php5-fpm/web149.sock"
    [10-Nov-2013 22:47:02] NOTICE: using inherited socket fd=10, "/var/lib/php5-fpm/web149.sock"
    [10-Nov-2013 22:47:02] NOTICE: fpm is running, pid 7430
    [10-Nov-2013 22:47:02] NOTICE: ready to handle connections
    
    Code:
    # netstat -ant | grep -i LIST
    tcp        0      0 127.0.0.1:8999          0.0.0.0:*               LISTEN
    tcp        0      0 127.0.0.1:10024         0.0.0.0:*               LISTEN
    tcp        0      0 127.0.0.1:10025         0.0.0.0:*               LISTEN
    tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN
    tcp        0      0 127.0.0.1:9195          0.0.0.0:*               LISTEN
    tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:22222           0.0.0.0:*               LISTEN
    tcp        0      0 127.0.0.1:783           0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:5680            0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:10000           0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:8081            0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN
    tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN
    tcp6       0      0 :::22222                :::*                    LISTEN
    tcp6       0      0 :::21                   :::*                    LISTEN
    tcp6       0      0 :::25                   :::*                    LISTEN
    
    PROBLEM?
    I can see and set PHP-FPM and alternate PHP version for a previous or new client web site...
    ...but PHP-FPM does not kick-in! Web site is still powered by default Ubuntu's PHP and does not change.

    What am I missing?
     
    Last edited: Nov 10, 2013
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Is there a .err files in /etc/apache2/sites-available/ directory for this website?
     
  3. labsy

    labsy New Member

    Hi Tim,

    thank you for reply!
    No, for any of sites, which I tested with PHP-FPM, there is no .err file there. Among approx. 100 sites available, there are only 2 .err files there. There is nothing in common between these 2 sites...one is under Customer1, created 3 years ago, for plain HTML page. The other is much younger, few months only, and runs Joomla for Customer 89.
    So I see no logic, why would .err file be there only for this particular 2 sites...and for them only.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    A .err file is created when spache fails to start eith that configurtion. In duch a case, ispconfig stores the not eorking config as .err fole and uses he last working configuration instead.
     
  5. labsy

    labsy New Member

    So as I do not have any .err files for 2 testing web sites, it means, there is no error.
    What else could I be missing?
    How is that Apache does not run PHP-FPM, but it is properly configured in ISPConfig?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Are there any jobs listed when you take a look into the jobqueue in the ispconfig monitor?
     
  7. labsy

    labsy New Member

    No, there are no jobs in queue.
    I restarted server many times, installed latest updates, also installed the same (latest) version of ISPConfig over the old one few times, but everything works...except PHP-FPM
     
  8. labsy

    labsy New Member

    ADDED:
    One funny thing with my problem is also a new syndrome in ISPConfig, when I go to SITES --> Websites --> <one site name> --> Default DOMAIN tab

    Even if I do not change anything (on any domain), when trying to change tabs website warns me about unsaved changes on "Domain" tab. But I did not change anything!
    Maybe the problem is in PHP-FPM, which is also on this tab?
     

Share This Page