¡Gracias por tu apoyo, nos vemos en el siguiente curso!Comandos: - Instalacionessudo apt updatesudo apt upgradesudo apt -y install nginxsudo systemctl enable nginxsudo apt install -y mariadb-server mariadb-clientsudo systemctl enable mariadbsudo apt install -y software-properties-commonsudo add-apt-repository ppa:ondrej/phpsudo apt install -y php8.2-fpm php8.2-bcmath php8.2-mbstring php8.2-intl php8.2-mysqli php8.2-pdo php8.2-opcache php8.2-curl php8.2-imap php8.2-xml php8.2-zip php8.2-bcmath php8.2-imagick php8.2-memcached php8.2-gd- Configuración de mariadb: sudo mysql_secure_installationsudo mysql -u root -pCREATE DATABASE api;CREATE USER 'api'@'localhost' IDENTIFIED BY '1234';GRANT ALL PRIVILEGES ON dbname.* TO 'username'@'localhost';FLUSH PRIVILEGES;EXIT;- Iptables (esto dependiendo del proveedor puede no ser necesario)iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPTnetfilter-persistent sabepermisosfind . -type d -exec chmod 755 {} \;find . -type f -exec chmod 644 {} \;keysphp artisan key:generatephp artisan jwt:secret
Excelente el curso, espero con ansias el curso en donde se haga la parte del front.
Gracias! por tu ayuda.
¡Gracias por tu apoyo, nos vemos en el siguiente curso!
Comandos:
- Instalaciones
sudo apt update
sudo apt upgrade
sudo apt -y install nginx
sudo systemctl enable nginx
sudo apt install -y mariadb-server mariadb-client
sudo systemctl enable mariadb
sudo apt install -y software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt install -y php8.2-fpm php8.2-bcmath php8.2-mbstring php8.2-intl php8.2-mysqli php8.2-pdo php8.2-opcache php8.2-curl php8.2-imap php8.2-xml php8.2-zip php8.2-bcmath php8.2-imagick php8.2-memcached php8.2-gd
- Configuración de mariadb:
sudo mysql_secure_installation
sudo mysql -u root -p
CREATE DATABASE api;
CREATE USER 'api'@'localhost' IDENTIFIED BY '1234';
GRANT ALL PRIVILEGES ON dbname.* TO 'username'@'localhost';
FLUSH PRIVILEGES;
EXIT;
- Iptables (esto dependiendo del proveedor puede no ser necesario)
iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPT
netfilter-persistent sabe
permisos
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
keys
php artisan key:generate
php artisan jwt:secret