ZF2 Installation on windows

ZF2 Installation
Requirement: PHP Version >5.3.23

Step 1: Download ‘GIT’ hub and setup Windows/Linux machine, I installed in Windows.
Step 2: Open “Command” prompt type as follow,
i) git clone git://github.com/zendframework/ZendSkeletonApplication.git MY_PROJECT_NAME
ii) php composer.phar self-update
iii) php composer.phar install

Step 3: Create ‘Virtual Host’
i) C:\windows\system32\drivers\etc\hosts
ii) Add end of the document as follows MY_PROJECT_NAME localhost

Step 4: Open “httpd-vhosts.conf” and add following lines End of the Document.
<VirtualHost *:80>
DocumentRoot C:\xampp\htdocs
ServerName localhost

<VirtualHost *:80>
DocumentRoot C:\xampp\htdocs\MY_PROJECT_NAME

Step 5: Done, go to browser type URL as “http://MY_PROJECT_NAME”
Following problems we can expect.
1. git is not recognized command
solution: Install Git with selection of GUI and Command line modes.
2. php is not recognized command
solution: Set “Environment variable path”
i) Go to Control Panel\All Control Panel Items\System => Choose “Advanced System Settings” => Click “Environment Variable”
ii) Edit PATH system variable and add following line “C:\xampp\php;” close the application, restart the system.

Leave a Comment

Your email address will not be published. Required fields are marked *