postcd

Well-Known Member
Oct 22, 2010
721
21
68
Hello, in easyapache when i customize based on current profile, i see that PDO Mysql optio is ticked.

In PHPInfo, i see this part:

'--with-mysqli=/usr/bin/mysql_config' '--with-pdo-mysql=shared'

Also i see in phpinfo:

PDO
PDO support enabled
PDO drivers sqlite, sqlite2

pdo_sqlite
PDO Driver for SQLite 3.x enabled
SQLite Library 3.7.7.1

But i do NOT see pdo_mysql section, only sqlite...

Does it mean pdo_mysql is bugy or how to check, enable it?

Thank you
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello :)

Check the output of the following command:

Code:
 php -m|grep pdo
You should see "pdo_mysql" in the output if it's installed.

Thank you.
 
  • Like
Reactions: postcd

postcd

Well-Known Member
Oct 22, 2010
721
21
68
Thx, this is only output Your command returns:
pdo_sqlite
please can You help how can i enable pdo_mysql?

In WHM/EasyApache/Customize previously saved config/Exhaustive options, i had "PDO MySQL" ticked (so appears it was already installed).

Is it possible i did not saved previous config and i actually do not have it enabled/installed? Is there any way to discover it without needing to build easyapache again?
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello :)

It's possible that you saved the build profile and did not build Apache. What versions of Apache and PHP are you using? You can find the previous EasyApache build logs in the following directory:

/usr/local/cpanel/logs/easy/apache/

Thank you.
 

vikramverma

Registered
Jul 22, 2015
1
0
1
Noida
cPanel Access Level
Root Administrator
recently started using cPanel, PDO isn't enabled by default you need to add it in EasyApache there's some module which needs to be enabled to get mysqli and pdo work in cPanel
 

postcd

Well-Known Member
Oct 22, 2010
721
21
68
Hello, i tried to rebuild while selecting PDO MySQL option and saving the profile.
But still im getting only this:
# php -m|grep pdo
pdo_sqlite

... httpd restarted
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello :)

What versions of Apache and PHP are you using?

Thank you.
 

postcd

Well-Known Member
Oct 22, 2010
721
21
68
On this server i have:
PHP 5.3.3
Apache/2.2.15
i submitted cpanel ticket for this #6896043
staff asked if can recompile apache, but i dont want that because on php 5.4 or on default config., some scripts did not worked.
 

postcd

Well-Known Member
Oct 22, 2010
721
21
68
Update: cPanel staff discoverred that the line that includes pdo_mysql in global php.ini was malformed:
extension= "pdo_mysql.so" as opposed to extension = "pdo_mysql.so"

then it started WORKING.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.