新VPSへ移行したもののDNSの設定変更に時間がかかるため旧VPSも動かし続けています。
しかし、新旧VPSの名称を同じにしたため、旧VPSから新VPSへ定期的にwordpress内部アクセスが発生していることに気付きました。これを修正するには、旧VPSのwordpressのURLを変更する必要があります。ってことで早速mariadbの該当URLを書き換えることにしました。
oldvps% mysql -u foo -p dbname > set autocommit=0; Query OK, 0 rows affected (0.004 sec) > select * from wp_options where option_name = 'siteurl'; +-----------+-------------+--------------------------+----------+ | option_id | option_name | option_value | autoload | +-----------+-------------+--------------------------+----------+ | 1 | siteurl | https://www.ish.org/blog | yes | +-----------+-------------+--------------------------+----------+ 1 row in set (0.001 sec) > update wp_options set option_value = 'https://hoge.ish.org/blog' where option_name = 'siteurl'; Query OK, 1 row affected (0.006 sec) Rows matched: 1 Changed: 1 Warnings: 0 > select * from wp_options where option_name = 'siteurl'; +-----------+-------------+---------------------------+----------+ | option_id | option_name | option_value | autoload | +-----------+-------------+---------------------------+----------+ | 1 | siteurl | https://hoge.ish.org/blog | yes | +-----------+-------------+---------------------------+----------+ 1 row in set (0.001 sec) > select * from wp_options where option_name = 'home'; +-----------+-------------+--------------------------+----------+ | option_id | option_name | option_value | autoload | +-----------+-------------+--------------------------+----------+ | 2 | home | https://www.ish.org/blog | yes | +-----------+-------------+--------------------------+----------+ 1 row in set (0.001 sec) > update wp_options set option_value = 'https://hoge.ish.org/blog' where option_name = 'home'; Query OK, 1 row affected (0.000 sec) Rows matched: 1 Changed: 1 Warnings: 0 > select * from wp_options where option_name = 'home'; +-----------+-------------+---------------------------+----------+ | option_id | option_name | option_value | autoload | +-----------+-------------+---------------------------+----------+ | 2 | home | https://hoge.ish.org/blog | yes | +-----------+-------------+---------------------------+----------+ 1 row in set (0.000 sec) > commit; Query OK, 0 rows affected (0.002 sec) > exit Bye
その5へ戻る