Lately I needed an update of PHP (7.2 to 7.4) on my WHMCS CentOS 7 built box- here’re the process that I followed. But before that, I’m sharing my original post on setting up WHMCS on CentOS 7
Since I used remi repository to install version 7.2, I’ll be doing the same as well-
root@portal:~# yum-config-manager --enable remi-php74 root@portal:~# yum update
Now install PHP 7.4 with all necessary modules with the command below-
root@portal:~# yum install php php-mbstring php-pear php74-php-pdo.x86_64 php-pdo.x86_64 php-mysql.x86_64 php-ioncube-loader.x86_64 php-curl curl php-soap.x86_64 php74-php-soap.x86_64 php-gd.x86_64 php74-php-gd.x86_64
Now restart apache service-
root@portal:~# systemctl restart httpd
Now check PHP version from console-
[root@portal modules]# php -v PHP 7.4.33 (cli) (built: Aug 1 2023 09:00:17) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with the ionCube PHP Loader + ionCube24 v13.0.2, Copyright (c) 2002-2023, by ionCube Ltd.
now login to your WHMCS admin console and go to:
Utilities > System > PHP Info
Resources:
https://www.sunpathservers.net/clients/knowledgebase/314/Installing-WHMCS-in-CentOS-7-woro-a-Control-Panel.html?language=dutch
https://www.ezeelogin.com/kb/article/how-to-upgrade-php-to-7-4-on-centos-7-393.html