当サイトを運用しているサーバ(CentOS 7.6)でアップデートしたらphp 7.0の警告が表示されていました。
1 2 3 4 5 6 7 8 9 10 11 |
# yum update (snip) ===================================================================== WARNING : PHP 7.0 have reached its "End of Life" in December 2018. Even, if this package includes some of the important security fix, backported from 7.1, the UPGRADE to a maintained version is very strongly RECOMMENDED. ===================================================================== (snip) |
php 7.0って2018年12月に完全終了してたんだ(^^;
そこでRemi’s RPM repositoryを使ってphp 7.0から7.3にアップデートしました。
2016年7月2日にphp 5.6から7.0に更新した記事を投稿してるな。
今回も同様にアップデートしました。
- remi-php73の有効化
- phpのアップデート
- opcacheのインストール
- php73-php-opcacheのインストール
- /etc/php.d/10-opcache.iniの編集
- php73-php-opcacheのインストール
- /etc/php.d/40-apcu.iniの編集
- バージョン確認
- phpinfo()で確認
- Apacheの再起動
yum-config-managerでは無く直接/etc/yum.repos.d/remi-php73.repoを編集して
enabled = 1に変更してもいいです。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# yum-config-manager --enable remi-php73 Loaded plugins: fastestmirror ======================================================== repo: remi-php73 ========================================================= [remi-php73] async = True bandwidth = 0 base_persistdir = /var/lib/yum/repos/x86_64/7 baseurl = cache = 0 cachedir = /var/cache/yum/x86_64/7/remi-php73 check_config_file_age = True compare_providers_priority = 80 cost = 1000 deltarpm_metadata_percentage = 100 deltarpm_percentage = enabled = 1 enablegroups = True exclude = failovermethod = priority ftp_disable_epsv = False gpgcadir = /var/lib/yum/repos/x86_64/7/remi-php73/gpgcadir gpgcakey = gpgcheck = True gpgdir = /var/lib/yum/repos/x86_64/7/remi-php73/gpgdir gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi hdrdir = /var/cache/yum/x86_64/7/remi-php73/headers http_caching = all includepkgs = ip_resolve = keepalive = True keepcache = False mddownloadpolicy = sqlite mdpolicy = group:small mediaid = metadata_expire = 21600 metadata_expire_filter = read-only:present metalink = minrate = 0 mirrorlist = http://cdn.remirepo.net/enterprise/7/php73/mirror mirrorlist_expire = 86400 name = Remi's PHP 7.3 RPM repository for Enterprise Linux 7 - x86_64 old_base_cache_dir = password = persistdir = /var/lib/yum/repos/x86_64/7/remi-php73 pkgdir = /var/cache/yum/x86_64/7/remi-php73/packages proxy = False proxy_dict = proxy_password = proxy_username = repo_gpgcheck = False retries = 10 skip_if_unavailable = False ssl_check_cert_permissions = True sslcacert = sslclientcert = sslclientkey = sslverify = True throttle = 0 timeout = 30.0 ui_id = remi-php73 ui_repoid_vars = releasever, basearch username = |
なんかFailed loadingやらWarningがヤバイ感じ。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 |
# yum update Loaded plugins: fastestmirror remi-php73 | 3.0 kB 00:00:00 remi-php73/primary_db | 196 kB 00:00:00 Resolving Dependencies --> Running transaction check ---> Package php.x86_64 0:7.0.33-8.el7.remi will be updated ---> Package php.x86_64 0:7.3.5-1.el7.remi will be an update --> Processing Dependency: libargon2.so.0()(64bit) for package: php-7.3.5-1.el7.remi.x86_64 ---> Package php-cli.x86_64 0:7.0.33-8.el7.remi will be updated ---> Package php-cli.x86_64 0:7.3.5-1.el7.remi will be an update ---> Package php-common.x86_64 0:7.0.33-8.el7.remi will be updated ---> Package php-common.x86_64 0:7.3.5-1.el7.remi will be an update ---> Package php-devel.x86_64 0:7.0.33-8.el7.remi will be updated ---> Package php-devel.x86_64 0:7.3.5-1.el7.remi will be an update --> Processing Dependency: libargon2-devel(x86-64) for package: php-devel-7.3.5-1.el7.remi.x86_64 ---> Package php-fpm.x86_64 0:7.0.33-8.el7.remi will be updated ---> Package php-fpm.x86_64 0:7.3.5-1.el7.remi will be an update ---> Package php-gd.x86_64 0:7.0.33-8.el7.remi will be updated ---> Package php-gd.x86_64 0:7.3.5-1.el7.remi will be an update ---> Package php-json.x86_64 0:7.0.33-8.el7.remi will be updated ---> Package php-json.x86_64 0:7.3.5-1.el7.remi will be an update ---> Package php-mbstring.x86_64 0:7.0.33-8.el7.remi will be updated ---> Package php-mbstring.x86_64 0:7.3.5-1.el7.remi will be an update --> Processing Dependency: libonig.so.5()(64bit) for package: php-mbstring-7.3.5-1.el7.remi.x86_64 ---> Package php-mysqlnd.x86_64 0:7.0.33-8.el7.remi will be updated ---> Package php-mysqlnd.x86_64 0:7.3.5-1.el7.remi will be an update ---> Package php-pdo.x86_64 0:7.0.33-8.el7.remi will be updated ---> Package php-pdo.x86_64 0:7.3.5-1.el7.remi will be an update ---> Package php-pecl-zip.x86_64 0:1.15.4-1.el7.remi.7.0 will be updated ---> Package php-pecl-zip.x86_64 0:1.15.4-1.el7.remi.7.3 will be an update ---> Package php-process.x86_64 0:7.0.33-8.el7.remi will be updated ---> Package php-process.x86_64 0:7.3.5-1.el7.remi will be an update ---> Package php-xml.x86_64 0:7.0.33-8.el7.remi will be updated ---> Package php-xml.x86_64 0:7.3.5-1.el7.remi will be an update --> Running transaction check ---> Package libargon2.x86_64 0:20161029-3.el7 will be installed ---> Package libargon2-devel.x86_64 0:20161029-3.el7 will be installed ---> Package oniguruma5.x86_64 0:6.9.1-1.el7.remi will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================== Updating: php x86_64 7.3.5-1.el7.remi remi-php73 3.2 M php-cli x86_64 7.3.5-1.el7.remi remi-php73 4.9 M php-common x86_64 7.3.5-1.el7.remi remi-php73 1.1 M php-devel x86_64 7.3.5-1.el7.remi remi-php73 1.2 M php-fpm x86_64 7.3.5-1.el7.remi remi-php73 1.7 M php-gd x86_64 7.3.5-1.el7.remi remi-php73 79 k php-json x86_64 7.3.5-1.el7.remi remi-php73 64 k php-mbstring x86_64 7.3.5-1.el7.remi remi-php73 508 k php-mysqlnd x86_64 7.3.5-1.el7.remi remi-php73 232 k php-pdo x86_64 7.3.5-1.el7.remi remi-php73 125 k php-pecl-zip x86_64 1.15.4-1.el7.remi.7.3 remi-php73 51 k php-process x86_64 7.3.5-1.el7.remi remi-php73 81 k php-xml x86_64 7.3.5-1.el7.remi remi-php73 205 k Installing for dependencies: libargon2 x86_64 20161029-3.el7 epel 23 k libargon2-devel x86_64 20161029-3.el7 epel 13 k oniguruma5 x86_64 6.9.1-1.el7.remi remi 188 k Transaction Summary =================================================================================================================================== Install ( 3 Dependent packages) Upgrade 13 Packages Total download size: 14 M Is this ok [y/d/N]: y Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. (1/16): libargon2-20161029-3.el7.x86_64.rpm | 23 kB 00:00:00 (2/16): oniguruma5-6.9.1-1.el7.remi.x86_64.rpm | 188 kB 00:00:00 (3/16): libargon2-devel-20161029-3.el7.x86_64.rpm | 13 kB 00:00:00 (4/16): php-7.3.5-1.el7.remi.x86_64.rpm | 3.2 MB 00:00:00 (5/16): php-common-7.3.5-1.el7.remi.x86_64.rpm | 1.1 MB 00:00:00 (6/16): php-cli-7.3.5-1.el7.remi.x86_64.rpm | 4.9 MB 00:00:00 (7/16): php-fpm-7.3.5-1.el7.remi.x86_64.rpm | 1.7 MB 00:00:00 (8/16): php-devel-7.3.5-1.el7.remi.x86_64.rpm | 1.2 MB 00:00:00 (9/16): php-json-7.3.5-1.el7.remi.x86_64.rpm | 64 kB 00:00:00 (10/16): php-gd-7.3.5-1.el7.remi.x86_64.rpm | 79 kB 00:00:00 (11/16): php-mysqlnd-7.3.5-1.el7.remi.x86_64.rpm | 232 kB 00:00:00 (12/16): php-mbstring-7.3.5-1.el7.remi.x86_64.rpm | 508 kB 00:00:00 (13/16): php-pdo-7.3.5-1.el7.remi.x86_64.rpm | 125 kB 00:00:00 (14/16): php-pecl-zip-1.15.4-1.el7.remi.7.3.x86_64.rpm | 51 kB 00:00:00 (15/16): php-xml-7.3.5-1.el7.remi.x86_64.rpm | 205 kB 00:00:00 (16/16): php-process-7.3.5-1.el7.remi.x86_64.rpm | 81 kB 00:00:00 ----------------------------------------------------------------------------------------------------------------------------------- Total 15 MB/s | 14 MB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : php-json-7.3.5-1.el7.remi.x86_64 1/29 Updating : php-common-7.3.5-1.el7.remi.x86_64 2/29 warning: /etc/php.ini created as /etc/php.ini.rpmnew Installing : libargon2-20161029-3.el7.x86_64 3/29 Updating : php-cli-7.3.5-1.el7.remi.x86_64 4/29 Installing : libargon2-devel-20161029-3.el7.x86_64 5/29 Updating : php-pdo-7.3.5-1.el7.remi.x86_64 6/29 Installing : oniguruma5-6.9.1-1.el7.remi.x86_64 7/29 Updating : php-mbstring-7.3.5-1.el7.remi.x86_64 8/29 Updating : php-mysqlnd-7.3.5-1.el7.remi.x86_64 9/29 Updating : php-devel-7.3.5-1.el7.remi.x86_64 10/29 Updating : php-7.3.5-1.el7.remi.x86_64 11/29 Updating : php-fpm-7.3.5-1.el7.remi.x86_64 12/29 Updating : php-pecl-zip-1.15.4-1.el7.remi.7.3.x86_64 13/29 Failed loading /opt/remi/php70/root/usr/lib64/php/modules/opcache.so: /opt/remi/php70/root/usr/lib64/php/modules/opcache.so: undefined symbol: _zval_ptr_dtor PHP Warning: PHP Startup: Unable to load dynamic library 'dom.so' (tried: /usr/lib64/php/modules/dom.so (/usr/lib64/php/modules/dom.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/dom.so.so (/usr/lib64/php/modules/dom.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/lib64/php/modules/gd.so (/usr/lib64/php/modules/gd.so: undefined symbol: _zval_get_long_func), /usr/lib64/php/modules/gd.so.so (/usr/lib64/php/modules/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'posix.so' (tried: /usr/lib64/php/modules/posix.so (/usr/lib64/php/modules/posix.so: undefined symbol: _zend_hash_str_update), /usr/lib64/php/modules/posix.so.so (/usr/lib64/php/modules/posix.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: shmop: Unable to initialize module Module compiled with module API=20151012 PHP compiled with module API=20180731 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'simplexml.so' (tried: /usr/lib64/php/modules/simplexml.so (/usr/lib64/php/modules/simplexml.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/simplexml.so.so (/usr/lib64/php/modules/simplexml.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'sysvmsg.so' (tried: /usr/lib64/php/modules/sysvmsg.so (/usr/lib64/php/modules/sysvmsg.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/sysvmsg.so.so (/usr/lib64/php/modules/sysvmsg.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: sysvsem: Unable to initialize module Module compiled with module API=20151012 PHP compiled with module API=20180731 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'sysvshm.so' (tried: /usr/lib64/php/modules/sysvshm.so (/usr/lib64/php/modules/sysvshm.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/sysvshm.so.so (/usr/lib64/php/modules/sysvshm.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'xml.so' (tried: /usr/lib64/php/modules/xml.so (/usr/lib64/php/modules/xml.so: undefined symbol: _zend_hash_str_add), /usr/lib64/php/modules/xml.so.so (/usr/lib64/php/modules/xml.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'xmlwriter.so' (tried: /usr/lib64/php/modules/xmlwriter.so (/usr/lib64/php/modules/xmlwriter.so: undefined symbol: zend_get_std_object_handlers), /usr/lib64/php/modules/xmlwriter.so.so (/usr/lib64/php/modules/xmlwriter.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'xsl.so' (tried: /usr/lib64/php/modules/xsl.so (/usr/lib64/php/modules/xsl.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/xsl.so.so (/usr/lib64/php/modules/xsl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'wddx.so' (tried: /usr/lib64/php/modules/wddx.so (/usr/lib64/php/modules/wddx.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/wddx.so.so (/usr/lib64/php/modules/wddx.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'xmlreader.so' (tried: /usr/lib64/php/modules/xmlreader.so (/usr/lib64/php/modules/xmlreader.so: undefined symbol: dom_node_class_entry), /usr/lib64/php/modules/xmlreader.so.so (/usr/lib64/php/modules/xmlreader.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/remi/php70/root/usr/lib64/php/modules/apcu.so' (tried: /opt/remi/php70/root/usr/lib64/php/modules/apcu.so (/opt/remi/php70/root/usr/lib64/php/modules/apcu.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules//opt/remi/php70/root/usr/lib64/php/modules/apcu.so.so (/usr/lib64/php/modules//opt/remi/php70/root/usr/lib64/php/modules/apcu.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 PHP Notice: Undefined index: honorsbaseinstall in /usr/share/pear/PEAR/Installer/Role.php on line 173 PHP Notice: Undefined index: honorsbaseinstall in /usr/share/pear/PEAR/Installer/Role.php on line 173 PHP Notice: Undefined index: honorsbaseinstall in /usr/share/pear/PEAR/Installer/Role.php on line 173 PHP Notice: Undefined index: honorsbaseinstall in /usr/share/pear/PEAR/Installer/Role.php on line 173 PHP Notice: Undefined index: honorsbaseinstall in /usr/share/pear/PEAR/Installer/Role.php on line 173 PHP Notice: Undefined index: honorsbaseinstall in /usr/share/pear/PEAR/Installer/Role.php on line 173 PHP Notice: Undefined index: honorsbaseinstall in /usr/share/pear/PEAR/Installer/Role.php on line 173 PHP Notice: Undefined index: honorsbaseinstall in /usr/share/pear/PEAR/Installer/Role.php on line 173 PHP Notice: Undefined index: honorsbaseinstall in /usr/share/pear/PEAR/Installer/Role.php on line 173 PHP Notice: Undefined index: honorsbaseinstall in /usr/share/pear/PEAR/Installer/Role.php on line 173 PHP Notice: Undefined index: installable in /usr/share/pear/PEAR/Installer/Role.php on line 139 PHP Notice: Undefined index: installable in /usr/share/pear/PEAR/Installer/Role.php on line 139 PHP Notice: Undefined index: installable in /usr/share/pear/PEAR/Installer/Role.php on line 139 PHP Notice: Undefined index: installable in /usr/share/pear/PEAR/Installer/Role.php on line 139 PHP Notice: Undefined index: installable in /usr/share/pear/PEAR/Installer/Role.php on line 139 PHP Notice: Undefined index: installable in /usr/share/pear/PEAR/Installer/Role.php on line 139 PHP Notice: Undefined index: installable in /usr/share/pear/PEAR/Installer/Role.php on line 139 PHP Notice: Undefined index: installable in /usr/share/pear/PEAR/Installer/Role.php on line 139 PHP Notice: Undefined index: installable in /usr/share/pear/PEAR/Installer/Role.php on line 139 PHP Notice: Undefined index: installable in /usr/share/pear/PEAR/Installer/Role.php on line 139 PHP Notice: Undefined index: phpfile in /usr/share/pear/PEAR/Installer/Role.php on line 204 PHP Notice: Undefined index: phpfile in /usr/share/pear/PEAR/Installer/Role.php on line 204 PHP Notice: Undefined index: phpfile in /usr/share/pear/PEAR/Installer/Role.php on line 204 PHP Notice: Undefined index: phpfile in /usr/share/pear/PEAR/Installer/Role.php on line 204 PHP Notice: Undefined index: phpfile in /usr/share/pear/PEAR/Installer/Role.php on line 204 PHP Notice: Undefined index: phpfile in /usr/share/pear/PEAR/Installer/Role.php on line 204 PHP Notice: Undefined index: phpfile in /usr/share/pear/PEAR/Installer/Role.php on line 204 PHP Notice: Undefined index: phpfile in /usr/share/pear/PEAR/Installer/Role.php on line 204 PHP Notice: Undefined index: phpfile in /usr/share/pear/PEAR/Installer/Role.php on line 204 PHP Notice: Undefined index: phpfile in /usr/share/pear/PEAR/Installer/Role.php on line 204 PHP Notice: Undefined index: config_vars in /usr/share/pear/PEAR/Installer/Role.php on line 46 PHP Notice: Undefined index: config_vars in /usr/share/pear/PEAR/Installer/Role.php on line 46 PHP Notice: Undefined index: config_vars in /usr/share/pear/PEAR/Installer/Role.php on line 46 PHP Notice: Undefined index: config_vars in /usr/share/pear/PEAR/Installer/Role.php on line 46 PHP Notice: Undefined index: config_vars in /usr/share/pear/PEAR/Installer/Role.php on line 46 PHP Notice: Undefined index: config_vars in /usr/share/pear/PEAR/Installer/Role.php on line 46 PHP Notice: Undefined index: config_vars in /usr/share/pear/PEAR/Installer/Role.php on line 46 PHP Notice: Undefined index: config_vars in /usr/share/pear/PEAR/Installer/Role.php on line 46 PHP Notice: Undefined index: config_vars in /usr/share/pear/PEAR/Installer/Role.php on line 46 PHP Notice: Undefined index: config_vars in /usr/share/pear/PEAR/Installer/Role.php on line 46 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 249 Updating : php-process-7.3.5-1.el7.remi.x86_64 14/29 Updating : php-xml-7.3.5-1.el7.remi.x86_64 15/29 Updating : php-gd-7.3.5-1.el7.remi.x86_64 16/29 Cleanup : php-devel-7.0.33-8.el7.remi.x86_64 17/29 Cleanup : php-7.0.33-8.el7.remi.x86_64 18/29 Cleanup : php-cli-7.0.33-8.el7.remi.x86_64 19/29 Cleanup : php-fpm-7.0.33-8.el7.remi.x86_64 20/29 Cleanup : php-gd-7.0.33-8.el7.remi.x86_64 21/29 Cleanup : php-xml-7.0.33-8.el7.remi.x86_64 22/29 Cleanup : php-mbstring-7.0.33-8.el7.remi.x86_64 23/29 Cleanup : php-process-7.0.33-8.el7.remi.x86_64 24/29 Cleanup : php-mysqlnd-7.0.33-8.el7.remi.x86_64 25/29 Cleanup : php-pdo-7.0.33-8.el7.remi.x86_64 26/29 Cleanup : php-pecl-zip-1.15.4-1.el7.remi.7.0.x86_64 27/29 Cleanup : php-json-7.0.33-8.el7.remi.x86_64 28/29 Cleanup : php-common-7.0.33-8.el7.remi.x86_64 29/29 Failed loading /opt/remi/php70/root/usr/lib64/php/modules/opcache.so: /opt/remi/php70/root/usr/lib64/php/modules/opcache.so: undefined symbol: _zval_ptr_dtor PHP Warning: PHP Startup: Unable to load dynamic library '/opt/remi/php70/root/usr/lib64/php/modules/apcu.so' (tried: /opt/remi/php70/root/usr/lib64/php/modules/apcu.so (/opt/remi/php70/root/usr/lib64/php/modules/apcu.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules//opt/remi/php70/root/usr/lib64/php/modules/apcu.so.so (/usr/lib64/php/modules//opt/remi/php70/root/usr/lib64/php/modules/apcu.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Verifying : php-pecl-zip-1.15.4-1.el7.remi.7.3.x86_64 1/29 Verifying : php-common-7.3.5-1.el7.remi.x86_64 2/29 Verifying : php-mysqlnd-7.3.5-1.el7.remi.x86_64 3/29 Verifying : php-process-7.3.5-1.el7.remi.x86_64 4/29 Verifying : libargon2-20161029-3.el7.x86_64 5/29 Verifying : oniguruma5-6.9.1-1.el7.remi.x86_64 6/29 Verifying : php-pdo-7.3.5-1.el7.remi.x86_64 7/29 Verifying : libargon2-devel-20161029-3.el7.x86_64 8/29 Verifying : php-mbstring-7.3.5-1.el7.remi.x86_64 9/29 Verifying : php-devel-7.3.5-1.el7.remi.x86_64 10/29 Verifying : php-7.3.5-1.el7.remi.x86_64 11/29 Verifying : php-xml-7.3.5-1.el7.remi.x86_64 12/29 Verifying : php-gd-7.3.5-1.el7.remi.x86_64 13/29 Verifying : php-json-7.3.5-1.el7.remi.x86_64 14/29 Verifying : php-cli-7.3.5-1.el7.remi.x86_64 15/29 Verifying : php-fpm-7.3.5-1.el7.remi.x86_64 16/29 Verifying : php-fpm-7.0.33-8.el7.remi.x86_64 17/29 Verifying : php-pdo-7.0.33-8.el7.remi.x86_64 18/29 Verifying : php-xml-7.0.33-8.el7.remi.x86_64 19/29 Verifying : php-mysqlnd-7.0.33-8.el7.remi.x86_64 20/29 Verifying : php-pecl-zip-1.15.4-1.el7.remi.7.0.x86_64 21/29 Verifying : php-common-7.0.33-8.el7.remi.x86_64 22/29 Verifying : php-7.0.33-8.el7.remi.x86_64 23/29 Verifying : php-mbstring-7.0.33-8.el7.remi.x86_64 24/29 Verifying : php-process-7.0.33-8.el7.remi.x86_64 25/29 Verifying : php-gd-7.0.33-8.el7.remi.x86_64 26/29 Verifying : php-cli-7.0.33-8.el7.remi.x86_64 27/29 Verifying : php-devel-7.0.33-8.el7.remi.x86_64 28/29 Verifying : php-json-7.0.33-8.el7.remi.x86_64 29/29 Dependency Installed: libargon2.x86_64 0:20161029-3.el7 libargon2-devel.x86_64 0:20161029-3.el7 oniguruma5.x86_64 0:6.9.1-1.el7.remi Updated: php.x86_64 0:7.3.5-1.el7.remi php-cli.x86_64 0:7.3.5-1.el7.remi php-common.x86_64 0:7.3.5-1.el7.remi php-devel.x86_64 0:7.3.5-1.el7.remi php-fpm.x86_64 0:7.3.5-1.el7.remi php-gd.x86_64 0:7.3.5-1.el7.remi php-json.x86_64 0:7.3.5-1.el7.remi php-mbstring.x86_64 0:7.3.5-1.el7.remi php-mysqlnd.x86_64 0:7.3.5-1.el7.remi php-pdo.x86_64 0:7.3.5-1.el7.remi php-pecl-zip.x86_64 0:1.15.4-1.el7.remi.7.3 php-process.x86_64 0:7.3.5-1.el7.remi php-xml.x86_64 0:7.3.5-1.el7.remi Complete! |
バージョンの確認をしたらopcache.soとapcu.so関連のエラーが表示されました。
そう言えばphp-opcacheとphp-pecl-apcuを追加でインストールしてたな。
1 2 3 4 5 6 |
# php -v Failed loading /opt/remi/php70/root/usr/lib64/php/modules/opcache.so: /opt/remi/php70/root/usr/lib64/php/modules/opcache.so: undefined symbol: _zval_ptr_dtor PHP Warning: PHP Startup: Unable to load dynamic library '/opt/remi/php70/root/usr/lib64/php/modules/apcu.so' (tried: /opt/remi/php70/root/usr/lib64/php/modules/apcu.so (/opt/remi/php70/root/usr/lib64/php/modules/apcu.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules//opt/remi/php70/root/usr/lib64/php/modules/apcu.so.so (/usr/lib64/php/modules//opt/remi/php70/root/usr/lib64/php/modules/apcu.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP 7.3.5 (cli) (built: Apr 30 2019 08:37:17) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.5, Copyright (c) 1998-2018 Zend Technologies |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# yum install php73-php-opcache Loaded plugins: fastestmirror Resolving Dependencies --> Running transaction check ---> Package php73-php-opcache.x86_64 0:7.3.5-1.el7.remi will be installed --> Processing Dependency: php73-php-common(x86-64) = 7.3.5-1.el7.remi for package: php73-php-opcache-7.3.5-1.el7.remi.x86_64 --> Running transaction check ---> Package php73-php-common.x86_64 0:7.3.5-1.el7.remi will be installed --> Processing Dependency: php73-php-json(x86-64) = 7.3.5-1.el7.remi for package: php73-php-common-7.3.5-1.el7.remi.x86_64 --> Processing Dependency: php73-runtime for package: php73-php-common-7.3.5-1.el7.remi.x86_64 --> Running transaction check ---> Package php73-php-json.x86_64 0:7.3.5-1.el7.remi will be installed ---> Package php73-runtime.x86_64 0:2.0-1.el7.remi will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================== Installing: php73-php-opcache x86_64 7.3.5-1.el7.remi remi 241 k Installing for dependencies: php73-php-common x86_64 7.3.5-1.el7.remi remi 637 k php73-php-json x86_64 7.3.5-1.el7.remi remi 67 k php73-runtime x86_64 2.0-1.el7.remi remi 1.1 M Transaction Summary =================================================================================================================================== Install 1 Package (+3 Dependent packages) Total download size: 2.1 M Installed size: 6.9 M Is this ok [y/d/N]: y Downloading packages: (1/4): php73-php-json-7.3.5-1.el7.remi.x86_64.rpm | 67 kB 00:00:00 (2/4): php73-php-common-7.3.5-1.el7.remi.x86_64.rpm | 637 kB 00:00:00 (3/4): php73-php-opcache-7.3.5-1.el7.remi.x86_64.rpm | 241 kB 00:00:00 (4/4): php73-runtime-2.0-1.el7.remi.x86_64.rpm | 1.1 MB 00:00:00 ----------------------------------------------------------------------------------------------------------------------------------- Total 5.0 MB/s | 2.1 MB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : php73-runtime-2.0-1.el7.remi.x86_64 1/4 Installing : php73-php-json-7.3.5-1.el7.remi.x86_64 2/4 Installing : php73-php-common-7.3.5-1.el7.remi.x86_64 3/4 Installing : php73-php-opcache-7.3.5-1.el7.remi.x86_64 4/4 Verifying : php73-runtime-2.0-1.el7.remi.x86_64 1/4 Verifying : php73-php-json-7.3.5-1.el7.remi.x86_64 2/4 Verifying : php73-php-opcache-7.3.5-1.el7.remi.x86_64 3/4 Verifying : php73-php-common-7.3.5-1.el7.remi.x86_64 4/4 Installed: php73-php-opcache.x86_64 0:7.3.5-1.el7.remi Dependency Installed: php73-php-common.x86_64 0:7.3.5-1.el7.remi php73-php-json.x86_64 0:7.3.5-1.el7.remi php73-runtime.x86_64 0:2.0-1.el7.remi Complete! |
/etc/php.d/10-opcache.iniに記述されているzend_extension=を変更します。
1 2 3 |
; Enable Zend OPcache extension module ; zend_extension=/opt/remi/php70/root/usr/lib64/php/modules/opcache.so zend_extension=/opt/remi/php73/root/usr/lib64/php/modules/opcache.so |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# yum install php73-php-pecl-apcu Loaded plugins: fastestmirror Resolving Dependencies --> Running transaction check ---> Package php73-php-pecl-apcu.x86_64 0:5.1.17-1.el7.remi will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================== Installing: php73-php-pecl-apcu x86_64 5.1.17-1.el7.remi remi 69 k Transaction Summary =================================================================================================================================== Install 1 Package Total download size: 69 k Installed size: 180 k Is this ok [y/d/N]: y Downloading packages: php73-php-pecl-apcu-5.1.17-1.el7.remi.x86_64.rpm | 69 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : php73-php-pecl-apcu-5.1.17-1.el7.remi.x86_64 1/1 Verifying : php73-php-pecl-apcu-5.1.17-1.el7.remi.x86_64 1/1 Installed: php73-php-pecl-apcu.x86_64 0:5.1.17-1.el7.remi Complete! |
/etc/php.d/40-apcu.iniに記述されているextension=を変更します。
1 2 3 |
; Enable APCu extension module ;extension = /opt/remi/php70/root/usr/lib64/php/modules/apcu.so extension = /opt/remi/php73/root/usr/lib64/php/modules/apcu.so |
取り合えずエラーは無くなりました。
1 2 3 4 5 |
# php -v PHP 7.3.5 (cli) (built: Apr 30 2019 08:37:17) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.5, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.5, Copyright (c) 1999-2018, by Zend Technologies |
出力結果でエラーも無さそうです。
1 |
# php -r 'phpinfo();' |
1 |
# apachectl restart |
この後、WordpressプラグインのCrayon Syntax Highlighterがエラーで表示されなくなって焦りました。