← Volver al blog

04 - Guia instalar PrestaShop en Ubuntu 20.04 con Apache
Guía instalar PrestaShop en Ubuntu 20.04 con Apache

Esta Guía instalar PrestaShop en Ubuntu, correspondiente al tutorial:
Paso 1: Instalar la pila LAMP
Instalacion de librerias PHP para prestashop
sudo apt install php php-cli php-common php-curl php-zip php-gd php-mysql php-xml php-mbstring php-json php-intl libapache2-mod-php
Paso 2: Crear la base de datos para PrestaShop
sudo mysql -u root -p
create database presta_shop;
create user 'prestashop_user'@'localhost' identified by 'password';
grant all privileges on presta_shop.* to `prestashop_user`@localhost;
flush privileges;
exit;
Paso 3: Guia instalar PrestaShop en Ubuntu
wget https://github.com/PrestaShop/PrestaShop/releases/download/1.7.8.4/prestashop_1.7.8.4.zip
sudo unzip prestashop_1.7.8.4.zip -d /var/www/html/root-prestashop
sudo chown -R www-data:www-data /var/www/html/root-prestashop/
sudo chmod -R 755 /var/www/html/root-prestashop
Paso 4: Crear un archivo de host virtual en Apache
sudo nano /etc/apache2/sites-available/prestashop.conf
ServerAdmin admin@your_example.com ServerName tu_dominio.com DocumentRoot /var/www/html/root-prestashop Options +FollowSymlinks AllowOverride All Require all granted ErrorLog /var/log/apache2/prestashop-error_log CustomLog /var/log/apache2/prestashop-access_log common
sudo a2ensite prestashop.conf
sudo systemctl reload apache2
Paso 5: Completar la instalación de PrestaShop
http://tu_dominio.com/
sudo rm -Rf /var/www/html/root-prestashop/install
¡Que tengas un Ingenioso día!