Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Installation steps of zend framework2 on ubuntu

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 398
    Comment on it

    Welcome to Findnerd. There are simple steps to set up the zend2 on Ubuntu. We need to use the terminal for same. Please follow these steps.


    A) LAMP should be installed on your system. Create a folder with any name in /var/www. We are giving name zend2 to that folder.


    B) In second step, open the terminal and login as a root user with this command sudo -s and go to new created folder using this command cd var/www/zend2


    C) Now you need to clone the project in your system from github. Kindly use this command git clone git://github.com/zendframework/ZendSkeletonApplication.git.
    Make sure before doing this, git should be install on your system. Now it will cloned the zend set up in folder ZendSkeletonApplication. Now select all the files and folder , cut and paste into zend2 folder.


    D) Zend2 uses the composer for dependencies installation. There is composer.json file in root of the setup which is used to install the dependencies. You can mention which you want to install and set up in your project. Use this command php composer.phar self-update to update the composer.json file and use this command php composer.phar install to install the dependencies.


    E) You have almost set up the zend2. Now you need to create virtual host to create the proper working url. You can access the project http://localhost/zend2/public


    F) open the file hosts in location /etc using this command gedit /etc/hosts, paste it 127.0.0.1 zend2.localhost and save the file.


    G) Now create a file in /etc/apache2/site-enabled/ with name zend2 and paste the text in it.

    <VirtualHost *:80> 
    ServerName: zend2.localhost
    DocumentRoot /var/www/zend2/public
    setEnv APPLICATION_ENV "development"
    <Directory /var/www/zend2/public>
    DirectoryIndex index.php
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>
    


    H) Restart the apache server for the update and Now you can access the project with this url http://zend2.localhost.


    I) Hope this tutorial will be benefical for you.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: