Tag Archives: Install Zend Framework

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

https://github.com/zendframework/ZendSkeletonApplication

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

http://framework.zend.com/downloads/latest

4)unzip it and put it under the vendor file

the path in my computer is like this:

zfDirection

C:\xampp\htdocs\ZendSkeletonApplication\vendor\ZF2

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).

127.0.0.1       zf2.local
127.0.0.1       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>

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

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

Advertisements