easyapache4 php7.3: Fatal error: Uncaught Error: Class ‘mysqli’ not found in db_connect.php. Already enabled php73-php-mysqlnd

I am getting the below error after upgrading my php from 5 to 7.3. Fatal error: Uncaught Error: Class ‘mysqli’ not found in db_connect.php I have already enabled php73-php-mysqlnd via WHM EA4. From backend I can see the mysqli is loaded fine. # php -v PHP 7.3.13 (cli) (built: Dec 19 2019 20:13:29) ( NTS…

Passing environment variables to httpd in centos 7

In my previous Centos 6.10 server , I have been able to pass some environment variables to httpd by adding to /etc/sysconfig/httpd . ~/.envvars .envvars content is export MY_PASSWORD=’somepassword’ and then in http.conf SetEnv MY_PASSWORD ${MY_PASSWORD} and easily accessing the variable in php trough $_SERVER[‘MY_PASSWORD’] but after upgrading to Centos 7.7 this stopped working, in…