$sudo apt update
$sudo apt install -y nginx
$sudo apt update
$sudo apt install -y php7.4 php7.4-fpm
$sudo apt install -y php7.4-curl php7.4-gd php7.4-json php7.4-mbstring php7.4-xml
PHP FPMサービスの確認
$sudo systemctl status php7.4-fpm
MariaDBのインストールと設定
$sudo apt install -y mariadb-server php7.4-mysql
$ sudo systemctl start mariadb
$ sudo systemctl enable mariadb
$ sudo mysqladmin -uroot create wordpress
$ sudo mysql -uroot
create database wordpress;
GRANT ALL PRIVILEGES ON wordpress.* TO ‘wpadmin’@’localhost’ IDENTIFIED BY ‘****’;
flush privileges;
database name : wordpress
user name : wpadmin
password : ****
host name : localhost