Zend Framework 2 Installation on Ubuntu System

Friday February 28th, 2014 | by PhilVanB | de_DE Dieser Artikel auf deutsch

In order to install Zend Framework 2 for webdevelopment on your Linux Ubuntu System we first of all have to consider some requirements: A working Apache Webserver should be installed, with mod rewrite enabled. If you need to know how to enable mod rewrite, check out my article about Mod-Rewrite. Furthermore PHP-Version 5.3.3 or higher should be installed. Last but not least Git needs to be installed on your computer or server. That can be easily done via the Terminal-Command:


sudo apt-get install git


Now that all requirements are fullfilled, we may begin with creating a new directory in the directory /var/www/ on your server. That’s the place where your Zend-Webapplication will be generated. You might name this directory myFirstZendApp. So the path would be /var/www/myFirstZendApp. It’s recommendable to set the file permissions of myFirstZendApp to 777:


sudo chmod 777 /var/www/myFirstZendApp -R


Now via the Terminal change directories and go to the new directory myFirstZendApp. From there run this command in order to install ZendFramework2:


git clone git://github.com/zendframework/ZendSkeletonApplication.git --recursive


(make sure it’s two dashes before recursive). Now, if everything went fine, you should be able to call up your new ZendFramework installation with the request http://www.your-website.com/myFirstZendApp/ZendSkeletonApplication/public/. So the directory public is the root-directory of your webapp. You should now be able to see this in your browser:



For more useful Information about Installing ZendFramework2 on your Ubuntu-System checkout http://wiki.ubuntuusers.de/Zend-Framework