How to Configure Magento on Ubuntu 15.10

December 14, 2015 | By in OPEN SOURCE TOOLS, UBUNTU HOWTO
| Reply More

Hello Everyone, our today's article is installing Magento on the latest version of Ubuntu 15.10. Magento is most powerful and fast growing e-commerce software and e-commerce platforms solution, created by Varien aimed at larger sites. It is an open-source platform using Zend PHP and MySQL databases that offers great flexibility through its modular architecture. It is completely scalable and has a wide range of control options that its users appreciate after using it just because it is designed to be utilized as an application by someone who isn't a developer. While finding help on Magento is also not a big issue as its community is extremely large and very helpful.

The installation of Magento is very easy and you can also add additional layouts and plug-ins with little efforts.

Basic Requirements

The basic requirements to install Magento on Ubuntu 15.10 includes the basic system resources with sufficient RAM and Hard Disk. We are going to install it using 4 GB of RAM, 50 GB Disk and 2 vCPU.

Make sure that you have configured the FQDN and IP address with sudo privileges on the server to perform different system level tasks.

1) System Update

Let's login to your Ubuntu 15.10 server and run the command below to update your system packages with latest patches and security updates.

# apt-get update

2) LAMP Setup

LAMP stack is the basic software requirement to install Magento on any Linux distribution. So, in this step we be installing Apache Web server , MySQL Database and PHP including some of its required libraries for Magento.

First of all run the below command to install install PHP and its dependent libraries as shown.

# apt-get install php5 php5-mcrypt php5-common libapache2-mod-php5 php5-cli php5-ldap php5-gd php5-xsl php5-intl php5-mysql php5-xmlrpc php5-curl php5-tidy

After that run the the command below to install Apache and MySQL Database server and its client packages.

# apt-get Apache2 install mysql-server mysql-client

Installing Apache and MySQL

Next you will be asked to configure the MySQL root password which is highly recommended to setup during its installation then press OK to proceed.

MySQL root config

3) Starting Services

Start MySQL and Apache services and enable these for auto start at bootup.

# systemctl start mysql
# systemctl enable mysql

# systemctl start apache2
# systemctl enable apache2
# systemctl status apache2

Apache Status

4) Database Setup for Magento

Connect to the MySQL server console using the root credentials as per configured above then run the following MySQL commands to create a new database and user as shown with its assigned privileges.

# mysql -u root -p

mysql> CREATE DATABASE magentodb;
mysql> flush privileges;
mysql> exit

MySQL DB setup

5) Apache Configurations

Open the default configuration file for Apache configurations using any editor, you are comfortable with and update its configuration by adding the following parameters in it as shown.

# vim /etc/apache2/sites-available/000-default.conf

Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all

apache Conf

Then we need to configure PHP for Magento to make it utilize its enough required memory by changing its following parameters as shown.

# vim /etc/php5/apache2/php.ini

; Maximum amount of memory a script may consume (128MB)
memory_limit = 512M

Close the the file after saving the changes and restart apache web server services to implement all the changes that we made in above configuration files.

# systemctl restart apache2

Downloading Magento

Our basic requirements section is complete, now we will downloading the latest available package for Magento this LINK

Magento Download

After uploading the Compressed folder on your Ubuntu Server, run the command below to extract its package using below command.

root@localhost:~# ls /var/www/html/
root@localhost:~# unzip /var/www/html/

Give the Apache ownership and fix its proper permissions to the web document directory using the below commands.

# chown -R www-data:www-data /var/www/html/
# chmod -R 755 /var/www/html

Now restart Apache and MySQL services once again after you will be able to access Magento on your web browser.

# systemctl restart apache2
# systemctl restart mysqld

Magento Web Installation

Open your web browser and open the link below that can be your server's IP address of the fully qualified domain name and you will be directed towards its setup.


Click on 'Agree and Set Up Magento' to proceed to the next step.

Magento Web

Next you will be followed by the readiness check test, so click on the 'Start Readiness Check' button to test your PHP extensions and setting.

Readiness Check

You might get some errors, so fix them according to the solution other wise you can't be able to move to next step. Once your Readiness check result is all fine you will be able to move to the next step as indicated.

Readiness test result

Choose the database settings by mentioning the database name, its user and password.

Adding DB

Configure your web settings by providing the store and Magento Web address as shown.

Web Configurations

In the next step you will be asked to customize your store settings and you can also choose your selected modules as requirements.

Store Customization

Create your admin user and mention its name and password within the required fields as shown below.

Admin Account

That's it now click on the INSTALL button to proceed to the final step for the installation of Magento 2.0.0 on Ubuntu 15.10 as shown below.

Mageto Install

A progress bar will be launched, let's wait for its completion upto 100 % installation done.

Magento Installation

Lanuching Magento Admin

Congratulation, we have successfully completed the installation setup, you can see a summary of your server built and click on the 'Launch Magento Admin' as shown below .

Magento Admin


After Launching the Magneto Web console , login with your admin account and start enjoying with Magento its really an awesome and best e-commerce solution. I hope you have found this article much helpful, let's share your comments about your experience with Magento.


Share This :

Free Linux Ebook to Download

Leave a Reply

Commenting Policy:
Promotion of your products ? Comment gets deleted.
All comments are subject to moderation.