nginx php ubuntu 20.04
apt install magic-wormhole;
sudo nano /etc/default/locale;
#Se le pegan estas tres lineas
LANG=»es_AR.UTF-8″
LANGUAGE=»es_AR:es»
LC_ALL=»es_AR.UTF-8″
#Luego se reinicia
sudo reboot now;
sudo locale-gen es_AR.UTF-8;
sudo apt install nginx -y;
sudo apt install php -y;
apt install php-mysql -y;
sudo apt install mariadb-server mariadb-client -y;
sudo apt install php-fpm -y;
mysql -u root -p
luego, sin necesidad de poner password
use mysql; update user set plugin='mysql_native_password' where user='root'; flush privileges; quit;
sudo nano /etc/nginx/sites-available/your_domain
server {
listen 80;
server_name www.sanatoriodelpilar.com.ar sanatoriodelpilar.com.ar;
root /var/www/www.sanatoriodelpilar.com.ar;
index index.html index.htm index.php;
location / {
# try_files $uri $uri/ =404;
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
sudo ln -s /etc/nginx/sites-available/rnaper.saas.com.ar /etc/nginx/sites-enabled/
sudo systemctl reload nginx;