PHP-FPM enabled but not loaded

Discussion in 'General' started by Ciao121, Feb 13, 2016.

  1. Ciao121

    Ciao121 New Member

    Hi,
    I tried to use PHP-FPM for a site. I get no error an options tab I get all FPM related options (PHP-FPM pm.max_children and others) but apache seems to use CGI/FastCGI as Server API (from phpinfo).
    I found a command (I cannot remember it :/) that showed me existing FPM pools. I had 4 and all 4 were idle.
    Version: PHP 5.6.17-0+deb8u1 (fpm-fcgi) (built: Jan 13 2016 09:10:13)
    Can anybody help me?
    Thank you!
     
  2. lnxgs

    lnxgs Member

    Hi,
    do you customize the website options on ispconfig panel?
    Do you enable some kind of caching on site-side (like wordpress w3 total cache...)?

    Regards,
    L.
     
  3. Ciao121

    Ciao121 New Member

    Hi Inxgs,
    Hi have for php:
    Code:
    post_max_size = 100M
    upload_max_filesize = 100M
    max_input_time = 3600
    memory_limit = 512M
    and for apache:
    Code:
    SetHandler server-status
    Order Deny,Allow | Deny from all | Allow from localhost
    I'm also using Wordfence (a wordpress plugin) caching system. But disabling/enabling it makes no difference.
    phpinfo is executed standalone (outside og wordpress).
     
  4. lnxgs

    lnxgs Member

    If you run phpinfo on cli, you can get different values associated with a setting because php.ini used by apache cgi or cli or php-fpm is different.
    If you run:
    ps aux | grep php-fpm
    and
    /etc/init.d/php5-fpm status
    what you get?

    Regards,
    L.
     
  5. Ciao121

    Ciao121 New Member

    I'm not running phpinfo from cli. With "standalone" I mean a phpinfo page not in a wordpress template (so I think not influenced by wordpress plugins).

    This is from ps aux | grep php-fpm:
    Code:
    root     15213  0.0  0.0 128148   984 pts/0    S+   11:35   0:00 grep php-fpm
    root     18457  0.0  0.0 648604 27916 ?        Ss   02:39   0:01 php-fpm: master process (/etc/php5/fpm/php-fpm.conf)                 
    web1     26128  0.0  0.0 648580  8980 ?        S    03:56   0:00 php-fpm: pool web1                                                   
    web1     26129  0.0  0.0 648580  8984 ?        S    03:56   0:00 php-fpm: pool web1                                                   
    www-data 26130  0.0  0.0 646600  8800 ?        S    03:56   0:00 php-fpm: pool www                                                    
    www-data 26131  0.0  0.0 646600  8800 ?        S    03:56   0:00 php-fpm: pool www
    
    This is from /etc/init.d/php5-fpm status:
    Code:
     php5-fpm.service - The PHP FastCGI Process Manager
       Loaded: loaded (/lib/systemd/system/php5-fpm.service; enabled)
       Active: active (running) since Sat 2016-02-13 02:39:39 CET; 8h ago
      Process: 26108 ExecReload=/bin/kill -USR2 $MAINPID (code=exited, status=0/SUCCESS)
      Process: 18449 ExecStartPre=/usr/lib/php5/php5-fpm-checkconf (code=exited, status=0/SUCCESS)
    Main PID: 18457 (php5-fpm)
       Status: "Processes active: 0, idle: 4, Requests: 0, slow: 0, Traffic: 0req/sec"
       CGroup: /system.slice/php5-fpm.service
               |-18457 php-fpm: master process (/etc/php5/fpm/php-fpm.conf)
               |-26128 php-fpm: pool web1
               |-26129 php-fpm: pool web1
               |-26130 php-fpm: pool www
               `-26131 php-fpm: pool www
    
    Feb 13 03:40:07 mysite.com systemd[1]: Reloading The PHP FastCGI Process Manager.
    Feb 13 03:40:07 mysite.com systemd[1]: Reloaded The PHP FastCGI Process Manager.
    Feb 13 03:41:02 mysite.com systemd[1]: Reloading The PHP FastCGI Process Manager.
    Feb 13 03:41:02 mysite.com systemd[1]: Reloaded The PHP FastCGI Process Manager.
    Feb 13 03:41:07 mysite.com systemd[1]: Reloading The PHP FastCGI Process Manager.
    Feb 13 03:41:07 mysite.com systemd[1]: Reloaded The PHP FastCGI Process Manager.
    Feb 13 03:55:02 mysite.com systemd[1]: Reloading The PHP FastCGI Process Manager.
    Feb 13 03:55:02 mysite.com systemd[1]: Reloaded The PHP FastCGI Process Manager.
    Feb 13 03:56:02 mysite.com systemd[1]: Reloading The PHP FastCGI Process Manager.
    Feb 13 03:56:02 mysite.com systemd[1]: Reloaded The PHP FastCGI Process Manager.
    
     
    Last edited: Mar 9, 2016
  6. lnxgs

    lnxgs Member

    Is your website the one on the pool web1?
    What is your "Loaded Configuration File"? Do you have also "Additional .ini files parsed" ?
    What are the last lines of the access.log you get?
     
  7. Ciao121

    Ciao121 New Member

    Yes, my websiteis the web1 one.
    Loaded Configuration File is /var/www/conf/web1/php.ini
    And those are additional ini parsed:
    Code:
    /etc/php5/cgi/conf.d/05-opcache.ini
    /etc/php5/cgi/conf.d/10-pdo.ini
    /etc/php5/cgi/conf.d/20-curl.ini
    /etc/php5/cgi/conf.d/20-gd.ini
    /etc/php5/cgi/conf.d/20-imagick.ini
    /etc/php5/cgi/conf.d/20-imap.ini
    /etc/php5/cgi/conf.d/20-intl.ini
    /etc/php5/cgi/conf.d/20-json.ini
    /etc/php5/cgi/conf.d/20-mcrypt.ini
    /etc/php5/cgi/conf.d/20-memcache.ini
    /etc/php5/cgi/conf.d/20-memcached.ini
    /etc/php5/cgi/conf.d/20-mysql.ini
    /etc/php5/cgi/conf.d/20-mysqli.ini
    /etc/php5/cgi/conf.d/20-pdo_mysql.ini
    /etc/php5/cgi/conf.d/20-pdo_sqlite.ini
    /etc/php5/cgi/conf.d/20-pspell.ini
    /etc/php5/cgi/conf.d/20-readline.ini
    /etc/php5/cgi/conf.d/20-recode.ini
    /etc/php5/cgi/conf.d/20-snmp.ini
    /etc/php5/cgi/conf.d/20-sqlite3.ini
    /etc/php5/cgi/conf.d/20-tidy.ini
    /etc/php5/cgi/conf.d/20-xcache.ini
    /etc/php5/cgi/conf.d/20-xmlrpc.ini
    /etc/php5/cgi/conf.d/20-xsl.ini 
    Not sure what you are asking with last lineof access.log. If you are asking for the line from web server log when I open my phpinfo... here it is:
    Code:
    87.11.220.121 - - [13/Feb/2016:16:13:36 +0100] "GET /phpinfo.php HTTP/1.1" 200 25903 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0"
     
  8. ztk.me

    ztk.me ISPConfig Developer ISPConfig Developer

    So your issue seems u have configured FPM ( which is usually connected by mod_fastcgi )
    Therefore it should announce Server API FPM/FastCGI
    What apache-modules are loaded? fastcgi / proxy_fcgi / fcgid / cgi(d) ?

    You can check /etc/php5/fpm/pool.d for configured fpm-instances - please also check the vhost file
    /etc/apache2/sites-enabled/100-domain...vhost which actually might be interesting to see if there really is an error.
     

Share This Page