Pre install LAMP Prestashop en Linux local

 


Instalación LAMP Prestashop en Linux local:

Pre-install:
$ sudo apt update
--------
$ sudo apt install apache2
http://localhost/
Apache2 Debian Default Page

$ sudo ufw app list
$ sudo ufw status
Status: inactive // Firewall
--------
--------
$ sudo apt install mariadb-server
$ sudo apt install php libapache2-mod-php php-mysql
$ sudo mariadb
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 33
Server version: 10.11.14-MariaDB-0+deb12u2 Debian 12

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> exit
Bye
--------
--------
$ sudo apt install php libapache2-mod-php php-mysql
$ php -v
PHP 8.2.29 (cli) (built: Jul  3 2025 16:16:05) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.29, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.29, Copyright (c), by Zend Technologies
---------
---------
End Pre-install
..................................

Configurar base de datos:


$ sudo mariadb
[sudo] contraseña para lolo:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 34
Server version: 10.11.14-MariaDB-0+deb12u2 Debian 12

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> CREATE DATABASE prestashop_db;
Query OK, 1 row affected (0,005 sec)

MariaDB [(none)]> CREATE USER 'prestashop_user'@'localhost' IDENTIFIED BY '1234';
Query OK, 0 rows affected (0,018 sec)

MariaDB [(none)]> GRANT ALL PRIVILEGES ON prestashop_db.* TO 'prestashop_user'@'localhost';
Query OK, 0 rows affected (0,033 sec)

MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0,002 sec)

MariaDB [(none)]> EXIT;
Bye

....................

Instalar extensiones:

sudo apt install php libapache2-mod-php php-mysql php-gd php-mbstring php-xml php-curl php-zip php-intl 

sudo a2enmod rewrite
sudo systemctl restart apache2


Podrás encontrar los archivos de la Tienda en:  

/var/www/html

Entradas populares