set up zendframework on windows

step 1- Install xampp server on your local drive like. c:/xampp if you have installed xampp then leave first step.

step 2-Download the latest ZendFramework and extract it.

step 3- open Zendframework folder and open subfolder “library” and here you will find a folder named “Zend”, copy it
and past it to the location “c:/xampp/php/”, within “php” folder.

step 4-edit php.ini configuration file “c:/xampp/php/php.ini” , open it and find “include_path” for windows include_path = “.;c:\xampp\php\Zend”.

step 5-open console terminal, and go “c:\xampp\htdocs>” and type the following command
“c:\xampp\htdocs>c:\xampp\php\zf.dat create project mytestproject”. if no error message see. you project has been created.

step 6-check your “htdocs” folder for “mytestproject”. where all the necessary folders.

step 7- open this url in browser “http://localhost/mytestproject/public”

How to create virtual host using Apache

Just go to \xampp\apache\conf\extra\httpd-vhosts.conf and open the file. After open the file write a block of code just like this,

<VirtualHost *:80>
ServerName    // a part that is used in browser
DocumentRoot D:\xampp\htdocs\ZendFramework\public

<Directory D:\xampp\htdocs\ZendFramework\public\>
AllowOverride All
Order allow,deny
Allow from all

After completing this section go to the host file to the path C:\WINDOWS\system32\drivers\etc

and open the file hosts


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s