I'm working with a remote Centos7 box (on-site, but not in close proximity to me).
This is a development server I was given to have my way with, but unfortunately I have long been dependent on cPanel, and to use this box I was forced to use Webmin/Virtualmin, which required a lot more hands-on setup, which is where I went down the PHP rabbit hole.
After Googling and trying way too many suggestions to create a selectable PHP environment for my different servers and sub-servers, I've effectively hosed my different PHP versions.
Here's where I'm currently at:Operating system CentOS Linux 7.4.1708
Webmin version 1.852
Usermin version 1.720
Virtualmin version 6.01
Configuration File (php.ini) Path /etc/opt/rh/rh-php56
Loaded Configuration File /home/dev2/etc/php5.6/php.ini
Scan this dir for additional .ini files /etc/opt/rh/rh-php56/php.d
I screwed up imagick library module trying to manually install it - after the Webmin installer failed to do it automatically.[root@-------------------]# php -v
PHP Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning: Module 'mbstring' already loaded in Unknown on line 0
The PHP newer versions seemed to appear in Virtualmin, so I thought I was on the right path, but only when trying to add phpMyAdmin to the backend did I find that my PHP versions were not playing well together.
More than anything, I'm trying to get back to square one with the PHP... so any advice on how to properly downgrade to 5.4 would be greatly appreciated.
Believe me, I've Googled everything I could think of before signing up for this forum, and hopefully as I get more comfortable in the Centos7 environment, I can give back to the community!
Thanks all, and hope someone can help nudge me in the right direction.