azuremoodle

Disable PHP-FPM

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

  • Disable the mpm_event module by commenting the LoadModule directive:

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

      LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
    
  • Enable the php7 module by uncommenting its LoadModule directive:

      LoadModule php7_module  modules/libphp7.so
    
  • Restart Apache:

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

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

      $ sudo mv /etc/monit/conf.d/php-fpm.conf /etc/monit/conf.d/php-fpm.conf.disabled
      $ sudo gonit reload
    
Last modification February 9, 2023