include(PDO.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
error on my shared host. Everything runs fine on the local machine and used to work on the shared host. I made no changes or uploaded any new files.
My shared hosting custom php.ini has pdo enabled for mysql
max_execution_time = 400
extension=mcrypt.so
short_open_tag = on
extension=pdo.so
extension=pdo_mysql.so
The yii requirements checker shows only three warnings
PDO PostgreSQL extension Warning All DB-related classes This is required if you are using PostgreSQL database.
Memcache extension Warning CMemCache
APC extension Warning CApcCache
The only difference I can see regarding PECL between my local machine and the shared host (using phpinfo()) is on my local machine I see a PECL module under SQLite and a PECL version under pdf.
I do not use SQLite and I have another site running on the shared host using the same framework with mysql without a problem.
Ok, compailer is configured with pdo, but that doesn’t mean that everything is installed correctly. Can you share output from phpinfo command related to PDO and PDO-MySql extensions?
The problem was caused by a php.ini file my host allows for customization. Once I removed this file all is good. I don’t know why this only caused an error on my application in the public_html directory.