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:


[kapil@kapilk-pc ~]$ cd /var/www/html/yii/
[kapil@kapilk-pc yii]$ cd framework/
[kapil@kapilk-pc framework]$ ./yiic webapp ../testdrive
PHP Warning:  Module 'memcache' already loaded in Unknown on line 0
Create a Web application under '/var/www/html/yii/testdrive'? [Yes|No] y
unchanged css/bg.gif
unchanged css/main.css
unchanged css/form.css
unchanged css/print.css
unchanged css/screen.css
unchanged css/ie.css
unchanged index.php
unchanged themes/classic/views/.htaccess
unchanged index-test.php
unchanged protected/components/Controller.php
unchanged protected/components/UserIdentity.php
unchanged protected/yiic.php
unchanged protected/config/main.php
unchanged protected/config/console.php
unchanged protected/config/test.php
unchanged protected/yiic
unchanged protected/models/ContactForm.php
unchanged protected/models/LoginForm.php
unchanged protected/data/schema.mysql.sql
unchanged protected/data/testdrive.db
unchanged protected/data/schema.sqlite.sql
unchanged protected/.htaccess
unchanged protected/controllers/SiteController.php
unchanged protected/yiic.bat
unchanged protected/views/site/pages/about.php
unchanged protected/views/site/index.php
unchanged protected/views/site/error.php
unchanged protected/views/site/contact.php
unchanged protected/views/site/login.php
unchanged protected/views/layouts/main.php
unchanged protected/tests/bootstrap.php
unchanged protected/tests/WebTestCase.php
unchanged protected/tests/phpunit.xml
unchanged protected/tests/functional/SiteTest.php

Your application has been created successfully under /var/www/html/yii/testdrive.
[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.