Yii require_once fail, can't run demo project
Interestingly I have another version of yii running and that runs with out error but that one does not have gii. I installed the latest and when I build a demo project, it give me this error. I think it is related to permission. I tried different solution but could not make it work.
I am using XAMMP on Mac OS Lion
Fatal error: require_once() [function.require]: Failed opening required '/Users/tstuser/Sites/yii2/demo2/../framework/yii.php' (include_path='.:/Applications/XAMPP/xamppfiles/lib/php:/Applications/XAMPP/xamppfiles/lib/php/pear') in /Users/tstuser/Sites开发者_JAVA技巧/yii2/demo2/index.php on line 13
Trying changing the directory permission but to no avail.
I had the same problem on my Debian Linux server. I fixed this by installing php-pear.
Please see this guide for installing pear on xampp and Mac OS.
Hope this helps
精彩评论