Deploying a Prestashop ecommerce: the cloud friendly way — Part 5 — Install time ✊

Set up the data-base for Prestashop.

Pol Guixé
Origen Studio
2 min readJun 23, 2018

--

This article is a continuation of Deploying a Prestashop ecommerce: the cloud friendly way — Part 4

Finally! You have made it to the step where are you going to be installing Prestashop.

Ensure that unzip is installed:

sudo apt-get install unzip

Then download the last Prestashop version from its website: https://www.prestashop.com/en/download

Upload the .zip file you just downloaded to your server using Filezilla or a similar client. It is better to upload this file to a folder where your Ubuntu user has permissions and then move the files from where will be served.

Once uploaded, unzip the files and moves the files. Amsuming you uploaded the and unziped the files inside a folder called prestashop inside your user directory you can run the following command:

sudo rsync -avP ~/prestashop/ /var/www/html/

Run:

cd /var/www/html/

Remove original apache index.html if still there.

Next step is to update the user permissions. Apache needs permission to execute and modify the files inside /var/www/html:

sudo usermod -aG www-data ubuntu
sudo chown -R www-data:www-data /var/www/html/*
sudo find /var/www/html/ -type d -exec chmod 775 {} \;
sudo find /var/www/html/ -type f -exec chmod 644 {} \;

Now you are ready to start the Prestashop installation from your browser. Access the server IP or dns route. Follow the installation guide in your browser.

If during the installation, while checking the system compatibility, you are prompted with:

Apache mod_rewrite warning or missing.

Just do:

sudo a2enmod rewrite
sudo service apache2 restart

When asked to add a database. Introduce the right details, whether those are from a local DB or from an external DB -described in step 3-.

At the end of the installation just remove the /install and /docs folders from /var/etc/www/.

Now your Prestashop is up an running!

--

--

Pol Guixé
Origen Studio

Aerospace engineer working on software development.☺️ Building great products at @theorigenstudio. 🍕and 🚵‍♂️⛷ passionate