Install PrestaShop on a CentOS VPS
PrestaShop is an open-source e-commerce solution which allows you to maintain your own online shop. It is very easy to use as well as very easy to install. If you have a Linux VPS with CentOS installed, you can continue with this guide. Otherwise, you can check our Install PrestaShop on Ubuntu guide.
For this tutorial you will need to have a LAMP stack installed. If you do not have a LAMP stack installed on your server, you can follow the how to install LAMP on CentOS guide.
You can download the latest release from the official PrestaShop website, unpack the installation on your local machine and upload it on your server, or, proceed with the following steps:
Download the PrestaShop installation in your ‘/var/www/html’ directory using the commands:
cd /var/www/html/ wget http://downloads.sourceforge.net/project/prestashop/prestashop%20v1/1.6.0%20stable/prestashop_126.96.36.199.zip
At the moment of writing, the latest stable version is ‘188.8.131.52’.
Next, you will need to unzip the file using the command:
Set the web server to be the owner of that directory:
chown -R apache:apache prestashop/
Once the installation folder is available on your server, you can proceed with creating a database and a database user. To create a database where PrestaShop can store the files and a database user, you need to log in to your MySQL server and execute the following commands:
create database prestashop; GRANT ALL ON prestashop.* TO prestashopuser@localhost IDENTIFIED BY 'YoUrPaSsWoRd'; flush privileges;
Do not forget to change ‘YoUrPaSsWoRd’ with a password of your choice.
You can now set up your web server. If you are using Apache as a web server, you need to edit your ‘/etc/httpd/conf/httpd.conf’ file. Open it with your favorite text editor and add the following lines:
<VirtualHost *:80> ServerAdmin firstname.lastname@example.org DocumentRoot /var/www/html/prestashop ServerName yourdomain.com ErrorLog logs/prestashop.yourdomain.com-error_log CustomLog logs/prestashop.yourdomain.com-access_log common </VirtualHost>
Do not forget to change yourdomain.com with your domain name. Save the file and restart your web server. Once you complete all these steps, you can proceed with the online installation. You should simply open your favorite web browser and enter your domain name.
After you set up PrestShop on your CentOS VPS, it is recommended to read the guides at the official PrestaShop web site in order to learn how to get started with your online shop and how to configure it according to your needs.
Of course you don’t have to do any of this if you use one of our Linux VPS hosting services, in which case you can simply ask our expert Linux admins to install Prestashop for you. They are available 24×7 and will take care of your request 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.