I have a custom php.ini file which sets my session.save_path=./

With this file in place, my phpinfo() does not show PDO or PDO mysql being enabled. If I rename the php.ini file, the phpinfo() does show these as being enabled. How can I ensure they are enabled with my custom php.ini file?

link|improve this question
feedback

migrated from stackoverflow.com Aug 12 '11 at 8:31

This question came from our site for professional and enthusiast programmers.

closed as off topic by Shane Madden, MikeyB, Chris S, Chopper3 Aug 12 '11 at 18:25

Questions on Server Fault are expected to generally relate to servers, networking, or desktop infrastructure, within the scope defined in the faq.

2 Answers

Your custom php.ini file is almost certainly missing the PDO module. Search for extension=php_pdo.dll or something similar.

link|improve this answer
feedback

The default php.ini on many linux distributions has a directive like include /etc/php.d/*.ini

If you want to add your own server-wide settings, add a new file with a name like zlocal.ini to that directory. Your file will be loaded last, so you can override anything you need to without losing the built in configuration or the ability to install modules using the package system.

link|improve this answer
feedback