In Yii, we frequently use the 'GII' module to generate different framework. When we first create our yii application and try to use the functionality of gii module , it throws an error that it is not able to create the requested files.
The similar issues holds for logging in yii. Even though all the configurations are correct , yii will not be able to log the things to file.
The main root cause for this is the permissions problem. To solve both the problems all we need to do is to give write permission to the yii application folder.
The below command does that in an mac /linux system
The similar issues holds for logging in yii. Even though all the configurations are correct , yii will not be able to log the things to file.
The main root cause for this is the permissions problem. To solve both the problems all we need to do is to give write permission to the yii application folder.
The below command does that in an mac /linux system
sudo chmod -R 777 THE/PATH/TO/APPLICATION
No comments:
Post a Comment