disabling pdo_mysql for a user and enabling nd_pdo_mysql on PHP 8.3.4

Started by psingh, August 12, 2024, 10:18:52 PM

Previous topic - Next topic

psingh

Hello
we have CWP pro running on our server.
For one user we require disabling pdo_mysql  and enabling nd_pdo_mysql on PHP 8.3.4

we are using PHPFPM with Apache, Nginx and Varnish.

We have tried editing php.ini from user panel with below, but its not reflecting in the phpinfo shown on the domain

pls help what exact steps we need to perform to disable the pdo_mysql for that account and activating the nd_pdo_mysql extension with phpfpm

we have set below in edit php.ini
--
extension=nd_pdo_mysql
disable_functions=pdo_mysql

--
but it does not reflect in the phpinfo

thanks

cyberspace

CWP loads the extension globally. So if you want to disable it then you need to disable it:
;extension=pdo_mysql.so
in the global php.ini file. See:

/opt/alt/php81/usr/php/php.d
/opt/alt/php81/usr/php/php.ini


and then enable for all users (add "extension=pdo_mysql.so") except the specific user in their local php.ini.