How to install Magento on a Linux Virtual Server

magento vpsMagento is a very popular and easy to manage open source e-commerce web application, completely customizable to every user’s requirements, thus allowing them to create and launch a fully functional online store in minutes. This install guide assumes that Apache, MySQL and PHP are already installed and configured on your Linux VPS. At the time of writing this tutorial, the latest stable version is Magento

Download Magento to the ‘/var/www/html’ directory and extract it using the following commands:

cd /var/www/html/
tar -xvzf magento-
rm magento-

Change permissions of the following directories:

chmod -R o+w magento/app/etc/
chmod -R o+w magento/var/
chmod -R o+w magento/media/

Log in to MySQL console and create a database called ‘magentodb’:

mysql> create database magentodb;
mysql> GRANT ALL PRIVILEGES ON magentodb . * TO magento@'localhost' IDENTIFIED BY 'xxxxxx' WITH GRANT OPTION;
mysql> flush privileges;

Do not forget to change ‘xxxxxx’ with your ‘magento’ MySQL user password.
Alternatively, the MySQL database for Magento online store can be created using phpMyAdmin, which can easily be installed on your virtual server by following the instructions described in our fine tutorial: How to install LAMP (Linux Apache MySQL and PHP) on CentOS 6 with phpMyAdmin and APC cache.

Finally, open http://<>/magento/index.php/install/ in your favorite web browser and complete the installation: agree to terms and conditions, choose a suitable locale, time zone, default currency, MySQL database name, MySQL username and password, admin path (our recommendation is to change the default path), select ‘Use Web Server (Apache) Rewrites’ and ‘Run admin interface with SSL’ options, create admin account, make a note of your encryption key and you’re done!

The URL of newly created Magento store is http://<>/magento/index.php/ and the back-end is available at https://<>/magento/index.php/<admin-path>

magento frontend

Of course, if you are one of our Linux VPS customers, you don’t have to do any of this, simply ask our admins and they will install Magento on your server for you immediately.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.


Install LAMP (Linux Apache MariaDB and PHP) with phpMyAdmin on a Fedora 20 VPS
Run Joomla with Nginx on a Centos VPS
Install Sails.js with Apache as a reverse proxy on CentOS 7
There are currently no comments.