I know there are more than one question with similar problem but i cannot find solution. My problem is that on my production server (shared host), my site runs fine with no errors. but the server has register_globals turned on. I need to get them off, so i have uploaded a php.ini file with only these two lines
register_globals = Off
variables_order = "GPCS"
When i upload this php.ini, i start getting the following error.
include(PDO.php) [<a href=‘function.include’>function.include</a>]: failed to open stream: No such file or directory
It’s because of your “short” php.ini the PDO drivers are not enabled…
I would suggest you to take the old php.ini with all other settings… and only change the directives you need (set register_globals to OFF)… do not delete all other settings…
And always when making such "big" changes… check the Yii requirements if all is OK…
I’m not sure how your host is configured, but it seems that if you put a php.ini then it uses only that one… so you need to put there a complete php.ini file not only the two liner… you need to check this with your hosting company…