「WordPress」の版間の差分
ナビゲーションに移動
検索に移動
7行目: | 7行目: | ||
*[[PHP]]のインストール、phpMyAdminのインストール | *[[PHP]]のインストール、phpMyAdminのインストール | ||
*[[CentOS7|httpd]]のファイアーウォール設定 | *[[CentOS7|httpd]]のファイアーウォール設定 | ||
+ | ===[[Ubuntu]]へのインストール=== | ||
+ | |||
===インストール=== | ===インストール=== | ||
*https://ja.wordpress.org/support/article/how-to-install-wordpress/ | *https://ja.wordpress.org/support/article/how-to-install-wordpress/ |
2021年1月21日 (木) 12:40時点における版
WordPress
CentOS7へインストール
準備
- https://ja.wordpress.org/support/article/before-you-install/
- MySQL のインストール
- PHPのインストール、phpMyAdminのインストール
- httpdのファイアーウォール設定
Ubuntuへのインストール
インストール
ダウンロード
解凍
- tar -xzvf latest.tar.gz
移動とオーナー変更
- mv wordpress /var/www/html/blog
- chown -R apache:apache /var/www/html/blog
初期設定
- http://localhost/blog にアクセス
データベースとユーザーの作成
Tips
IPアドレス変更時
- wp_optionsテーブルのsiteurl、homeを更新
構築ログ
MySQL
- # wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
- # yum localinstall mysql80-community-release-el7-3.noarch.rpm
- # yum update
- # yum install mysql-community-server
- # systemctl enable mysqld
- # systemctl start mysqld
一時パスワードの確認
- # cat /var/log/mysqld.log | grep "password"
初期設定
- # mysql_secure_instllation
PHP
- # yum -y install epel-release
- # yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
- # yum update
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
- vi /etc/yum.repos.d/epel.repo
- baseurlをコメントインし、mirrorlistをコメントアウト。
- # yum install -y --enablerepo=remi-php74 php php-gd php-intl php-json php-mysqlnd php-mbstring
- # yum install -y --enablerepo=remi-php74 phpMyAdmin
WordPress
- # wget https://wordpress.org/latest.tar.gz
- # tar -xvf latest.tar.gz
- # mv wordpress /var/www/html/blog
- # chown -R apache:apache /var/www/html/blog
© 2006 矢木浩人