Monday, April 9, 2012

Quick installation of Zend Framwork in Ubuntu 11.04

If  you want to do a very quick installation of Zend framework then you can take a look the following steps.These steps will guide you to run your application in no time.



Installing Zend Framework:
        sudo apt-get install zend-framework-bin

        sudo apt-get install libzend-framework-php

        zf create project test (in /var/www or whatever you want)

Symlink the zend library with your newly created project library:       

        cd /var/www/test

        sudo ln -s /usr/share/php/libzend-framework-php/Zend/  library/
Creating virtual host :
        sudo nano /etc/apache2/sites-available/localhost.test.conf
Add the following lines in conf file :
        

              ServerName localhost.test

              DocumentRoot /var/www/test/public

              SetEnv APPLICATION_ENV "development"

              

                 DirectoryIndex index.php

                AllowOverride All

                Order allow,deny

                Allow from all

              

        
Enabling the site :
         sudo a2ensite localhost.test.conf

         sudo a2enmod rewrite 
BTW if you already installed MySQL as DB server for your application and want to browse phpmyadmin under your project directory then do the following:
         
   sudo ln -s /usr/share/phpmyadmin/ phpmyadmin
NB : Replace the "test" with the appropriate project name, as you want.You can find the installation procedure of PHPUnit in my another post here.

Yes!!!!you are done.Browse the site by http://localhost.test.Enjoy :)

2 comments:

SyntaxHighlighter