Issue with downgrade PHP on CloudLinux

feerdispzoo

Verified User
Joined
Jan 17, 2022
Messages
189
I try install ioncube, but I see module is not available yet for this php version. I need urgent, so I try in selector switch to system default php 8.0 and disable php 8.1

Again test still return:
There is no ionCube loader available for PHP 8.1.

[root@vmi936444 ~]# php -v
PHP 8.1.8 (cli) (built: Jul 15 2022 00:41:51) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.8, Copyright (c) Zend Technologies
[root@vmi936444 ~]#


abc.png
 
change php at user level on needed account, also for what you are using native php? better to disable it
 
Thanks for information. I disable this native option php.

With this second, I try install ioncube from root, so I think this is not related to user php. I need change system default php

cd /usr/local/directadmin/custombuild
./build update
./build set ioncube yes
./build ioncube
 
described commands install ioncube for native php. iouncube for other versions installed by cloudlinux and can be enabled in php extensions menu at user level, or you can configure default modules collection in admin level for each php version and enable ioncube by default.
 
Open a terminal window.
Identify the PHP packages you need to uninstall with the following command: rpm -qa |grep php .
Take a note and/or make a screenshot of all the package you need - as you'll have to reinstall them later on.
Remove the installed PHP 7.2 packages - along with all their dependencies - with the following command: yum remove php-*
Install the PHP 7.1 packages with the following command

Regards,
J Wick
 
Open a terminal window.
Identify the PHP packages you need to uninstall with the following command: rpm -qa |grep php .
Take a note and/or make a screenshot of all the package you need - as you'll have to reinstall them later on.
Remove the installed PHP 7.2 packages - along with all their dependencies - with the following command: yum remove php-*
Install the PHP 7.1 packages with the following command

Regards,
J Wick


Thank you for your time and posting to the forums. Please be careful providing instructions, as they might work different. First of all CloudLinux has its own php packages, and they names start from alt-php-*. Secondly the TS's issue is that PHP version did not reflect his choice in DirectAdmin control panel. And then, there is no mention or need to remove PHP 7.2 at all.


@feerdispzoo,

Your user for which you try and change PHP version is probably not within a CageFS. And you might change the active PHP 8.1 for the user on a domain bases using DirectAdmin native PHP selector.
 
Back
Top