Installation of zend framework

Posted February 23, 2015 13k views

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

1 comment

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.

Submit an Answer
3 answers

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>

        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


Finally, restart Apache so it picks up the changes.

service apache2 restart
by Justin Ellingwood
One of the most common steps to take when setting up a new server is to install a LAMP stack. LAMP stands for Linux, Apache, MySQL, and PHP. These individual components, when used together, allow us to host dynamic web content like websites and web apps on our server. We will demonstrate how to install these pieces and configure a basic setup for Ubuntu 14.04 in this guide.
  • Thank you for reply .
    I am following your steps . but when i am editing 000-default.conf file it shows permission denied error and it does not save changes even though i change permission of sites-enabled folder.

    What should i do??

  • If you are not using the root user, you’ll need to use sudo to edit the file:

    sudo nano /etc/apache2/sites-enabled/000-default.conf 
  • Hii,
    Is it necessary to edit php.ini filet to set path for zend framework installation??

  • @diptipatil303 You could add /usr/share/php/libzend-framework-php/Zend to the include_path in your php.ini file. In the instructions above, I linked it into the the library folder instead. Either approach should work.

  • Thank you so much ..
    I have installed zend framework on my machine.
    But when i create new controller using ** zf create controller test ** command it shows that
    An Error Has Occurred

    An action and provider is required. error
    What should i do to remove this error.