PHP handlers are Apache modules containing libraries for the Apache web server to utilize when running PHP code. Apache's PHP handlers are configured in the /etc/apache2/conf.d/php.conf configuration file. WHM comes with six PHP handlers.
However, you can follow the ways below in order to check the present PHP versions/handlers,
- Firstly, log in to SSH.
- Then, enter the below command and execute it,
/usr/local/cpanel/bin/rebuild_phpconf –current
- Lastly, you'll get the following output,
[email protected] ~ $ /usr/local/cpanel/bin/rebuild_phpconf –current
DEFAULT PHP: ea-php70
ea-php70 SAPI:suphp
ea-php71 SAPI:suphp
DEFAULT PHP: ea-php70
ea-php70 SAPI:suphp
ea-php71 SAPI:suphp
- You can use the following command to list all available PHP handlers on the server:
# /usr/local/cpanel/bin/rebuild_phpconf --available
- In order to set the current PHP handler to SuPHP:
# /usr/local/cpanel/bin/rebuild_phpconf 5 none suphp 1
#/usr/local/cpanel/bin/rebuild_phpconf --ea-php81=suphp
------------------------------------
Regards,
Rex Maughan
Leave a comment: