Instalação NGINX + Wordpress Ubuntu 22.04

De Gigafull
Revisão de 19h33min de 4 de abril de 2023 por Admin (discussão | contribs)
Ir para navegação Ir para pesquisar

Ubuntu Server 22.04

apt install net-tools -y

sudo apt update -y
sudo apt upgrade -y

sudo apt install nginx -y
sudo systemctl status nginx

sudo apt install mysql-server -y
sudo systemctl status mysql

mysql -u root -p
CREATE DATABASE WordPress CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
CREATE USER 'WordPressUser'@'localhost' IDENTIFIED BY 'UYBR438DE98I3MD43M430IDV34';
GRANT ALL PRIVILEGES ON WordPress .* TO 'WordPressUser'@'localhost';
FLUSH PRIVILEGES;
EXIT;

sudo apt install php -y

sudo mkdir -p /var/www/html/sample.com
cd /tmp
wget https://wordpress.org/latest.tar.gz
tar xf latest.tar.gz
sudo mv /tmp/wordpress/* /var/www/html/sample.com/
sudo chown -R www-data: /var/www/html/sample.com