Drupal Hosting

Drupal Error - Fatal error Class 'PDO' not found

Your drupal powered website may show error message like PDO not found.
The error message may be something like this:

Fatal error: Class 'PDO' not found in /home/username/public_html/includes/database/database.inc on line 184

Solution

  1. Create a file php.ini in public_html folder
  2. Add following code:
    extension=pdo.so
    extension=pdo_mysql.so
  3. Save php.ini file

Done!!!

Drupal Error - Warning: ini_set() has been disabled for security reasons

Your Drupal powered website may start showing following error message:

Warning: ini_set() has been disabled for security reasons

Cause of error message

Your hosting provider has disabled PHP function ini_set() on server.
This is generally done to increase server security. Some server security expert highly recommend to disable ini_set() on server

Solution

Solution one:
Contact your hosting provider and ask them to enable ini_set() on the server.

Solution two: