I am getting this error, while i was trying to create a module with gii.
please see the snapshot i attached.
There was some error when generating the code. Please check the following messages.
Generating code using template "/var/www/yii/framework/gii/generators/module/templates/default"…
generating modules/invmgmt/InvmgmtModule.php
Unable to create the directory '/var/www/amantran/protected/modules/invmgmt'.
generating modules/invmgmt/controllers/DefaultController.php
Unable to create the directory '/var/www/amantran/protected/modules/invmgmt/controllers'.
generating modules/invmgmt/views/default/index.php
Unable to create the directory '/var/www/amantran/protected/modules/invmgmt/views/default'.
done!