Report this

What is the reason for this report?

Installation of zend framework

Posted on February 23, 2015

Hi, Whatever steps you are given for installation of zend framework it is applicable for ubuntu 14.04 LTS?? Is it works?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This comment has been deleted

This comment has been deleted

There are a number of ways to install the Zend framework on Ubuntu 14.04. The simplest is to use the packages provided by Ubuntu:

sudo apt-get install zend-framework

This will install the command-line tool and the libraries. You’ll also want to configure a basic LAMP stack before you proceed. This tutorial will get you started:

Then to set up a blank Zend project, you can run:

cd /var/www
zf create project ZendApp
ln -s /usr/share/php/libzend-framework-php/Zend /var/www/ZendApp/library/

Next you’ll want to edit your Apache configuration to point to your new project. Run:

nano /etc/apache2/sites-enabled/000-default.conf 

Then, make it match the following. Make sure to have DocumentRoot match where you created the project’s public folder.

<VirtualHost *:80>
        ServerName www.example.com

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/ZendApp/public

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

      <Directory /var/www/ZendApp/public>
          DirectoryIndex index.php
          AllowOverride All
          Order allow,deny
          Allow from all
      </Directory>

</VirtualHost>

Finally, restart Apache so it picks up the changes.

service apache2 restart

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.