How to install Magento on Ubuntu 18.04


Buy Organic Traffic | Cheap Organic Traffic | Increase Organic Traffic | Organic Traffic

Picture: Magento

Magento is among the strongest e-commerce platforms obtainable. And in the event you use Linux in your knowledge facilities, you possibly can set up the group version of this powerhouse procuring system with relative ease. As soon as put in, your personalized on-line retailer can promote your organization services and products.

I’ll stroll you thru the method of putting in Magento on Ubuntu Server 18.04. The one factor you want is your Ubuntu Server platform put in and a consumer with sudo privileges. With these two issues in hand, let’s set up.

SEE: Fast glossary: Storage (Tech Professional Analysis)


First, replace and improve your server. Do word that, ought to the kernel be up to date within the course of, a restart of the server will likely be required. Due to this, run the replace/improve course of throughout a time when an replace is feasible.

To run the replace/improve course of, log into your Ubuntu server and concern the next command:

sudo apt-update
sudo apt-get improve -y

Ought to your kernel be upgraded, reboot the server and prepare to put in.


The very first thing to do is set up Apache. Log again into your server and concern the next command:

sudo apt-get set up apache2

As soon as that completes, begin and allow the net server with the instructions:

sudo systemctl begin apache2
sudo systemctl allow apache2


The subsequent step is to put in the database. We’ll use MariaDB. Set up the database with the command:

sudo apt-get set up mariadb-server mariadb-client -y

As soon as that completes, begin and allow the database server with the instructions:

sudo systemctl begin mariadb
sudo systemctl allow mariadb

Safe the database set up with the command:

sudo mysql_secure_installation

Reply the mandatory questions, ensuring to create a password for the admin consumer.

With MariaDB put in, let’s create the database, the consumer, and provides the consumer the mandatory permissions. Acquire entry to the database shell with the command:

mysql -u root -p

Difficulty the next instructions on the immediate:

CREATE USER 'magentouser'@'localhost' IDENTIFIED BY 'password;
GRANT ALL ON magento.* TO 'magentouser'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;

The place password is a singular/sturdy password.


Magento requires both PHP or 7.1. We’ll set up 7.1. To do that, we should first set up a dependency and the mandatory repository with the instructions:

sudo apt-get set up software-properties-common
sudo add-apt-repository ppa:ondrej/php

Replace apt and set up PHP with the instructions:

sudo apt-get replace
sudo apt-get set up php7.1 php7.1-common php7.1-mbstring php7.1-xmlrpc php7.1-soap php7.1-gd php7.1-xml php7.1-intl php7.1-mysql php7.1-cli php7.1-bcmath php7.1-mcrypt php7.1-ldap php7.1-zip php7.1-curl php7.1-bcmath -y

Obtain Magento

Now we have to obtain the Magento Group Version. A phrase of warning, you want to join a Magento account earlier than you are able to do this. Head over to the Magento CE obtain web page, choose your model (.tar, .bz2, or .zip), click on Obtain, after which (when prompted) both enroll or check in. I’ll assume you have downloaded the .zip model of the file.

As soon as you have downloaded the file, do the next:

sudo mkdir /var/www/html/magento/
sudo mv ~/Downloads/Magento*.zip /var/www/html/magento
cd /var/www/html/magento
sudo unzip Magento*.zip

Give the newly created folder the correct permissions with the instructions:

sudo chown -R www-data:www-data /var/www/html/magento
sudo chmod -R 755 /var/www/html/magento

Configure Apache

Create a brand new configuration file with the command:

sudo nano /and many others/apache2/sites-available/magento.conf

In that file, paste the next content material:

<VirtualHost *:80>
     ServerAdmin [email protected]
     DocumentRoot /var/www/html/magento/

     <Listing /var/www/html/magento/>
        Choices Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order enable,deny
        enable from all

     ErrorLog $/error.log
     CustomLog $/entry.log mixed

Save and shut the file.

Lastly, allow the Magento website and the rewrite module with the instructions:

sudo a2ensite magento.conf
sudo a2enmod rewrite

Restart Apache with the command:

sudo systemctl restart apache2

End set up

Now you can level your browser to http://SERVER_IP/magento. Click on the Agree and Setup Magento button, after which stroll by way of the set up wizard (Determine A).

Determine A

Figure AFigure A

The Magento set up wizard.

On the Internet Configuration stage of the set up, you’re going to get a Magento Tackle that will likely be within the type of http://SERVER_ADDRESS/magento/admin_STRING (The place SERVER_ADDRESS is both the IP or the area of your server and STRING is a random string of characters). Make certain to notice (or bookmark) that tackle, as you will want it. On the final stage, click on Set up and step away from the machine (as set up can take a while).

As soon as the set up completes, you possibly can then log into the Magento Admin Tackle and begin placing the items of your retailer into place. Congratulations, you now have a robust and versatile e-commerce resolution in your knowledge heart.

Additionally see

Buy Website Traffic | Cheap Website Traffic | Increase Website Traffic | Website Traffic

Source link