Installing Zend Framework 2

From AMPPS Wiki
Revision as of 11:06, 8 October 2016 by Team (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  • Extract your file to your Ampps\www directory and Rename the folder as your Project_name.
  • Go to your Ampps/php/ folder and copies the folder path.
  • Right-click on My Computer inside your start-menu and click Properties,
  • Click Advanced tab inside System Properties.
  • Click “Environment Variables” Button and Select “Path” inside your “System variables” Sections and click edit.
  • Leave everything as it is and just extend the variable by adding php path(;paste php path here). example if php path is c:\Ampps\php then add this as ;C:\Ampps\php.
  • Enable your php_openssl Module From your php.ini File(Open Ampps Control panel, select Php tab and click on Extension and select php_openssl Extension).
  • Open Command Prompt and Run php -v command. It will show you your php Version.
  • Change the directory to the project directory. cd \Ampps\www\project_name.
  • Now run “php composer.phar self-update”.
  • After Completing php composer.phar self update now run “php composer.phar install”.
  • Now Setup localhost. Open httpd.conf(Open Ampps Control Panel Select Apache and click on Configuration).
  • Search for this
#### Localhost VirtualHost ####
<Directory "{$path}/www">
	Options FollowSymLinks Indexes
	AllowOverride All
	Order deny,allow
	allow from All
ServerName localhost
ServerAlias localhost
ScriptAlias /cgi-bin/ "{$path}/www/cgi-bin/"
DocumentRoot "{$path}/www"
ErrorLog "{$path}/apache/logs/error.log"
CustomLog "{$path}/apache/logs/access.log" combined

And Below this Add These lines:

####	Zend FrameWork	  ####
ServerName Project_Name.localhost
DocumentRoot "{$path}/www/Project_Name/public"
SetEnv APPLICATION_ENV "development"
<Directory "{$path}/www/Project_Name/public">
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all

  • Open the windows host file. go to C:\WINDOWS\system32\drivers\etc add this. Project_name.localhost