{"id":17607,"date":"2015-09-15T14:22:34","date_gmt":"2015-09-15T19:22:34","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=17607"},"modified":"2022-06-03T03:44:11","modified_gmt":"2022-06-03T08:44:11","slug":"how-to-install-zend-framework-on-an-ubuntu-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-zend-framework-on-an-ubuntu-vps\/","title":{"rendered":"How to install Zend Framework on an Ubuntu VPS"},"content":{"rendered":"
Zend framework is one of the most popular frameworks for developing modern PHP applications. The framework is modular, extensible and highly secure and that is why it is used by many developers. Today we are going to show you how to install Zend framework on a Linux VPS<\/a> and create your first project.<\/p>\n <\/p>\n For this tutorial we assume that you are using an Ubuntu VPS<\/a> with Ubuntu 14.04 installed. Also, you need to have a LAMP stack installed on you server. Before we start with the installation of Zend framework, you need to log in to your VPS via SSH and update the system software to the latest version available. To update the system software, execute the following commands:<\/p>\n It could take few minutes for the update to be completed.<\/p>\n Easiest way to install Zend framework on Ubuntu 14.04 is to use the package which is provided by Ubuntu. Therefore, execute the following command in order to install Zend framework on your server:<\/p>\n Next, navigate to your server’s directory root and create your first project:<\/p>\n You can replace YourFirstApplication with the name of the application you like to create. Or, you can add the library directory to the include_path in your php.ini file.<\/p>\n The last thing you need to do is to edit the virtual host file and change the document root. To edit your \/etc\/apache2\/sites-enabled\/000-default file you can use an editor of your choice. We are using nano.<\/p>\n You need to edit the following lines to match your needs:<\/p>\n Most important is to change the DocumentRoot to point to your application public directory as well as to replace yourdomain.com with your actual domain name.<\/p>\n Once you are done, save the file and close it. Restart Apache for the changes to take effect.<\/p>\n Now you should be able to access your first project using a web browser. Open your favorite web browser and enter yourdomain.com in the search field.<\/p>\n To learn more about Zend framework you can visit http:\/\/framework.zend.com\/<\/a><\/p>\n There you can find information about how to get started and how to effectively use this powerful framework in order to create modern PHP applications.<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS hosting services<\/a>, in which case you can simply ask our expert Linux admins to install Zend framework for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":" Zend framework is one of the most popular frameworks for developing modern PHP applications. The framework is modular, extensible and … <\/p>\napt-get update\r\napt-get upgrade<\/pre>\n
apt-get install zend-framework<\/pre>\n
cd \/var\/www\/\r\nzf create project YourFirstApplication<\/pre>\n
\nThen, navigate to the \/var\/www\/YourFirstApplication\/library\/ directory and create a symbolic link to the library directory using the following commands:<\/p>\ncd \/var\/www\/YourFirstApplication\/library\/\r\nln -s \/usr\/share\/php\/libzend-framework-php\/Zend .<\/pre>\n
nano \/etc\/apache2\/sites-enabled\/000-default<\/pre>\n
<VirtualHost *:80>\r\n ServerAdmin admin@yourdomain.com\r\n DocumentRoot \/var\/www\/YourFirstApplication\/public\/\r\n ServerName yourdomain.com\r\n ServerAlias www.yourdomain.com\r\n <Directory \/var\/www\/YourFirstApplication\/public\/>\r\nOptions Indexes FollowSymLinks MultiViews\r\nAllowOverride All\r\nOrder allow,deny\r\nallow from all\r\n <\/Directory>\r\n ErrorLog \/var\/log\/httpd\/yourdomain.com-error_log\r\n CustomLog \/var\/log\/httpd\/yourdomain.com-access_log common\r\n<\/VirtualHost>\r\n<\/pre>\n
service apache2 restart<\/pre>\n