In countless Drupal installs, I have never seen this error before but only with my D7 test install:

Fatal error: Class 'PDO' not found in /d7/includes/database/database.inc on line 186

I've copied the settings file across, set up the database, etc. All standard stuff. Deleted files and re-installed to no avail.

PHP 5.2.9
Apache 1.3.41 (Unix)
Server on Linux

Comments

eojthebrave’s picture

Do you have PHP Data Objects installed/enabled on your system? This is a new requirement for Drupal 7. http://drupal.org/requirements#php

Cybergarou’s picture

Status: Active » Closed (duplicate)

This is a duplicate of #299308: Installing Drupal by visiting index.php (rather than install.php) leads to a fatal error when PDO is not enabled. I'm reopening that issue since it hasn't been resolved yet.

splashworx’s picture

My PHO knowledge is close to zero. Where do I find the php.ini file? It doesn't appear to be anywhere within the Drupal installation. I can't find it within C-Panel (PHP settings).

Any heads-up appreciated.

splashworx’s picture

My PHP knowledge is not great.

Where do I find the php.ini file? It doesn't appear to be anywhere within the Drupal installation. I can't find it within C-Panel (PHP settings).

Any heads-up appreciated.

Cybergarou’s picture

The php.ini file is located within the PHP installation.