After Yii installation on IIS then developer face problem to run the demo application. And following error message appear in-front of them
“Application runtime path “C:\inetpub\wwwroot\projectname\protected\runtime” is not valid. Please make sure it is a directory writable by the Web server process.”
To solve this issue
1. Open IIS manager and select the project folder name from all available sites
2. From right pane “Actions” please select “Edit Permissions” and then give full permission to user “IUSR” and then save and restart IIS
Reload your URL and see the result.
Here I am going to post my Wiki post from Yii Framework forum. I hope this will help all.
Here I am describing how you can install and update Yii in WAMP sever.
Follow the following step by step procedures to find your destination-
Step 1: Assigning PHP engine location path in system variable
Step 2: Create project folder under “www”
Just create a blank folder in “www” that should be your project name. i.e “bid” You can also make this using command window. For this-
- Open command window
- C:>cd wamp\www\
- C:\wamp\www>mkdir bid
Step 3: Download Yii framework and put into www directory and install the framework for bid project
Now you are ready to browse your project by accessing the URL : http://localhost/bid/
If you want to use this installation for multiple project then just copy “bid” folder and past and rename with your project name. Its better if you make “bid” folder as your backup project folder then when you need to work with a new project then just you need to copy and past this folder and rename to your new project name.
If you want to install an updated version of Yii framework then please download updated version zipped folder from “http://www.yiiframework.com/” and unzip. After unzip the file just copy the framework folder and then go “yii” folder under “www” directory and just replace previous framework folder with latest one.
Enjoy and explore Yii………..