How to install Magento 2 running on Zend Server on Ubuntu

how to install Magento 2 running on Zend Server on Ubuntu

In this blog, I’d like to share with you the step-by-step procedure of how to install Magento 2 running on Zend Server on Ubuntu.

Step 1: Install Zend Server

First of all, you can go to the following website to download Zend Server package: http://www.zend.com/en/products/server/downloads

The package usually will be save in Downloads

Then open your terminal to run these commands:

sudo tar -xzvf Downloads/ZendServer-9.0.1-RepositoryInstaller-linux.tar.gz

(Note: “Downloads/ZendServer-9.0.1-RepositoryInstaller-linux.tar.gz” is the path of the package you’ve just downloaded)

cd Downloads/ZendServer-RepositoryInstaller-linux

sudo ./install_zs.sh <PHP Version>

how to install Magento 2 running on Zend Server on Ubuntu zend install

When finishing running those commands, you’ll be redirect to Zend Server url:  http://localhost:10081/ZendServer/

how to install Magento 2 running on Zend Server on Ubuntu zend sever

Note: You can restart Zend Server by the following command:

sudo service apache2 restart

 

Step 2: Install MySql Server

First, update the package index on your server.

sudo apt-get update  

After that, you install mysql server package version 5.7:

sudo apt-get install mysql-server-5.7

how to install Magento 2 running on Zend Server on Ubuntu mysql

In this step, you have to create a root password during the installation. Make sure you remember it, because you’ll need it later.

 

Step 3: Install phpMyAdmin

You also must updating our local package index first and then install phpMyAdmin on your system:

sudo apt-get update 

sudo apt-get install phpmyadmin 

After running the second command, you will be asked few questions in order to configure your installation correctly.

  • For the server selection, choose apache2.
  • Select yes when asked whether to use dbconfig-common to set up the database
  • You will be prompted for your database administrator’s password
  • You will then be asked to choose and confirm a password for the phpMyAdmin application itself

Restart your server to finish this installation:

sudo service apache2 restart 

Go to http://localhost/phpmyadmin to check the result.

how to install Magento 2 running on Zend Server on Ubuntu phpmyadmin

Step 4: Install Composer

We have to use composer for install Magento. So type these commands on your terminal to install Composer:

export PATH=$PATH:/usr/local/zend/bin

php -r "readfile('https://getcomposer.org/installer');" | php

sudo mv composer.phar /usr/local/bin/composer

 

Step 5: Install Magento 2

Follow this link to download the Magento 2 package: https://github.com/magento/magento2

Then extract the downloaded package to the following path var/www/html/

Open your terminal and run these script:

cd /var/www/html/magento

sudo chmod -R 777 .

composer install

how to install Magento 2 running on Zend Server on Ubuntu composer

Now let’s start the Magento 2 installation:

First, folow this url to enter Magento installer

http://localhost/<name of the extracted Magento file in html>/setup

You’ll get this page, then click Agree and Set Up Magento.

how to install Magento 2 running on Zend Server on Ubuntu setupNext, you must fill all the infomation in the 6-step Setup Wizard Installation

Note: In step 2: Add a Database

how to install Magento 2 running on Zend Server on Ubuntu database

  • Database Name is the name of the database you’ve just created in phpMyAdmin.
  • Database Server Username and Password is the the username and password of your phpMyAdmin.

When you finish the Setup Wizard, you will get this screen.

how to install Magento 2 running on Zend Server on Ubuntu successFollow the url in Your Store Address to go to your Magento Frontend and Magento Admin Address to go to your Magento Backend.

Make sure to run these scripts on your magento root terminal before visit your Magento site.

sudo chmod -R 777 .

bin/magento indexer:reindex

 

Well done, you just create a Magento 2 project running on Zend Server. Hope you find this blog helpful and have fun learning Magento.

Share

Comments (0)

Speak Your Mind

1 + 9 =