简体   繁体   中英

How to install the yii framework with xampp server

Im having a problem in installing the Yii framework. Nothing happens. How can I solve this?

I was having similar problem back , I had followed these steps,

Firstly turn off every service of your xampp and also xampp.

Step 1: Download the Yii framework from from here enter link description here . Step 2: If you download it then extract the compressed files into the XAMPP htdocs folder. at path C:\\xampp\\htdocs

Step 3: Run the framework and go here localhost:8080/test_yii/requirements/ .

Step 4: The next step is to set up the environment variables. From the Start menu right-click on Computer then select Properties > Advanced system settings> Environment Variables >Select Path > In Variable Value field enter ;C:\\xampp\\php

Step 5: Open the Command Prompt, navigate to

cd C:\xampp\htdocs\testappyii\framework

Step 6: 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

Hope it helps

Install XAMPP

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.

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

3) Extract the compressed files into XAMPP htdocs folder, eg 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.

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

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM