How to Install Yii Framework in XAMPP on Windows

Yii is a high-performance, component-based PHP framework for developing large-scale Web applications rapidly. It enables maximum reusability in Web programming and can significantly accelerate your Web application development process.

We wrote how to install Yii framework in XAMPP on Ubuntu/Linux, and here are instructions how to install it on Windows environment.

Install XAMPP

XAMPP is a free and open source cross-platform web server solution stack package, consisting mainly of the Apache HTTP Server, MySQL database, and interpreters for programming scripts.

1) Download the XAMPP from http://www.apachefriends.org/en/xampp-windows.html and install it, if you haven't yet. We'll assume that the XAMPP is installed in C:\xampp folder; and make sure that MySQL and Apache services are running.

Yii XAMPP Windows

Install Yii framework

2) Get the Yii frameword from the site http://www.yiiframework.com

3) Extract the compressed files into XAMPP htdocs folder, e.g. C:\xampp\htdocs\yiiframework

4) Yii framework contains requirements checker so you could run it with http://localhost/yiiframework/requirements. You have to be sure that there isn't any Failed status for requirements.

Yii XAMPP Windows

Environment variables setup

The next step is to setup environment variables or else you could experience error when you use yiic command:

'php.exe' is not recognized as an internal or external command, operable program or batch file.

5) Start > right click on Computer > Properties > Advanced system settings. System Properties window will be displayed

Yii XAMPP Windows

6) Click the Environment Variables... button and the Environment Variables window will be shown

Yii XAMPP Windows

7) Select Path variable and click the Edit

8) In Variable Value field enter ";C:\xampp\php" (without quotes) at the end of the line. 

Note: Be sure that you included semi-colon.

Creating application

9) Open the Command Prompt, navigate to %yii-framework-path%\framework (in our case the full path is C:\xampp\htdocs\yiiframework\framework)

10) Enter the following command in order to create web application

yiic webapp ..\..\yiitestapp

11) You'll be asked with yes|no; enter yes

12) The application is created and you can access it on http://localhost/yiitestapp

Yii XAMPP Windows


转载: http://www.inforbiro.com/blog-eng/how-to-install-yii-framework-in-xampp-on-windows/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值