Zend Framework2: Tutorial Part1:Teaching you step by step install Zend Framework under window 8 system

Since Zend Framework is very popular, so I decided to install it in my local server to use it. Install Zend Framework is similarly like your install another PHP Framework.

1) go to here download the sample programmer, below is the link


2)Unzip to your local hosting my is C:\ xampp \ htdocs and rename ZendSkeletonApplication

3)go to below link to download the latest version, I just download Zend Framework 2.2.5 Full


4)unzip it and put it under the vendor file

the path in my computer is like this:



The direction should look like this:

4) Now we need to binding domain

go to here:C:\Windows\System32\Drivers\etc

use notePad to open the file:hosts

Add two line below it:(you actually could change to another name you like it,since this use Zend Framework version 2 and under local host ,so I just named like this for easy remember it).       zf2.local       http://www.zf2.local

Now,you could access http://zf2.local testing has become effective.

5)Edit the Apache configuration file,I just go to C:\xampp\apache\conf\extra , use notePad open httpd-vhosts.conf

Add this to it:

<VirtualHost *:80>
ServerName localhost
DocumentRoot “C:\xampp\htdocs”

<VirtualHost *:80>
ServerName zf2.local
ServerAlias http://www.zf2.local
DocumentRoot “C:\xampp\htdocs\ZendSkeletonApplication\public”

restart the Apache service. In the browser to re-visit http://zf2.local can open ZendSkeletonApplication test program.

Now you could start programming now.

Here have some option set,not necessary.

1) Adjust the level of error messages,go to C:\ xampp \ php \ php.ini

a)change this error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT to error_reporting=E_ALL & ~E_STRICT

b)PHP by default is use short_open_tag=off, now you could change to short_open_tag = On

c) write 2 lines below the finle

extension= php_intl.dll
extension= php_openssl.dll

Leave a Reply

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

WordPress.com Logo

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

Google photo

You are commenting using your Google 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 )

Connecting to %s