Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

changing from fpm to cgi - takes apache down

Discussion in 'EasyApache' started by katmai, Feb 26, 2019.

  1. katmai

    katmai Well-Known Member

    Joined:
    Mar 13, 2006
    Messages:
    558
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Brno, Czech Republic
    Using cPanel/WHM 78 - found a bug.

    If you're trying to switch a website that's on php-fpm to "off" aka cgi using the switch in multi-php menu, this will crash apache with the following error:

    [Tue Feb 26 15:00:29.548729 2019] [mpm_event:notice] [pid 6913:tid 47629203768384] AH00493: SIGUSR1 received. Doing graceful restart
    httpd: Syntax error on line 27188 of /etc/apache2/conf/httpd.conf: </VirtualHost>panel/cgi-priv/get_local.cgi> directive missing closing '>'


    In order to get it back online i had to rebuild httpd.conf:

    /usr/local/cpanel/scripts/php_fpm_config --rebuild
    /scripts/rebuildhttpdconf
    /scripts/restartsrv_apache_php_fpm
    /scripts/restartsrv_httpd

    Would be nice if this could get fixed, because i can't really have that much downtime while switching a site to non-fpm and then rebuilding or rebuilding after each site.

    cheers,
    rares
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,471
    Likes Received:
    505
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello @katmai

    I'm currently unable to reproduce this issue. Here's what I did:

    Go to WHM>>Software>>MultiPHP Manager -> Disabled System PHP-FPM -> Checked sites no change and no errors logged to apache config

    Go to WHM>>Software>>MultiPHP Manager -> Disabled per-site PHP-FPM -> No errors logged.

    Can you provide system information as well as cPanel version information along with detailed replication steps?

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice