Advertisment

How to Install and Configure PrestaShop on Ubuntu

Let’s check how to install this popular eCommerce platform PrestaShop on Ubuntu through these few simple stepsone

author-image
Rajkumar Maurya
New Update
Ubuntu-prestashop

PrestaShop is a free, open source e-commerce solution. It supports payment gateways such as DirecPay, Google Checkout, Authorize.Net, Skrill, PayPal, PayPal Payments Pro (Direct) and EBANX Checkout via their respective APIs. Further payment modules are offered commercially. PrestaShop uses a web template system which allows users to customize store themes and add new features through add-on modules.

Advertisment

Let’s check how to install this popular eCommerce platform on Ubuntu through these few simple steps.

Here we used Ubuntu server with LAMP installed and should have a static IP address 192.168.5.119.

Step 1: Download the zip file of PrestaShop and extract the file in the /var/www/html folder by using given commands:

Advertisment

cd /tmp

wget http://www.prestashop.com/download/old/prestashop_1.6.0.9.zip

apt-get install unzip

Advertisment

unzip prestashop_1.6.0.9.zip -d /var/www/html/

Step 2: Change the permissions for PrestaShop, as follows:

chown -R www-data:www-data /var/www/html/prestashop/

Advertisment

Step 3: We need to initialize a database for PrestaShop, create the database for the PrestaShop as follows:

Here we are adding database=pcquestdb user= pcquestdbuser and password= pcquestdbpassword:

mysql -u root -p

Advertisment

CREATE DATABASE pcquestdb;

CREATE USER pcquestdbuser@localhost IDENTIFIED BY ‘ pcquestdbpassword’;

GRANT ALL PRIVILEGES on pcquestdb.* to prestashopuser@localhost

Advertisment

FLUSH PRIVILEGES;

exit

Step 4: Restart services

Advertisment

service apache2 restart

service mysql restart

Step 5: Open your browser and proceed with PrestaShop web-installation by using the link http:192.168.5.119/prestashop/install. Replace the

IP address 192.168.5.119 with your IP address then

select your language and press Next and in next page select check-box for accepting terms and conditions. Press Next.

Step 6: In this step, it will check whether the required software suits your system for PrestaShop. If something is missing, it will show you the error message with required software. Install the required package then Press Next and fill-in the credentials.

Step 7: Next, configure the database to be used by PrestaShop, give the values as per the database created in step 3 or whatever you have provided while installing. After giving the values press Test your database connection now. It will check the connectivity, after successful connection press Next.

Step 8: It will initiate the installation. The screenshot shows the successful PrestaShop installation.

Step 9: Next, we need to remove the installation folder to proceed further, as follows:

rm -r /var/www/html/prestashop/install/

Step 10: We can access the backend admin page of PrestaShop at URL http://192.168.5.119/prestashop/admin4755y8m0m/index.php. Please check your admin name in PrestaShop folder at /var/www/html/prestashop/ directory as in my case it is “admin4755y8m0m”. Once you open admin page, put the credentials as selected at the time of installation.

Step 11: After login, it will show your default welcome screen or dashboard.

Step 12: Now, we are ready for the frontend. We can access it at http://192.168.5.119/prestashop/index.php.   

presata

ecommerce
Advertisment