Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»PHP Framework»How To Install Zend Framework on Ubuntu 16.04

    How To Install Zend Framework on Ubuntu 16.04

    RahulBy RahulJanuary 4, 20173 Mins ReadUpdated:January 4, 2020

    Zend Framework 3 is latest version available for creating applications. The latest version provides a faster application than previous versions. Zend is an open-source framework for developing web applications and services. It uses a 100% object-oriented code. This tutorial will help you to install Zend Framework on your Ubuntu 16.04 LTS systems.

    Prerequsities

    • Shell access on Ubuntu 16.04
    • Sudo proviledged account access

    Step 1 – Install PHP and Apache

    The Zend Framework required PHP 5.6 or higher version to run. So make sure you have installed proper PHP version. To install PHP and Apache2 on Ubuntu 16.04 system follows the below commands.

    sudo apt-get install python-software-properties
    sudo add-apt-repository ppa:ondrej/php
    sudo apt update
    sudo apt install -y php apache2 libapache2-mod-php
    sudo apt install -y php-mbstring php-mysql php-xml
    

    Step 2 – Install PHP Composer

    Now, As you have installed PHP, now install PHP Composer on your system using the following set of commands. This is the simple instruction to download the composer binary file and place it under the bin directory.

    curl -sS https://getcomposer.org/installer | sudo php
    sudo mv composer.phar /usr/local/bin/composer
    sudo chmod +x /usr/local/bin/composer
    

    Step 3 – Install Zend Framework

    You can install the Zend framework in multiple ways. But the Composer is the easiest way for the installation of Zend. Create a directory for your a

    cd /var/www
    composer create-project -sdev zendframework/skeleton-application ZendApp
    

    The above command may time some time as per your network speed. Also, this will ask for some user input. Read the instructions and provide inputs.

    Step 4 – Start Web Server

    The following command will start a PHP-CLI web server. This is useful for temporarily testing and helpful for development purposes.

    cd /var/www/ZendApp
    php -S 0.0.0.0:8080 -t public/ public/index.php
    

    Now access http://localhost:8080 in a web browser. Also, you can access it with the system IP address.

    Install Zend Ubuntu

    Step 5 – Configure Apache Server

    In the above step, you have directly run an application with PHP CLI. You can also host the Zend application with Apache, which is required to set up the staging and production environment. Let’s configure the Zend Framework as a web application with Apache2. Create a configuration file in the Apache for the Zend installation.

    sudo vi /etc/apache2/sites-available/zend.example.com.conf
    

    Add the following content in the file. Make the necessary changes as per your directory structure and server name

    1
    2
    3
    4
    5
    6
    7
    8
    9
    <VirtualHost *:80>
       ServerName zend.example.com
       DocumentRoot /var/www/ZendApp/public
     
       <Directory /var/www/ZendApp/public>
           AllowOverride All
           Require all granted
       </Directory>
    </VirtualHost>

    Now enable the newly created website with the following command. Also, make sure you have rewrite modules enabled in Apache.

    sudo a2enmod rewrite
    sudo a2ensite zend.example.com
    sudo systemctl restart apache2.service
    

    Now you can access the Zend application with the configured domain in Apache.

    Zend on Ubuntu 16.04

    Conclusion

    All done! you have installed the Zend framework and created an application on your Ubuntu 16.04 system. Let’s enjoy development with Zend Framework.

    Ubuntu 16.04 zend Zend Framework
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Install Python 2.7.18 on CentOS/RHEL 7/6 and Fedora 32/31
    Next Article 5 Biggest Software Development Trends in 2017

    Related Posts

    How To Set Up Laravel on Ubuntu 21.04 & 20.10

    Updated:July 15, 20214 Mins Read

    How to Enable Debug Mode in Laravel

    Updated:May 28, 20211 Min Read

    How to Remove Package from Laravel (Composer)

    Updated:July 15, 20211 Min Read

    How to Install Laravel 9 on CentOS 8

    Updated:February 16, 20224 Mins Read

    How to Install CodeIgniter on Ubuntu 20.04

    Updated:August 11, 20214 Mins Read

    How to Install Laravel on Ubuntu 20.04

    Updated:June 7, 20214 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • What is CPU? – Definition, Types and Parts
    • What is the /etc/aliases file
    • What is the /etc/nsswitch.conf file in Linux
    • How to Install Ionic Framework on Ubuntu 22.04
    • What is the /etc/hosts file in Linux
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.