zabbix環境のphpを5.4から7.2へ
5月10日のエントリでZabbixの環境を更新しましたが、phpはまだ5.4にままでした。
今日更新したのでその手順を。
httpdサービスを停止する
# systemctl stop httpd
インストールされているphp関連のモジュールをチェック
# yum list installed | grep php php.x86_64 5.4.45-14.el7.remi @remi-php54 php-bcmath.x86_64 5.4.45-14.el7.remi @remi-php54 php-cli.x86_64 5.4.45-14.el7.remi @remi-php54 php-common.x86_64 5.4.45-14.el7.remi @remi-php54 php-gd.x86_64 5.4.45-14.el7.remi @remi-php54 php-ldap.x86_64 5.4.45-14.el7.remi @remi-php54 php-mbstring.x86_64 5.4.45-14.el7.remi @remi-php54 php-mysql.x86_64 5.4.45-14.el7.remi @remi-php54 php-pdo.x86_64 5.4.45-14.el7.remi @remi-php54 php-xml.x86_64 5.4.45-14.el7.remi @remi-php54
確認
# yum list installed | grep php php.x86_64 7.2.6-1.el7.remi @remi-php72 php-bcmath.x86_64 7.2.6-1.el7.remi @remi-php72 php-cli.x86_64 7.2.6-1.el7.remi @remi-php72 php-common.x86_64 7.2.6-1.el7.remi @remi-php72 php-gd.x86_64 7.2.6-1.el7.remi @remi-php72 php-json.x86_64 7.2.6-1.el7.remi @remi-php72 php-ldap.x86_64 7.2.6-1.el7.remi @remi-php72 php-mbstring.x86_64 7.2.6-1.el7.remi @remi-php72 php-mysqlnd.x86_64 7.2.6-1.el7.remi @remi-php72 php-pdo.x86_64 7.2.6-1.el7.remi @remi-php72 php-pecl-mysql.x86_64 1.0.0-0.17.20160812git230a828.el7.remi.7.2 @remi-php72 php-xml.x86_64 7.2.6-1.el7.remi @remi-php72
なんかmysqlあたりが変わったな。
httpdを起動
# systemctl start httpd