Introduction
The system-level PHP configurations cannot be reset to the default values from WHM. However, it can be done through the command line.
Procedure
Please note that, in the following commands, "##" must be replaced with the PHP version (i.e., 74 for 7.4, 80 for 8.0, 81 for 8.1, etc.).
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Move the php.ini file out of the way for the PHP version to reset.
mv -vi /opt/cpanel/ea-php##/root/etc/php.ini{,.$(date +%s)}
- Reinstall the ea-php##-php-common package.
- RHEL 7
yum reinstall ea-php##-php-common
- RHEL 8/9
dnf reinstall ea-php##-php-common
- Ubuntu
apt-get install --reinstall ea-php##-php-common
- RHEL 7
Comments
0 comments
Article is closed for comments.