Fatal error: Class 'PDO' not found

My website is showing "Fatal error: Class 'PDO' not found"

Please edit php.ini file. This configuration file is located inside public_html folder or script folder (for example, /public_html/blog). If file doesn't exist, please create it via FTP or cPanel File Manager. 

1. Add following lines in php.ini file:


2. Save file.

3. Set php.ini permissions to 400. It will lock configuration file. You may set 400 permissions via File Manager - right click on php.ini file then select "Change Permissions" > 400. If you wish to edit this file again, please set permissions to 600.

Please note: it's impossible to override default php.ini file on shared servers. You may receive 500 error, "forbidden" or "blank page". It means that you have to add your domain name to server "white-list". Please contact support.jnshost.com with domain name and error received (paste it in the ticket). Thank you!

  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

Error: Warning: ini_set has been disabled for security reasons

If you received "Warning: ini_set() has been disabled for security reasons" during script install...

Fatal error: Incompatible file format

Issue: when you visit website, it shows similar error: "Fatal error: Incompatible file format:...

ionCube PHP Loader error on website after PHP upgrade (from php 5.3.x to php 5.4.x)

Issue: When you access website via web browser, it produces similar error: "Site error: the...

It is not safe to rely on the system's timezone settings (how to fix it)

Occasionally, you may receive following warning on main page (especially, Joomla): Warning:...

Moodle "Unicode format UTF-8" error during manual installation or upgrade

You may receive following error during new Moodle manual installation or upgrade: It is required...

Powered by WHMCompleteSolution