Prestashop, install it easily with Xampp in Ubuntu 17.10

install Prestashop on Ubuntu 17.10

In the next article we are going to take a look at how we are going to be able to install Prestashop on Ubuntu. This is a good idea for all of us who develop modules or themes for this free content manager. PrestaShop provides us with a default theme with many possibilities. It will allow users to change the theme of the store without altering its content or modifying it to taste. This software is compatible with add-on modules that extend the functionalities integrated in it.

If someone still doesn't know yet, PrestaShop is an open source e-commerce solution which allows us to maintain our own online store. It is written in the PHP programming language with support for the MySQL database management system. It also supports different payment gateway systems like PayPal, Google Checkout, etc.

Prerequisite

In order to install on our Ubuntu system (17.10 in this example) we will have to fulfill a prerequisite. Basically we will need to have an Apache server, MySQL and PHP installed, and to make this easier we have the possibility of using XAMPP. Anyone can download it from their website and then install it.

Prestashop download

Once the Xampp requirement is met and assuming that everyone has it installed and working, we continue with the installation procedure. First we are going to download the package from the terminal (Ctrl + Alt + T), although we can also download it from official website. To download by terminal we will execute the wget command followed by the download link.

wget https://download.prestashop.com/download/releases/prestashop_1.7.2.4.zip

Package decompression

Now we will have to extract the downloaded package. For this we will execute the following command. The path in which I unzip it is from Xampp:

unzip prestashop_1.7.2.4.zip -d /opt/lampp/htdocs/prestashop

By default the permissions should be correct. If during installation it gives some problem during installation with permissions, we can give you the following. Let's not forget that this installation is done locally, so we assume that the security risks are minimal:

chmod -R 777 /opt/lampp/htdocs/prestashop

Create configuration file for virtual host

Once we have Prestashop on our team, we are going to create a virtual host configuration file for PrestaShop called prestashop.conf to which we will add the following changes. To edit the file, we will only have to write in the terminal (Ctrl + Alt + T):

nano /etc/apache2/sites-available/prestashop.conf

The content to add would be something like the following:

virtual local Prestashop host

Once the previous files are saved, we will create an entry in the hosts file to be able to call our Prestashop from the browser by typing only the ServerName. We start by editing the hosts file with the following command:

nano /etc/hosts

The file format should be something like this:

ip-de-tu-equipo presta.local

Once the hosts file is saved, we will have to restart the apache that Xampp makes available to us.

Prestashop installation

In the browser we will write as URL presta.local (if you have followed the steps in this article). The PrestaShop installation procedure will open on the screen.

Language selection

local prestashop language selection

Here we will have to choose the language and click next.

License acceptance

prestashop license agreement

The License Agreement appears on the screen. We just have to check the option I agree and click next.

Compatibility check

local prestashop system compatibility

Then the installation wizard check system compatibility. If all goes well, we can click next.

Store details

local prestashop store details

Write the store details as necessary. On this screen it will also be necessary to fill in the admin account details. We advance by clicking next.

The database

attempt to create local prestashop database

In this part we will have to give the database data and click on the test database connection option. Prestashop will make an attempt to connect, but if we have not created any database, it will give us the option to create it automatically. If the facility has access to the database, we shouldn't have a problem.

local prestashop bd creation

Installation successful

installation finished prestashop

The PrestaShop installation continues its process until it is complete. Now to open the administration panel, we will click on the option "Manage your store”To navigate to the store administration. Not without before delete the folder "install”That we will find inside the directory in which we have installed Prestashop.

Admin panel login

local prestashop login

Following the previous link, we will arrive at the login page. To access the administration, we will have to write the credentials that we provide during the installation.

prestashop administration

The PrestaShop admin panel appears on the screen. Therefore, we conclude the installation of PrestaShop in Ubuntu 17.10 and we can start developing and testing.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Lothbrok angel said

    You have to be very useless to occupy that wea

    1.    Wardo R. said

      Because you said so?.

  2.   alentin said

    It works on my ubuntu 20.04, thank you very much <3
    I needed to install the local PrestaShop for testing.

    When I followed the steps to enter the PrestaShop installation, it did not work enter
    prestashop.local (example IP). In my case it works if you enter your IP + as you called the folder where you put the Prestashop, "chosen-ip / foldername". Ex:
    prestashop.local / prestashop /
    And already in the install a PHP permissions error appeared that I solved by prostituting the folder
    where is the PrestaShop. Ex: chmod 777 -R prestashop / (inside htdocs) ...