Welcome Guest, Not a member yet? Register   Sign In
error: could not find driver
#1

[eluser]mpc[/eluser]
I have a new CI site working, perfectly, on my notebook (XAMPP on XP), but when I try running it on a Linux web hosting server, that runs PHP as CGI, I get the error:

could not find driver

I'm guessing that the web host CGI setup isn't set up for PDO/SQLite (SQLite being the missing driver, although I thought SQLite was built into PHP5+ ? ... not in php-cgi?).

The web hosting outfit (GoDaddy) allows creating/running a PHP.ini in the document root ... and PHP.ini changes take place, immediately, because php-cgi calls PHP.ini for each PHP script. However, PHP.ini for CGI is foreign ground for me ... and Googling hasn't turned up CGI PHP.ini examples.

I've seen references like:
./configure '--enable-pdo=shared' '--with-pdo-sqlite=shared' '--with-sqlite=shared'

... but, I don't see examples of how to accomplish that in a CGI PHP.ini file.

And, I wonder does a web hosting document root PHP.ini overwrite the GoDaddy's default PHP.ini ? As I said, this is foreign ground to me ... and I'm hard pressed to find illustrative examples. GoDaddy, of course, offers no CGI PHP.ini examples (that I've found). Please pardon my ignorance! Undecided ... if you can ...

Are there any CGI PHP.ini experts out there, who might shed light on this?
Perhaps others might benefit ... by being able to wrestle a php-cgi web hosting configuration?

thanks ... in advance


Messages In This Thread
error: could not find driver - by El Forum - 07-08-2007, 08:27 PM
error: could not find driver - by El Forum - 07-10-2007, 12:16 PM
error: could not find driver - by El Forum - 07-10-2007, 01:20 PM
error: could not find driver - by El Forum - 07-10-2007, 02:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB