- Yii Framework - Download at http://www.yiiframework.com/download/
- Web and database Server, here I am using XAMPP - Download at http://www.apachefriends.org/en/xampp.html
- Web Browser, here I use Mozilla Firefox - Download at http://www.mozilla.org/id/firefox/new/
1. Install XAMPP, here I did not explain how to install it, but just to be safe when the computer error and have to reinstall, it should be installed on a drive other than C, such as drive D, E, or others. Here I installed on drive D
2. Extract yii-x.x.x.xxxxx.tar.gz that you download, then change its name to yii, and to be more easily placed in the folder XAMPP/htdocs, so that such XAMPP/htdocs/yii.
3. Open the comand line by pressing ctrl + r and type cmd
Installing Yii Framework in Xampp |
Yii Web Application |
Copyright 2009 Microsoft Corporation. All rights reserved
C: \ Users \ santje>
4. Typed in the comand-line d:
Microsoft Windows [Version 6.1.7600]
Copyright 2009 Microsoft Corporation. All rights reserved
C: \ Users \ santje> d:
D: \>
5. Typing again cd xampp
Microsoft Windows [Version 6.1.7600]
Copyright 2009 Microsoft Corporation. All rights reserved
C: \ Users \ santje> d:
D: \> cd xampp
D: \ xampp>
6. After that typing cd php
Microsoft Windows [Version 6.1.7600]
Copyright 2009 Microsoft Corporation. All rights reserved
C: \ Users \ santje> d:
D: \> cd xampp
D: \ xampp> cd php
D: \ xampp \ php>
7. Typing again php.exe D:\xampp\htdocs\yii\framework\yiic webapp D:\xampp\htdocs\yiicode
Description: D: \ xampp \ htdocs \ yiicode means the application will be installed on xampp - htdocs, while yiicode is the name of my application to be made
Microsoft Windows [Version 6.1.7600]
Copyright 2009 Microsoft Corporation. All rights reserved
C: \ Users \ santje> d:
D: \> cd xampp
D: \ xampp> cd php
D: \ xampp \ php>
D: \ xampp \ php> php.exe D:\xampp\yii\ framework\yiic\webapp D:\xampp\htdocs\yiicode
Create a Web application under 'D: \ xampp \ htdocs \ yiicode'? [yes: no]
8. The last typed yes and enter.
Your application has been succesfully created under D: \ xampp \ htdocs \ yiicode
9. Open xampp-control.exe click the start button on the Apache and MySQL, and then open your web browser and type localhost/yiicode. Congratulations you have successfully created your first application yii
hi, I'm a beginner .. I have managed to install yii on my localhost by following this tutorial. But for XAMPP, previously I've installed it on drive C is not D. Is this going to cause problems that means for future development?
ReplyDeleteNo, I installed on drive D to avoid an error occurs on a computer, nothing to do with yii application development. It was just an option that does not depend, up to you.
DeleteGreat tips, thank you for sharing them.
ReplyDeleteSave a lot of headaches.
A very complete tutorial. This is so good, thanks...
ReplyDeletethanks very helpful...
ReplyDeletevery helpful. Thankyou
ReplyDeleteReally very helpful. Thankyou, Thankyou very much
ReplyDeleteGood Tutorial ...was great help..Cheers!!!
ReplyDeletenice Tutorial .........superb
ReplyDeleteso what's the nxt step??
ReplyDeletewhy is my yiicode base url are redirecting to my other base url localhost.
ReplyDeletesample : when i type yiicode.localhost is redirecting to my existing website1.localhost although i seperate it in my httpd-vhosts.conf.
can anyone help me around here.
localhost/yiicode
Deletemine is not working
ReplyDeletethanx budy
ReplyDeleteGood Tutorial. Thanks
ReplyDeleteGreat Explanation.
ReplyDeleteThanks
oh thanks man Great tutorial awesome i will say superb ...
ReplyDeletesuperb tutorial man i was searching this type of tutorial from yesterday at last found and installed yii on xamp thnx buddy for nice and complete tutorial...
ReplyDeleteI am a beginner and your help is greatly appreciated. Your tutorial gave me confident to work with Yii and PHP thank you. Kind Regards, Ram
ReplyDeleteGreat tips..thanks :)
ReplyDeleteFentastic tutorial..........
ReplyDeleteNice One. Try to give a tutorial on how to remove the YII from Xampp too... it will be helpful... :)
ReplyDeleteSuper. very useful
ReplyDeletethanks, working fine !!!
ReplyDelete1 No.
ReplyDeleteSuperb job. Very helpful ......
ReplyDeleteDoesn't work the same way if we call
ReplyDeleteC:\xampp\php\php.exe C:\xampp\htdocs\trackstar\protected\yiic shell
Error: index.php does not exist or is not an entry script file.
Please try again according to the steps above
DeleteC:\xampp\php>php.exe c:\xampp\yii-v-x.x.xx\framework\yiic\webapp c:\xampp\htdocs\yourwebappname
Thanks
ReplyDeleteThanks bhai Tune tune to mere mahino ka problem minto me solve ka dala THANKS Again.
ReplyDeleteGood work
ReplyDeleteMan! You saved me big time! Windows command prompt is so damn messed up. :D
ReplyDeleteReally great content... Thanks for sharing this much detailed information..
ReplyDeleteanyone can help my issue ? mine is not working
ReplyDeleteI have got error message like this
could not open input file: C:\xampp\htdocs\yii\framework\yiic
where do you instal xampp?
Deletedo you have download Yii Framework 1.1.x, rename to yii and save in htdocs?
ReplyDeleteThank you for the info. It sounds pretty user friendly. I guess I’ll pick one up for fun. thank u
Angularjs Development Company - Nintriva
thanks man....
ReplyDeleteGreat article on how to install Yii Framework on Xampp.By the way we are a software company based in haryana and looking for hire yii developer and also Hire Concrete 5 Developers.
ReplyDelete