ANS Documentation

Improve This Doc
  • Cloud
  • Domains and DNS management
  • Backup and High Availability
  • eCommerce Stacks
  • Security
  • Email
  • Monitoring and usage management
  • Networking
  • Operating systems
    • Linux
      • Basics
      • Apache
      • Control Panels
      • FTP
      • Magento
      • Miscellaneous
      • MySQL
      • NGINX
      • PHP
      • PHP-FPM
      • Setting up Websites
      • NFS
      • VPN
      • Percona
      • SSH
      • SSL
      • Git
      • Redis
      • Elasticsearch
      • MongoDB
      • Ncdu
    • VMware ESXi
    • Windows
  • Webcelerator
  • MyUKFast
  • Home >
  • Operating systems >
  • Linux >
  • Control Panels >
  • PHP-FPM is Disabled after EasyApache Update

PHP-FPM is Disabled after EasyApache Update¶

Why was PHP-FPM disabled for all my domains?¶

As of June 9th 2021, an EasyApache update to ea-apache24-config-1.0-171 has inadvertently disabled PHP-FPM on cPanel/WHM servers. The following components of WHM have been identified to have been affected.

ea-apache24-config-runtime-1.0-171.172.2.cpanel.noarch
ea-apache24-config-1.0-171.172.2.cpanel.noarch

This has also caused custom PHP-FPM configurations to be removed.

When will this be resolved?¶

As of yet, no automatic fix has been pushed out by cPanel. However UKFast have successfully tested an interim fix that restores functionality to websites on affected cPanel servers.

How to re-enable PHP-FPM for a single domain¶

  • Log into WHM.

  • Navigate to MultiPHP Manager..

  • In the bottom section, use the tab User Domain Settings, use the search bar to search for your domain.

  • To the far right of your domain, click the toggle icon to enable PHP-FPM.

How to re-enable PHP-FPM for all domains¶

  • Log into WHM.

  • Navigate to MultiPHP Manager.

  • In the bottom section, within PHP-FPM select the button Enable On All Domains

How to re-enable PHP-FPM & restore custom configurations¶

Note

This section requires you to connect to your server over SSH. Please see our guide on connecting to your server via SSH for further assistance.

To reinstate all domains that were previously using PHP-FPM along with any custom configuration, please see the following steps;

  • Connect to your server via SSH as the root user

  • Create a file named fix.pl with your preferred text editor (vi, vim or nano, for example) and populate it with the following contents:

#!/usr/local/cpanel/3rdparty/bin/perl
use strict;
use warnings;
use Cpanel::JSON;
use Data::Dumper;
use File::Slurp;
use YAML::Syck;
my $file = "@ARGV";
my $json = File::Slurp::slurp ($file);
my $hr = Cpanel::JSON::Load ($json);
my $yaml = YAML::Syck::Dump ($hr);
print $yaml . "\n";
  • Make sure the file is executable by running:

chmod +x fix.pl
  • Run the following loop:

find /var/cpanel/userdata -type f -iname '*fpm.cache' | while read file; do ./fix.pl ${file} > $(echo ${file} | sed 's/cache/yaml/'); done
  • Finally, rebuild all of the PHP-FPM configurations:

for i in $(cat /etc/userdomains | awk '{print $2}'); do echo "$i"; /scripts/php_fpm_config --rebuild $i; done

Note

Please contact UKFast support via a Priority Support Ticket for any further assistance with this.

Next Article > Performing a cPanel to cPanel Migration

  • Useful Links
  • SMB
  • Enterprise
  • Channel
  • Public Sector
  • ANS Data Centres
  • About ANS
  • Careers
  • Blog
  • Get in touch
  •  
  • Sales 0800 458 4545
  • Support 0800 230 0032
  • Get in touch

© ANS Group Limited | Terms and Conditions | Corporate Guidance | Sitemap
ANS Group Limited, registered in England and Wales, company registration number 03176761, registered office 1 Archway, Birley Fields, Manchester M15 5QJ