bchdokuwiki

Disable PHP-FPM

To disable an already enabled PHP-FPM configuration, follow these steps:

  • Disable mpm_event by commenting the LoadModule directive:

    #LoadModule mpm_event_module modules/mod_mpm_event.so
    
  • Enable mpm_prefork by uncommenting its LoadModule directive:

    LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
    
  • Enable mod_php by uncommenting its LoadModule directive:

    LoadModule php7_module  modules/libphp7.so
    
  • Restart Apache:

    $ /opt/bitnami/ctlscript.sh restart apache
    
  • Stop PHP-FPM:

    $ /opt/bitnami/ctlscript.sh stop php-fpm
    
  • Disable PHP-FPM:

    $ sudo mv /opt/bitnami/php/scripts/ctl.sh /opt/bitnami/php/scripts/ctl.sh.disabled
    
Last modification May 9, 2019