[support] Database Drivers unreachable (dependecy hell)

Tim Johnson tim at akwebsoft.com
Sat Jun 1 18:16:42 UTC 2013


* Jamie Holly <hovercrafter at earthlink.net> [130601 08:25]:
> Drivers are loaded in the php.ini file. Depending on how PHP is 
> installed, chances are you have a couple of php.ini files. One is for 
> the webserver and the other is for CLI.
  Aha!  
> You can find the location of the php.ini file the CLI is using by 
> running this command:
> 
>    php -i | grep Loaded
> 
> To check if that configuration file has PDO support in it:
> 
>    php -i | grep PDO
> 
> You should get back something like this:
> 
>    PDO
>    PDO support => enabled
>    PDO drivers => mysql, odbc, sqlite
>    PDO Driver for MySQL => enabled
>    PDO_ODBC
>    PDO Driver for ODBC (unixODBC) => enabled
>    PDO Driver for SQLite 3.x => enabled
> 
> If not, then you need to enable the extensions in php.ini.
  OK. This is what I have :
  ######################################
  linus:rocky tim$ php -i | grep Loaded
  Loaded Configuration File => (none)
  libXML Loaded Version => 20900
  linus:rocky tim$ php54 -i | grep PDO
  PDO
  PDO support => enabled
  PDO drivers => mysql, sqlite
  PDO Driver for MySQL => enabled
  PDO Driver for SQLite 3.x => enabled
  ######################################
  So... php (cli) is not finding a php.ini. 

  Where should it go?
  ------------------
  BTW: php -i opens up a whole lot of analysis - thanks for that
  edification.
-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com


More information about the support mailing list