0
votes

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/yii2/demo2/index.php on line 13

Trying changing the directory permission but to no avail.

1
you may need to change the parent permissions -- generally I've found it's easier to create a web/htdocs folder outside the Users directory and you'll have less permissions problems. If you want to keep it where it is, have a look at: stackoverflow.com/questions/2001881/… (not sure if things are different on Lion tho).ldg

1 Answers

0
votes

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