Installation of HTTPD

Embed Size (px)

Citation preview

  • 8/3/2019 Installation of HTTPD

    1/3

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

    ->Select all options from custom installation mode.->Run Apache server once and test it from browser usinghttp://localhost

    Installation of PHP Server on Windows:-------------------------------------------

    Extract php-5.3.5-Win32-VC9-x86.msi to somefolder on system

    Select all operations from custom installation mode

    While installation set the configuration file of http fromapache folder(httpd.conf path)

    Configurations of PHP & apache:-----------------------------------Httpd.conf file changes:--------------------------

    change the serverRoot property

    edit PHPIniDir property and dll file paths in

    LoadModulephp.ini file changes:----------------------

    edit doc_root property to the folder of htdocs inapache installation directory

    remove semicolon(;)from mysql related entries at thelast of file

    change date.timezone property to your local timezonerestart 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 localdrive.Copy the yii folder and favicon.ico file to htdocs folder

    http://localhost/http://localhost/
  • 8/3/2019 Installation of HTTPD

    2/3

    Webapp creation:-------------------Config/main.php editNo.of properties 10

    Logging in to yiiType localhost to get the snapshot of apacheType localhost//index.php to get thewelcome page of your webappType localhost//index.php/gii to get thewelcome 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 Now the webapp will be created with the applicationname in htdocs folder.

    Step 2: Edit the Main.php file inD:\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 logfianally save the file and close

    Step3: open browser and type http://localhost/applicationname/index.php

    it opens the new application windowlogin to the window

    yourname=demopassword=demo

    step4: now we can open the gii crud appicationtype http://localhost/applicationname/index.php/gii

    provide the password = root

    step5: setting up the database filecreate your database and paste the databasein the folder

    D:\Dev\Apache\htdocs\applicationname\protected\datathe datafile saved here will be used by

    'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/student.db', insqlite(here student is the database schema name by default)

    connectionString' => 'mysql:host=localhost;dbname=testdrive', formysql(testdrive is the default name of a database schema)step6: create module generator

    controllergeneroator

  • 8/3/2019 Installation of HTTPD

    3/3

    model generatorcrud generator

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