Skip to content

Zend Framework 2 installation on Xampp?

Last updated on December 21, 2022

In this tutorial, I will cover the ZF2 installation on xampp for the windows operating system.

1 First, you need to download and install the XAMPP server from apachefriends

2. Download and install GIT from Download GIT

3. Download and install Composer from Composer Download

4. Now go to c:/xampp/htdocs create a folder called zf2(you can change it) right click on it and choose Git Bash. one new command prompt window will open.

5. Enter this address git clone git://github.com/zendframework/ZendSkeletonApplication.git and press Enter button.

git

Next, press Shift + right-click on the ZendSkeletonApplication folder and choose Open command prompt Here.

Enter this address C:/xampp/php/php.exe composer.phar self-update and press Enter.

Enter this address C:/xampp/php/php.exe composer.phar install and press Enter.

cmd

Open c:\xampp\apache\conf\extra\httpd-vhosts.conf and update it with the below config code

<VirtualHost *:80>
    DocumentRoot "c:/xampp/htdocs/zf2/ZendSkeletonApplication/public"
    ServerName ZendSkeletonApplication.dev
    ServerAlias www.ZendSkeletonApplication.dev
    SetEnv APPLICATION_ENV "development"
    <Directory "c:/xampp/htdocs/zf2/ZendSkeletonApplication/public">
      DirectoryIndex index.php
      AllowOverride All
      Order allow,deny
      Allow from all
    </Directory>
</VirtualHost>

Open the host file C:Windows\System32\drivers\etc and add this code:

127.0.0.1 www.ZendSkeletonApplication.dev

zf2_install

Next, open your browser and enter this address: www.ZendSkeletonApplication.dev

I hope this tutorial helps you please don’t forget to give us your feedback in the comments.

0 0 votes
Article Rating
Subscribe
Notify of
guest

2 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments