Author Topic: disabling pdo_mysql for a user and enabling nd_pdo_mysql on PHP 8.3.4  (Read 351 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
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
« Last Edit: August 12, 2024, 10:21:54 PM by psingh »

Offline
***
Re: disabling pdo_mysql for a user and enabling nd_pdo_mysql on PHP 8.3.4
« Reply #1 on: September 03, 2024, 12:56:40 PM »
CWP loads the extension globally. So if you want to disable it then you need to disable it:
Code: [Select]
;extension=pdo_mysql.soin the global php.ini file. See:
Code: [Select]
/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.