apt-get install mariadb-server
apt install php-curl php-gd php-intl php-mbstring php-soap php-xml php-xmlrpc php-zip php-mysql
systemctl restart php7.3-fpm.service
systemctl status php* | grep fpm.service
vi /etc/nginx/sites-available/ckenko25.jp
server {
listen 80;
listen [::]:80;
server_name _;
root /var/www/wordpress;
index index.php index.html;
location / {
# try_files $uri $uri/ =404;
try_files $uri $uri/ /index.php?q=$uri&$args;
}
location /phpmyadmin {
allow 192.168.1.21;
allow 117.102.195.171;
deny all;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
# With php-fpm (or other unix sockets):
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
# With php-cgi (or other tcp sockets):
# fastcgi_pass 127.0.0.1:9000;
}
}
systemctl reload nginx
cd /tmp
curl -LO https://wordpress.org/latest.tar.gz
tar xzvf latest.tar.gz
cp /tmp/wordpress/wp-config-sample.php /tmp/wordpress/wp-config.php
cp -a /tmp/wordpress/. /var/www/wordpress
chown -R www-data:www-data /var/www/wordpress
curl -s https://api.wordpress.org/secret-key/1.1/salt/
上記をコピペする
vi /var/www/your_domain/wp-config.php
. . .
define(‘DB_NAME’, ‘wordpress’);
/** MySQL database username */
define(‘DB_USER’, ‘wordpress’);
/** MySQL database password */
define(‘DB_PASSWORD’, ‘password’);
. . .
define(‘FS_METHOD’, ‘direct’);
reboot
コメント