WordPress

(18)
https://qiita.com/cherubim1111/items/265cfbbe91adb44562d5

Apache: 2.4.29
PHP: 7.2.24
MariaDB: 10.1.44
WordPress: 5.1.6

 

apt -y update
apt -y install apache2
systemctl enable apache2
systemctl start apache2

apt -y install php7.2 php7.2-mysql

apt -y install mariadb-server mariadb-client
systemctl enable mariadb
systemctl start mariadb

cd /var/www/html
wget https://ja.wordpress.org/wordpress-5.1.6-ja.tar.gz
tar xvf wordpress-5.1.6-ja.tar.gz
chown -R www-data:www-data .

apache2 -v
php -v
mysql --version

mysql

create database wordpress default character set utf8;
GRANT ALL ON wordpress.* TO wordpress@localhost IDENTIFIED BY 'password';
FLUSH PRIVILEGES;


http://192.168.137.155/wordpress/wp-admin/setup-config.php

 

(9)

Apache: 2.4.25
PHP: 7.0.33
MariaDB: 10.1.45
WordPress: 5.1.6

 

apt -y update
apt -y install apache2
systemctl enable apache2
systemctl start apache2

apt -y install php php-mysql

apt -y install mariadb-server mariadb-client
systemctl enable mariadb
systemctl start mariadb

cd /var/www/html
wget https://ja.wordpress.org/wordpress-5.1.6-ja.tar.gz
tar xvf wordpress-5.1.6-ja.tar.gz
chown -R www-data:www-data .

apache2 -v
php -v
mysql --version

mysql

create database wordpress default character set utf8;
GRANT ALL ON wordpress.* TO wordpress@localhost IDENTIFIED BY 'password';
FLUSH PRIVILEGES;


http://192.168.137.154/wordpress/wp-admin/setup-config.php

 

(7)
https://qiita.com/cherubim1111/items/1e1f227a0a495bc14a11

Apache: 2.4.6
PHP: 5.4.16
MariaDB: 5.5.65
WordPress: 5.1.6


yum -y install httpd
systemctl enable httpd
systemctl start httpd

yum -y install php php-mysql
systemctl restart httpd

yum -y install mariadb-server mariadb-client
systemctl enable mariadb
systemctl start mariadb

yum -y install wget
cd /var/www/html
wget https://ja.wordpress.org/wordpress-5.1.6-ja.tar.gz
tar xvf wordpress-5.1.6-ja.tar.gz
chown -R apache:apache .

httpd -v
php -v
mysql --version

mysql

create database wordpress default character set utf8;
GRANT ALL ON wordpress.* TO wordpress@localhost IDENTIFIED BY 'password';
FLUSH PRIVILEGES;


http://192.168.137.125/wordpress/wp-admin/setup-config.php

 

(2019)
https://sanuki-tech.net/windows-server-2016/web-server-apache-2-4/prepare-install/


Apache: 2.4.46
PHP: 7.2.33
MariaDB: 10.5.5
WordPress: 5.1.6


使用資材:
VC_redist.x64.exe
httpd-2.4.46-win64-VS16.zip
php-7.2.33-Win32-VC15-x64.zip
mariadb-10.5.5-winx64.msi
wordpress-5.1.6-ja.zip

1. VC15用ランタイムのインストール


2. Apacheのインストール

ServerNameディレクティブの修正

cd c:\Apache24\bin
httpd.exe -v
httpd.exe

httpd.exe -k install

httpd.confのDirectoryIndexにindex.phpを追加


3. phpのインストール

php.iniファイル作成
httpd.confファイルの修正

cd c:\php
php.exe -v

php.iniのextension=mysqliのコメントアウトを外す

4. MariaDBのインストール


下記をパスに追加
C:\Program Files\MariaDB 10.5\bin

mysql --version

mysql -u root -h localhost -p

create database wordpress default character set utf8;
GRANT ALL ON wordpress.* TO wordpress@localhost IDENTIFIED BY 'password';
FLUSH PRIVILEGES;

5. WordPressのインストール
https://ja.wordpress.org/wordpress-5.1.6-ja.zip


http://192.168.137.160/wordpress/wp-admin/setup-config.php