AlmaLinux/RHEL 8.5: Multiple PHP Installs - systemctl php-fpm.service reload

Discussion in 'Installation/Configuration' started by petzsch, Jan 18, 2022.

  1. petzsch

    petzsch New Member

    Hi,
    I have a problem with my fresh AlmaLinux 8.5 install. I'm trying to run multiple PHP versions (like I'm used to from Debian).
    I've used the Remi Repository to add PHP 8.0 and 8.1 and everything seems to work. Just the reloading of the fpm service only seems to restart my main php7.4 install.
    Here is what happens when I switch from 8.0 to 8.1 in the DEBUG log:
    Code:
    18.01.2022-13:44 - DEBUG - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    18.01.2022-13:44 - DEBUG - Found 1 changes, starting update process.
    18.01.2022-13:44 - DEBUG - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
    18.01.2022-13:44 - DEBUG - Calling function 'update' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
    18.01.2022-13:44 - DEBUG - safe_exec cmd: chattr -i '/var/www/clients/client0/web1' - return code: 0
    18.01.2022-13:44 - DEBUG - safe_exec cmd: chattr +i '/var/www/clients/client0/web1' - return code: 0
    18.01.2022-13:44 - DEBUG - safe_exec cmd: df -T '/var/www/clients/client0/web1'|awk 'END{print $2,$NF}' - return code: 0
    18.01.2022-13:44 - DEBUG - safe_exec cmd: xfs_quota -x -c 'limit -u bsoft=0m bhard=0m web1' '/' - return code: 0
    18.01.2022-13:44 - DEBUG - safe_exec cmd: xfs_quota -x -c 'timer -bir -i 604800' '/' - return code: 0
    18.01.2022-13:44 - DEBUG - safe_exec cmd: chattr +i '/var/www/clients/client0/web1' - return code: 0
    18.01.2022-13:44 - DEBUG - safe_exec cmd: which 'apache2ctl' 2> /dev/null - return code: 1
    18.01.2022-13:44 - DEBUG - safe_exec cmd: which 'apachectl' 2> /dev/null - return code: 0
    18.01.2022-13:44 - DEBUG - Enable SSL for: isp-panel.net
    18.01.2022-13:44 - DEBUG - Writing the vhost file: /etc/httpd/conf/sites-available/isp-panel.net.vhost
    18.01.2022-13:44 - DEBUG - safe_exec cmd: which 'apache2ctl' 2> /dev/null - return code: 1
    18.01.2022-13:44 - DEBUG - safe_exec cmd: which 'apachectl' 2> /dev/null - return code: 0
    18.01.2022-13:44 - DEBUG - Writing the PHP-FPM config file: /etc/opt/remi/php81/php-fpm.d/web1.conf
    18.01.2022-13:44 - DEBUG - Removed PHP-FPM config file: /etc/opt/remi/php80/php-fpm.d/web1.conf
    18.01.2022-13:44 - DEBUG - Calling function 'restartPHP_FPM' from module 'web_module'.
    18.01.2022-13:44 - DEBUG - Trying to use Systemd to restart service
    18.01.2022-13:44 - DEBUG - safe_exec cmd: systemctl is-enabled 'php-fpm' 2>&1 - return code: 0
    18.01.2022-13:44 - DEBUG - Restarting php-fpm: systemctl reload php-fpm.service
    18.01.2022-13:44 - DEBUG - Calling function 'restartPHP_FPM' from module 'web_module'.
    18.01.2022-13:44 - DEBUG - Trying to use Systemd to restart service
    18.01.2022-13:44 - DEBUG - safe_exec cmd: systemctl is-enabled 'php-fpm' 2>&1 - return code: 0
    18.01.2022-13:44 - DEBUG - Restarting php-fpm: systemctl reload php-fpm.service
    18.01.2022-13:44 - DEBUG - Apache status is: running
    18.01.2022-13:44 - DEBUG - Calling function 'restartHttpd' from module 'web_module'.
    18.01.2022-13:44 - DEBUG - Trying to use Systemd to restart service
    18.01.2022-13:44 - DEBUG - safe_exec cmd: systemctl is-enabled 'httpd' 2>&1 - return code: 0
    18.01.2022-13:44 - DEBUG - Restarting httpd: systemctl restart httpd.service
    18.01.2022-13:44 - DEBUG - Apache restart return value is: 0
    18.01.2022-13:44 - DEBUG - Apache online status after restart is: running
    18.01.2022-13:44 - DEBUG - Processed datalog_id 37
    18.01.2022-13:44 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    My problem is, I want it to call a specific systemd service script for each PHP version. But I can't find a place to configure those:
    I'd like to call:
    systemctl reload php80-php-fpm.service
    or
    systemctl reload php81-php-fpm.service

    Any help with this would be appreciated. :)
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You have to enter "php80-php-fpm" in the field "Path to the PHP-FPM init script" of the additional PHP version in ISPConfig.
     
  3. petzsch

    petzsch New Member

    Ah that explains it. I've tried adding the php-fpm binary instead of the init script: /opt/remi/php80/root/usr/sbin/php-fpm

    Gonna try that now.

    EDIT: worked
     
    Last edited: Jan 18, 2022

Share This Page