djnordeen Posted July 20, 2015 Share Posted July 20, 2015 Hello, I am not able to generate model from page 79. I get the following error at bottom of page. Warning: file_put_contents(/Applications/XAMPP/xamppfiles/htdocs/yii2-test/runtime/debug/55ad83514445f.data): failed to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/yii2-test/vendor/yiisoft/yii2-debug/LogTarget.php on line 58 Warning: touch(): Utime failed: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/yii2-test/vendor/yiisoft/yii2-debug/LogTarget.php on line 73 thanks Link to comment Share on other sites More sharing options...
Larry Posted July 21, 2015 Share Posted July 21, 2015 I suspect you need to open the permissions on the "models" directory. Let me know if you need help in doing that. Link to comment Share on other sites More sharing options...
djnordeen Posted July 21, 2015 Author Share Posted July 21, 2015 Hi, I opened the models directory, yii2-test/models, I am using a mac, the permissions are set to everyone -- read & write. Not sure what to do next. Dan Link to comment Share on other sites More sharing options...
Larry Posted July 21, 2015 Share Posted July 21, 2015 Hmmm...could you be more explicit about the steps you've taken, the locations of the files/folders, and the version of PHP in use? Link to comment Share on other sites More sharing options...
djnordeen Posted July 23, 2015 Author Share Posted July 23, 2015 Hello, I am using PHP 5.5.24. I used cmd I to look at permissions of models folder. Using xammp, htdocs/yii2-test/models. Do I need to change the permissions using terminal? Originally installed yii in htdocs/basic, I just renamed the file yii2-test. Could this have caused a problem? Link to comment Share on other sites More sharing options...
djnordeen Posted July 26, 2015 Author Share Posted July 26, 2015 It would appear that the php version 5.5.24 is the Macbook. And the php version 5.6.3 is from Xampp. Link to comment Share on other sites More sharing options...
Larry Posted July 28, 2015 Share Posted July 28, 2015 Yes, you may need to change the permissions in the terminal. But without knowing the exact steps you took to get to this point, I'm kind of guessing. Link to comment Share on other sites More sharing options...
Recommended Posts