Knowledgebase: Scripts
Fatal error: Class 'PDO' not found
Posted by WestNIC Support on 20 November 2012 12:19 AM

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 with domain name and error received (paste it in the ticket). Thank you!

(5 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Help Desk Software by Kayako Resolve