20年ぐらい前に作った不動産のマッチングシステムのリプレイス、phpのバージョンを上げる作業を依頼されました。
サーバ移管に伴うもののようなので、動かない確率が高いというのが依頼の理由です。
作業内容のイメージは次のような形になります。
PHPのバージョンアップ作業の概要を以下にまとめました:
1. 事前準備
現在のPHPバージョンやアプリケーションの動作環境を確認。
バージョンアップ後の互換性を確認(非推奨機能や削除された機能をチェック)。
アプリケーションのバックアップ(コード・データベース)を取得。
開発環境またはステージング環境で作業を進める。
2. 新バージョンのインストール
OSに適した手順で新しいPHPバージョンをインストール。
必要な拡張モジュールをインストール。
PHPのバージョンを切り替え。
3. 動作確認
設定ファイル(php.iniなど)やウェブサーバーの設定を更新。
アプリケーション全体の動作確認を行い、問題を洗い出す。
エラーログをチェック。
4. 本番環境への適用
バックアップを再取得し、新バージョンを適用。
サーバーを再起動し、動作確認を行う。
緊急時のロールバック手順を準備。
5. 監視と調整
アップデート後、エラーログやパフォーマンスを監視。
必要に応じて修正や最適化を行う。
簡潔にまとめると、準備 → インストール → 確認 → 適用 → 監視の流れで作業を進める感じです。
2月10日にサーバが切れるらしいので、再来週ぐらいから作業します。
I have been tasked with replacing and upgrading the PHP version for a real estate matching system that was built about 20 years ago. This is part of a server migration, and the primary concern is that the system is likely to encounter issues during the upgrade.
Here’s an overview of the planned PHP version upgrade process:
PHP Version Upgrade Overview:
- Preparation
- Confirm the current PHP version and the application’s runtime environment.
- Check for compatibility with the new PHP version (identify deprecated or removed features).
- Create a full backup of the application (code and database).
- Start the process in a development or staging environment.
- Installing the New Version
- Install the new PHP version following OS-specific procedures.
- Install required PHP extensions.
- Switch to the new PHP version.
- Testing
- Update configuration files (e.g.,
php.ini
) and web server settings. - Test the application thoroughly to identify issues.
- Review error logs for potential problems.
- Update configuration files (e.g.,
- Deployment to Production
- Take another backup and deploy the updated PHP version in the production environment.
- Restart the server and ensure the application functions as expected.
- Prepare rollback procedures in case of issues.
- Monitoring and Adjustments
- Monitor error logs and performance after the upgrade.
- Address any problems and optimize as necessary.
In summary, the workflow will follow these steps: Preparation → Installation → Testing → Deployment → Monitoring.
The current server is scheduled to go offline on February 10, so the work is planned to begin around next week or the week after.
株式会社ASAP
及川知也