Installing Zend Framework 2

From AMPPS Wiki
Jump to: navigation, search
  • Extract your ZendSkeletonApplication-master.zip 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 ####
<VirtualHost 127.0.0.1:80>
<Directory "{$path}/www">
	Options FollowSymLinks Indexes
	AllowOverride All
	Order deny,allow
	allow from All
</Directory>
ServerName localhost
ServerAlias localhost 127.0.0.1
ScriptAlias /cgi-bin/ "{$path}/www/cgi-bin/"
DocumentRoot "{$path}/www"
ErrorLog "{$path}/apache/logs/error.log"
CustomLog "{$path}/apache/logs/access.log" combined
</VirtualHost>

And Below this Add These lines:

####	Zend FrameWork	  ####
<VirtualHost 127.0.0.1:80>
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
</Directory>
</VirtualHost>

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