Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use a script that requires SQLITE,

On my previous host, it worked. On localhost it works. On my new dedicaced server, it doesn't.

I use PHP5 of course, you can access phpinfo() of the server.

Could you tell me what/how (apt-get?) to install correctly sqlite to avoid this fatal error?

share|improve this question
up vote 1 down vote accepted

The error you are receiving indicates that the server doesn't have SQLite or its PHP modules installed. You can check the essential parts of the PHP environment by issuing php -i | grep -i sqlite on a terminal. It should result a list containing at least

PDO drivers => sqlite
SQLite Library => <version_number>
PDO Driver for SQLite 3.x => enabled
SQLite support => enabled

You can install SQLite with apt-get install sqlite3 php5-sqlite, although there might sometimes arise issues with PDO drivers and they need to be fiddled with before everything is working.

share|improve this answer
Thanks it works ;) – Tristan Jun 2 '10 at 12:41
i talked too fast, it seems to be working but it isn't ='(. I no longer have the unrecognize fucntion, but it still deosn't work What did you mean by need to be fiddled with before ? – Tristan Jun 3 '10 at 2:11
IIRC I had to manually install some of the PDO extensions, like apt-get install php-pear && pecl install pdo && pecl install pdo_sqlite but that was a long time ago. Hopefully situation and support have improved in the mean time. If you still have other issues you might want to ask another question. – Jawa Jun 3 '10 at 9:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.