{"id":276,"date":"2014-06-02T21:39:59","date_gmt":"2014-06-02T21:39:59","guid":{"rendered":"http:\/\/www.pawebgate.com\/blogging\/?p=276"},"modified":"2019-06-25T07:54:40","modified_gmt":"2019-06-25T07:54:40","slug":"how-to-install-zend-framework-2-on-xampp","status":"publish","type":"post","link":"https:\/\/www.pawebgate.com\/blogging\/how-to-install-zend-framework-2-on-xampp\/","title":{"rendered":"How to install Zend Framework 2 on XAMPP"},"content":{"rendered":"<p><a href=\"https:\/\/www.pawebgate.com\/blogging\/wp-content\/uploads\/2014\/06\/zf2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-282\" src=\"https:\/\/www.pawebgate.com\/blogging\/wp-content\/uploads\/2014\/06\/zf2.jpg\" alt=\"zf2\" width=\"406\" height=\"124\" srcset=\"https:\/\/www.pawebgate.com\/blogging\/wp-content\/uploads\/2014\/06\/zf2.jpg 406w, https:\/\/www.pawebgate.com\/blogging\/wp-content\/uploads\/2014\/06\/zf2-300x91.jpg 300w\" sizes=\"auto, (max-width: 406px) 100vw, 406px\" \/><\/a>Hey guys, I spent quite a bit of time trying to find a proper way of how to install Zend Framework 2 on XAMPP. Here are my tips about how to tackle and get started with Zend Framework 2.<\/p>\n<p>&nbsp;<\/p>\n<p>1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Go to C:\\xampp\\apache\\conf\\extra and modify <strong>httpd-vhosts.conf<\/strong><\/p>\n<p><strong>Insert lines like: <\/strong><\/p>\n<p>&lt;VirtualHost *:80&gt;<\/p>\n<p>ServerName <strong>zf.localhost<\/strong><\/p>\n<p>DocumentRoot <strong>C:\\xampp\\htdocs\\zf\\public<\/strong><\/p>\n<p>#ErrorLog &#8220;logs\/dummy-host2.example.com-error.log&#8221;<\/p>\n<p>#CustomLog &#8220;logs\/dummy-host2.example.com-access.log&#8221; common<\/p>\n<p>SetEnv APPLICATION_ENV &#8220;development&#8221;<\/p>\n<p>&lt;Directory <strong>C:\\xampp\\htdocs\\zf\\public<\/strong>&gt;<\/p>\n<p>DirectoryIndex index.php<\/p>\n<p><strong>AllowOverride All<\/strong><\/p>\n<p>Order allow,deny<\/p>\n<p>Allow from all<\/p>\n<p>&lt;\/Directory&gt;<\/p>\n<p>&lt;\/VirtualHost&gt;<\/p>\n<p><!--more--><\/p>\n<p>2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Go to C:\\Windows\\System32\\drivers\\etc and modify the hosts file.<\/p>\n<p>Since you are going to install Zend Framework on <strong>C:\\xampp\\htdocs\\zf add the following line to the hosts file:<\/strong><\/p>\n<p>127.0.0.1 zf.localhost<\/p>\n<p>&nbsp;<\/p>\n<p><strong>*&nbsp;&nbsp; <\/strong><strong>You must repeat steps 1 and 2 for every Zend Framework project, just like in Joomla!!!<\/strong><\/p>\n<p>3)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Download the Zend Skeleton Application from <a href=\"http:\/\/framework.zend.com\/manual\/2.3\/en\/user-guide\/skeleton-application.html\">http:\/\/framework.zend.com\/manual\/2.3\/en\/user-guide\/skeleton-application.html<\/a><\/p>\n<p>4)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Go to <strong>C:\\xampp\\htdocs\\zf and unzip the Zend Skeleton Application there<\/strong><\/p>\n<p>5)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Open GitBash and go to <strong>C:\\xampp\\htdocs\\zf&nbsp;and type the following three commands:<\/strong><\/p>\n<p><strong>php composer.phar self-update<\/strong><\/p>\n<p><strong>php composer.phar install<\/strong><\/p>\n<p><strong>php composer.phar update<\/strong><\/p>\n<p>* As soon as you do that open the browser and write <a href=\"http:\/\/zf.localhost\"><strong>http:\/\/zf.localhost<\/strong><\/a><strong> Remember: this is the name you added in the hosts file! (127.0.0.1 zf.localhost)<\/strong><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey guys, I spent quite a bit of time trying to find a proper way of how to install Zend Framework 2 on XAMPP. Here are my tips about how to tackle and get started with Zend Framework 2. &nbsp; 1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Go to C:\\xampp\\apache\\conf\\extra and modify httpd-vhosts.conf Insert lines like: &lt;VirtualHost *:80&gt; ServerName zf.localhost DocumentRoot &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.pawebgate.com\/blogging\/how-to-install-zend-framework-2-on-xampp\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to install Zend Framework 2 on XAMPP&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,10],"tags":[57,55,58,54,56],"class_list":["post-276","post","type-post","status-publish","format-standard","hentry","category-technology","category-web-development","tag-php","tag-xampp","tag-xampp-virtual-host","tag-zend-framework-2","tag-zend-framework-2-installation","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.pawebgate.com\/blogging\/wp-json\/wp\/v2\/posts\/276","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pawebgate.com\/blogging\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pawebgate.com\/blogging\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pawebgate.com\/blogging\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pawebgate.com\/blogging\/wp-json\/wp\/v2\/comments?post=276"}],"version-history":[{"count":10,"href":"https:\/\/www.pawebgate.com\/blogging\/wp-json\/wp\/v2\/posts\/276\/revisions"}],"predecessor-version":[{"id":553,"href":"https:\/\/www.pawebgate.com\/blogging\/wp-json\/wp\/v2\/posts\/276\/revisions\/553"}],"wp:attachment":[{"href":"https:\/\/www.pawebgate.com\/blogging\/wp-json\/wp\/v2\/media?parent=276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pawebgate.com\/blogging\/wp-json\/wp\/v2\/categories?post=276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pawebgate.com\/blogging\/wp-json\/wp\/v2\/tags?post=276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}