install the YII on local machine

install the YII on local machine (PHP framework)

Yii — a high-performance component-based PHP framework best for developing large-scale Web applications. Yii comes with a full stack of features, including MVC, DAO/ActiveRecord, I18N/L10N, caching, jQuery-based AJAX support, authentication and role-based access control, scaffolding, input validation, widgets, events, theming, Web services, and so on.

Written in strict OOP, Yii is easy to use and is extremely flexible and extensible. here in this article I given the steps for install the YII on local machine (PHP framework)

install the YII on local machine (PHP framework)

You can download the YII framework from following URL

http://www.yiiframework.com/download/

Yii PHP Framework: Best for Web 2.0 install the YII on local machine
install the YII on local machine

I copied the folder in my ROOT directory. I am using the fedora on my machine.

 

install the YII on local machine

 

Just follow my commands:

01[kapil@kapilk-pc ~]$ cd /var/www/html/yii/
02[kapil@kapilk-pc yii]$ cd framework/
03[kapil@kapilk-pc framework]$ ./yiic webapp ../testdrive
04PHP Warning:  Module 'memcache' already loaded in Unknown on line 0
05Create a Web application under '/var/www/html/yii/testdrive'? [Yes|No] y
06unchanged css/bg.gif
07unchanged css/main.css
08unchanged css/form.css
09unchanged css/print.css
10unchanged css/screen.css
11unchanged css/ie.css
12unchanged index.php
13unchanged themes/classic/views/.htaccess
14unchanged index-test.php
15unchanged protected/components/Controller.php
16unchanged protected/components/UserIdentity.php
17unchanged protected/yiic.php
18unchanged protected/config/main.php
19unchanged protected/config/console.php
20unchanged protected/config/test.php
21unchanged protected/yiic
22unchanged protected/models/ContactForm.php
23unchanged protected/models/LoginForm.php
24unchanged protected/data/schema.mysql.sql
25unchanged protected/data/testdrive.db
26unchanged protected/data/schema.sqlite.sql
27unchanged protected/.htaccess
28unchanged protected/controllers/SiteController.php
29unchanged protected/yiic.bat
30unchanged protected/views/site/pages/about.php
31unchanged protected/views/site/index.php
32unchanged protected/views/site/error.php
33unchanged protected/views/site/contact.php
34unchanged protected/views/site/login.php
35unchanged protected/views/layouts/main.php
36unchanged protected/tests/bootstrap.php
37unchanged protected/tests/WebTestCase.php
38unchanged protected/tests/phpunit.xml
39unchanged protected/tests/functional/SiteTest.php
40 
41Your application has been created successfully under /var/www/html/yii/testdrive.
42[kapil@kapilk-pc framework]$

Published by

Purab

I am Purab from India, Software development is my profession and teaching is my passion. Programmers blog dedicated to the JAVA, Python, PHP, DevOps and Opensource Frameworks. Purab's Github Repo Youtube Chanel Video Tutorials Connect to on LinkedIn

6 thoughts on “install the YII on local machine (PHP framework)”

    1. If you are having linux shared hosting then you can just follow my steps and then that will be done for YII framework basic installation is done. what kind of help you want I dont know. write to me in detail.

  1. If you want to move your yii website from localhost to a server, then I would recommend that you do that on vps or cloud server. If you don’t have sysadmin skills to setup a server from scratch, then you can use Cloudways Yii hosting platform for that. Using this platform, you can instantly launch a server without have to manually install OS, stack or PHP.

Leave a Reply

Your email address will not be published.