You are on page 1of 3

Installation of HTTPD(apache server) on Windows: ------------------------------------------------------->Extract httpd-2.2.17-win32-x86-openssl-0.9.8o.msi to some folder on system.

->Select all options from custom installation mode. ->Run Apache server once and test it from browser using http://localhost Installation of PHP Server on Windows: ------------------------------------------Extract php-5.3.5-Win32-VC9-x86.msi to some folder on system Select all operations from custom installation mode While installation set the configuration file of http from apache folder(httpd.conf path) Configurations of PHP & apache: ----------------------------------Httpd.conf file changes: ------------------------- change the serverRoot property edit PHPIniDir property and dll file paths in LoadModule php.ini file changes: --------------------- edit doc_root property to the folder of htdocs in apache installation directory remove semicolon(;)from mysql related entries at the last of file change date.timezone property to your local timezone restart the apache server once then you are ready to go for yii installation YII framework installation: Download yii framework and extract to some folder in local drive. Copy the yii folder and favicon.ico file to htdocs folder

Webapp creation: ------------------Config/main.php edit No.of properties 10 Logging in to yii Type localhost to get the snapshot of apache Type localhost/<webapp_name>/index.php to get the welcome page of your webapp Type localhost/<webapp_name>/index.php/gii to get the welcome page of gii controller

Step 1: Creating a webapp We must locate the htdocs folder and create the the web app in htdocs from dospompt. cmd>D:\dev\Apache\htdocs>yii\framework\yiic.bat webapp <applicationname> Now the webapp will be created with the applicationname in htdocs folder. Step 2: Edit the Main.php file in D:\Dev\Apache\htdocs\applicationname\protected\config\main.php. enable gii set the password=root 'ipFilters'=>array('127.0.0.1', 'localhost' 'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/student.db', enable urlManager enable log fianally save the file and close Step3: open browser and type http://localhost/applicationname/index.php it opens the new application window login to the window yourname=demo password=demo step4: now we can open the gii crud appication type http://localhost/applicationname/index.php/gii provide the password = root step5: setting up the database file create your database and paste the databasein the folder D:\Dev\Apache\htdocs\applicationname\protected\data the datafile saved here will be used by 'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/student.db', in sqlite(here student is the database schema name by default) connectionString' => 'mysql:host=localhost;dbname=testdrive', for mysql(testdrive is the default name of a database schema) step6: create module generator controllergeneroator

model generator crud generator and we will be able to perform crud opperations on the table through gii web page

You might also like