Install Zendframework 2 on Wamp for Windows
Lets get started!
1. Download the entire zip file from https://github.com/zendframework/ZendSkeletonApplication.
2. Unzip it as a folder in C:/wamp64/www/ [You can replace it with the location of wamp folder as on your PC]
3. Rename the folder to the name of your choice. I renamed it to 'onlinetest'.
4. Update httpd.conf located at C:\wamp64\bin\apache\apache2.4.23\conf\:
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
i.e. uncomment Include conf/extra/httpd-vhosts.conf
5. Add following lines to httpd-vhosts.conf located at C:\wamp64\bin\apache\apache2.4.23\conf\extra\:
<VirtualHost *:80>
DocumentRoot "c:/wamp64/www/onlinetest/public"
ServerName onlinetest.localhost
<Directory "c:/wamp64/www/onlinetest/public">
Options +FollowSymLinks +MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
6. Open Notepad.exe as administrator and update the file:
C:\Windows\System32\drivers\etc\hosts
Please replace "onlinetest" with the foldername you have renamed to in Step 3.
7. Now, restart Wamp and launch the url as: http://onlinetest.localhost/
The webpage will list few fatal and run time errors. To fix that, perform the following steps:
Open a cmd window and execute the following command:
C:\> cd wamp64/www/onlinetest/
C:\wamp64\www\onlinetest>c:/wamp64/bin/php/php5.6.25/php.exe composer.phar self-update
Ensure that composer.phar is present in the current working directory. In that case, it will display the message:
You are already using composer version 1.8.4 (stable channel).
Then, execute the following command:
C:\wamp64\www\onlinetest>c:/wamp64/bin/php/php5.6.25/php.exe composer.phar install
Please select option as no for default installation.
Once the installation is complete, refresh the http://onlinetest.localhost/
Voila! You should see the homepage:





No comments:
Post a Comment