Yii Framework Forum: Does having a custom php.ini file in Yii app folder cause PDO error? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Does having a custom php.ini file in Yii app folder cause PDO error? Rate Topic: -----

#1 User is offline   cliffbarnes 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 26-July 12

Posted 26 July 2012 - 09:21 AM

Hi, I am not new to the forums. I just lost my old email account. I have been working with Yii for about 9 months now.

Anyway, I encountered a strange error after installing a new Yii app this morning. My error is identical to this thread from a few months ago:
http://www.yiiframew...depdophp-error/

I had a custom php.ini file in the same folder as the new Yii app to enable allow_url_fopen in php. I checked my php.ini file against the php.net docs for setting PDO correctly. I even tried modifying it a bit, but could not get that error to go away. After reading the above thread, I relented, used cURL instead, and deleted the custom php.ini file. Viola, my Yii app stopped throwing the error.

Any reason why? I have included the php.ini file as well, but to the best of my knowledge it is correctly configured for PDO for both MySQL and SQLite.

Attached File(s)


0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users