Mudanças entre as edições de "Instalação NGINX + Wordpress Ubuntu 22.04"

De Gigafull
Ir para navegação Ir para pesquisar
Linha 1: Linha 1:
Ubuntu Server 22.04
+
Ubuntu Server 22.04<br><br>
  
sudo apt update -y
+
apt install net-tools -y<br><br>
sudo apt upgrade -y
 
  
sudo apt install nginx -y
+
sudo apt update -y<br>
sudo systemctl status nginx
+
sudo apt upgrade -y<br><br>
  
sudo apt install mysql-server -y
+
sudo apt install nginx -y<br>
sudo systemctl status mysql
+
sudo systemctl status nginx<br><br>
  
mysql -u root -p
+
sudo apt install mysql-server -y<br>
CREATE DATABASE WordPress CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
+
sudo systemctl status mysql<br><br>
CREATE USER 'WordPressUser'@'localhost' IDENTIFIED BY 'UYBR438DE98I3MD43M430IDV34';
 
GRANT ALL PRIVILEGES ON WordPress .* TO 'WordPressUser'@'localhost';
 
FLUSH PRIVILEGES;
 
EXIT;
 
  
sudo apt install php -y
+
mysql -u root -p<br>
 +
CREATE DATABASE WordPress CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;<br>
 +
CREATE USER 'WordPressUser'@'localhost' IDENTIFIED BY 'UYBR438DE98I3MD43M430IDV34';<br>
 +
GRANT ALL PRIVILEGES ON WordPress .* TO 'WordPressUser'@'localhost';<br>
 +
FLUSH PRIVILEGES;<br>
 +
EXIT;<br><br>
  
sudo mkdir -p /var/www/html/sample.com
+
sudo apt install php -y<br><br>
cd /tmp
+
 
wget https://wordpress.org/latest.tar.gz
+
sudo mkdir -p /var/www/html/sample.com<br>
tar xf latest.tar.gz
+
cd /tmp<br>
sudo mv /tmp/wordpress/* /var/www/html/sample.com/
+
wget https://wordpress.org/latest.tar.gz<br>
sudo chown -R www-data: /var/www/html/sample.com
+
tar xf latest.tar.gz<br>
 +
sudo mv /tmp/wordpress/* /var/www/html/sample.com/<br>
 +
sudo chown -R www-data: /var/www/html/sample.com<br><br>

Edição das 19h33min de 4 de abril de 2023

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