PHP83の11月19日修正版が届きましたので更新しました。
更新を確認します。
# pkg update && pkg upgrade -n
データベースのバックアップを取ります。
# mkdir -p /root/backup
# mysqldump -u DB_USER -p –single-transaction DB_NAME > /root/backup/wp-db-$(date +%Y%m%d).sql
# Enter password:
# mysqldump: Error: ‘Access denied: you need (at least one of) the PROCCESS privilege(s) for this operation’ when trying to dump tablespaces
パスワードは通っています。
エラーは、ユーザーに PROCESS 権限がなく、テーブルスペース情報を書き出せないというもので、MySQL 8 系でよく出ます。WordPress のデータ自体のバックアップには、テーブルスペース情報は不要なので、--no-tablespaces を付けて回避します。
# mysqldump -u DB_USER -p –single-transaction –no-tablespaces DB_NAME > /root/backup/wp-db-$(date +%Y%m%d).sql
# Enter password:
バックアップの中身を確認します。
データベースのバックアップ xxxxxxxx.sql (4.8M) ができました。
最後まで書けたかを確認します。末尾に — Dump completed と出ていればOKです。
# ls -lh /root/backup/
total 1.0MB
-rw-r–r– 1 root wheel 4.8M Nov xx xx:xx wp-db xxxxxxxx.sql
# tail -3 /root/backup/wp-db-xxxxxxxx.sql
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */:
— Dump completed on xxxx-xx-xx xx:xx:xx
次にファイルのバックアップをとります。
WordPressフォルダ全体を tar で固めます。
できたか確認します。
# tar czf /root/backup/wp-files-$(date +%Y%m%d).tar.gz -C /usr/local/www/apache24 data
# ls -lh /root/backup/
total 2.0 GB
-rw-r–r– 1 root wheel 4.8M 以下略
-rw-r–r– 1 root wheel 2.0G 以下略
バックアップは大丈夫なので更新します。
Proceed with this action? [y/N] と聞かれたら y を入力します。
完了したら、Apache を再起動します。
phpのバージョンを確認します。8.3.37になっていればOKです。
# pkg upgrade
Procced with this action? [y/N]
# service apache24 restart
# php -v
(重要)PHP83
CVE-2026-115560 の対策として、session.upload_progress.enabled を 0 にするよう案内されています。既存の php.ini は更新で変更されないので、自分で設定する必要があります。
今の設定を確認します。
# php -r ‘var_dump(ini_get(“session.upload_progress.enabled”));’
結果は、string(1) "0" と出ましたのでこれで完了とします。
