• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

add php extension in custom php.ini with multiple PHP versions in plesk panel 11.5

laukho

New Pleskian
Hi,
I have installed multiple PHP Versions in my Plesk Panel 11.5, now i have the default php 5.3 version and a new php 5.5 version.
I followed this post for install :
http://download1.parallels.com/Ples...inistrator-guide/index.htm?fileName=72042.htm
I also created a "temp" directory in "/usr/local/" to install the php 5.5 version, so the complete path is "/usr/local/temp/php-5.5.11".
Unfortunately, the "pdo_mysql" extension is inactive for the new php 5.5 version.

I'm not an expert but after reading this post :
http://forum.parallels.com/showthre...ltiple-php-versions-php-ini-files-do-not-load
I understood that custom "php.ini" is located in "/var/www/vhosts/system/mywebsite.TLD/etc/php.ini", so i remove the "php.ini" from this location by thinking that will take the default php 5.3 version where "pdo_mysql" extension is active.
After this, the main "php.ini" is suppose to be locate in "/usr/local/temp/php-5.5.11/etc" and "phpinfo()" page displays "none" for "Loaded Configuration File".

Now, i want to add "pdo_mysql" extension for php 5.5 version.
So i create a blank "php.ini" in "/var/www/vhosts/system/mywebsite.TLD/etc" directory with :
Code:
extension = php_pdo.dll
extension = php_pdo_mysql.dll

After reloading, the "phpinfo()" page dont' show "mysql" in "PDO" section.
I tried to add something else in custom "php.ini" :
Code:
date.timezone = Asia/Tokyo
and it works !
So "timezone" works in my custom "php.ini" but still not work for "pdo_mysql" extension.
Anyone knows how to fix that issue ?

Thanks a lot
 
Hi,

did you actually compile the pdo_mysql Module for PHP 5.5?

Another thing is that with Linux the extension should end with .so and not .dll

Regards,
Kristian
 
Hi Kristian,
thanks for your answer.

Do you mean that when i compiled php with "./configure" command, i had to add the "pdo_mysql" module ?
Is it possible to add the module after the installation ?

I change the extension in my custom "php.ini" :

Code:
extension = php_pdo.so
extension = php_pdo_mysql.so

but it still no effects, the "pdo_sqlite" module is enable but not the "pdo_mysql".

Do i have to reinstall php version from scratch ?

Thanks
 
Back
Top