How to install Magento on a Linux Virtual Server
Magento 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 18.104.22.168.
Download Magento 22.214.171.124 to the ‘/var/www/html’ directory and extract it using the following commands:
cd /var/www/html/ wget http://www.magentocommerce.com/downloads/assets/126.96.36.199/magento-188.8.131.52.tar.gz tar -xvzf magento-184.108.40.206.tar.gz rm magento-220.127.116.11.tar.gz
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://<your-domain.com>/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://<your-domain.com>/magento/index.php/ and the back-end is available at https://<your-domain.com>/magento/index.php/<admin-path>
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.