/go/disablefpm: disablefpm from the Command Line

/go/disablefpm stops the server from running each account's PHP through its own PHP-FPM pool, and switches Apache to run PHP itself through mod_php. It: It works only on Apache servers on AlmaLinux, Rocky, CentOS, Red Hat, and Fedora. Nginx servers and Debian or Ubuntu servers need PHP-FPM, so the command refuses to run there. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

/go/disablefpm

Examples

# Before: keep copies in case you need to go back
sudo cp -a /var/lib/sqlite/site.db /root/site.db.bak
sudo cp -a /etc/opt/remi /root/remi-backup

# Switch to mod_php
/go/disablefpm

# Check that no account still has PHP-FPM turned on
sudo sqlite3 /var/lib/sqlite/site.db "SELECT COUNT(*) FROM Site WHERE FPM=1"

# Check that Apache has a PHP module loaded
httpd -M | grep -i php

Output

The command prints nothing of its own when it succeeds. Any output on screen comes from the commands it runs (conf, go, and fpm).

Message Meaning
PHP-FPM Required By NGINX The server uses Nginx. Nothing is changed. Exit status 1.
PHP-FPM Required By Debian & Ubuntu The server runs Debian or Ubuntu. Nothing is changed. Exit status 1.

See the full reference at /go/disablefpm and the GoAdmio command index.

GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *