Saturday, July 16, 2016

Install Zend framwork 3 for PHP 7 in Windows 7

1. Backup your all projects and database first

2. Un install Xampp

3 . Reinstall Xampp

4. un install composer if you are using proxy for internet . Otherwise follow point 6.  From add/remove programs (To open add/remove programs write in run window appwiz.cpl and press enter)

5. Re install composer and give right proxy url with port eg 192.168.8.8:8888

6. uncomment extension=php_openssl.dll in php.ini for apache and restart apache

7. open git bash

8. composer create-project -n -sdev zendframework/skeleton-application path/to/install

or

composer create-project --stability="dev" zendframework/skeleton-application path/to/install

Note: path/to/install is your working directory path. so change name according to you

eg:   D:\xampp\htdocs\zf3-factory


9. write virtualhost in xampp\apache\conf\extra\httpd-vhosts.conf

   
       ServerName zf3-xyz.local
       DocumentRoot "D:\xampp\htdocs\zf3-xyz\public"
       SetEnv APPLICATION_ENV "production"  
       
         DirectoryIndex index.php
         AllowOverride All
         Require all granted
        


10. add virtualhost in C:\Windows\System32\drivers\etc\hosts  hosts is file open notepad and move this file to notepad

    127.0.0.1       zf3-xyz.local

11. Also add zf3-xyz.local to your proxy settings Exceptions area after ;

Note: use run command -->  inetcpl.cpl  --> select Connections  --> Click LAN Settings -->Click Advanced

4. write http://zf3-xyz.local/  on browser address bar or url and press enter