Install YII framework in xampp for ubuntu

故事扮演 提交于 2019-12-11 08:17:13

问题


I m not any knowledge of YII framework just start work on YII . I want to install YII framework in my system . So please let me how i install .


回答1:


Download the yii zip file and unzip it. Then copy the unzipped folder to:

/var/www/htdocs/
(Default Location)

Then run the following command :

/var/www/htdocs/Yii/framework/yiic webapp anyname

Done!!! Open your browser and type "localhost/anyname"




回答2:


Download the YII framework from the website

Extract the folder in Downloads

Open the Terminal

sudo su (enter the password)

cd Downloads ls (the yii file will appear in that list)

mv yii /var/www (move that folder to www folder)

cd /var/www (check tht file is there by ls )

create a sample project

mkdir folder_name

cd /var/www

php yii/framework/yiic.php webapp /var/www/folder_name

create web application under '/var/www/folder_name' [yes][no]

type yes

Folder permission in terminal

sudo chmod 777 -R /var/www/one(folder name)




回答3:


Download the YII framework from the website

Extract into htdocs

Come out of htdocs folder

Create a sampleproject folder and give 777 permission

In here i created test as a sample project

Type the following in termial

php yii/framework/yiic,php webapp /var/www/yii/test

[this is my location] It will ask to create project or not ,give yes

and in browser type localhost/yii/test

For More Details refer this below link

http://dcageek.blogspot.com/2013/04/how-to-install-yii-framework-on-ubuntu.html



来源:https://stackoverflow.com/questions/12422523/install-yii-framework-in-xampp-for-ubuntu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!