Friday, August 8, 2014

Install Zend on ubuntu

Install Zend Framework 2 on ubuntu:

For installing zend framework 2 on ubuntu , firstly we will be installed its skelton application.

we can directly get in on github

https://github.com/zendframework/ZendSkeletonApplication

or in command prompt we can directly install it.

php composer.phar create-project --repository-url=
 "http://packages.zendframework.com" zendframework/skeleton-application
 path/to/install

after this we have to install zend framework:

php composer.phar self-update
php composer.phar install
 
After this we have to set configuration of apache configuration file

Go to  /etc/apache2/sites-enabled/

then open default configuration file
and set its configuration

<VirtualHost *:80>
    ServerName zf2-tutorial.localhost
    DocumentRoot /path/to/zf2-tutorial/public
    SetEnv APPLICATION_ENV "development"
    <Directory /path/to/zf2-tutorial/public>
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>
 
 
That's it.

No comments:

Post a Comment