PHP 5.5 から PHP 5.6 へアップグレード

CONTENTS


Lastmodified 2023-02-20 (月) 08:53:22


This version of Nextcloud requires at least PHP 7.0
You are currently running 5.6.37. Please update your PHP version.
root@sun1:~:18_09_12:5:17 #

PHP 5.6 から PHP 7.1 へアップグレード

drwxr-xr-x  3 root  wheel   512 Sep 29  2016 php55/
drwxr-xr-x  2 root  wheel   512 Sep 29  2016 php55-extensions/
drwxr-xr-x  3 root  wheel   512 Aug 17 10:03 php56/
drwxr-xr-x  2 root  wheel   512 Feb  1  2018 php56-extensions/
drwxr-xr-x  3 root  wheel   512 Aug  4 03:20 php70/
drwxr-xr-x  2 root  wheel   512 May 15 05:48 php70-extensions/
drwxr-xr-x  3 root  wheel   512 Aug 20 15:53 php71/
drwxr-xr-x  2 root  wheel   512 Jan 29  2017 php71-extensions/
drwxr-xr-x  3 root  wheel   512 Aug 20 15:53 php72/
drwxr-xr-x  2 root  wheel   512 Feb  1  2018 php72-extensions/

cp -r /usr/local/etc/php /usr/local/etc/php-5

cp /usr/local/etc/php.conf /usr/local/etc/php.conf-5

pkg set -o lang/php56:lang/php72

Change origin from lang/php56 to lang/php72 for php56-5.6.37? [y/N]: y

pkg info | fgrep php56 > /root/php56.txt

pkg remove '*php56*'

Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 71 packages (of 0 packages in the universe):
Installed packages to be REMOVED:
        mod_php56-5.6.37
        nextcloud-php56-14.0.0
        php56-5.6.37
        php56-bcmath-5.6.37
        php56-bz2-5.6.37
        php56-calendar-5.6.37
        php56-ctype-5.6.37
        php56-curl-5.6.37
        php56-dba-5.6.37
        php56-dom-5.6.37
        php56-enchant-5.6.37
        php56-exif-5.6.37
        php56-fileinfo-5.6.37
        php56-filter-5.6.37
        php56-ftp-5.6.37
        php56-gd-5.6.37
        php56-gettext-5.6.37
        php56-gmp-5.6.37
        php56-hash-5.6.37
        php56-iconv-5.6.37
        php56-imap-5.6.37
        php56-interbase-5.6.37_1
        php56-json-5.6.37
        php56-ldap-5.6.37
        php56-mbstring-5.6.37
        php56-mcrypt-5.6.37
        php56-mssql-5.6.37
        php56-mysql-5.6.37
        php56-mysqli-5.6.37
        php56-odbc-5.6.37
        php56-opcache-5.6.37
        php56-openssl-5.6.37
        php56-pcntl-5.6.37
        php56-pdo-5.6.37
        php56-pdo_dblib-5.6.37
        php56-pdo_firebird-5.6.37_1
        php56-pdo_mysql-5.6.37
        php56-pdo_odbc-5.6.37
        php56-pdo_pgsql-5.6.37
        php56-pdo_sqlite-5.6.37
        php56-pecl-pdflib-4.1.2
        php56-pecl-redis-4.1.0
        php56-pecl-smbclient-0.9.0_4
        php56-pgsql-5.6.37
        php56-phar-5.6.37
        php56-posix-5.6.37
        php56-pspell-5.6.37
        php56-readline-5.6.37
        php56-session-5.6.37
        php56-shmop-5.6.37
        php56-simplexml-5.6.37
        php56-snmp-5.6.37
        php56-soap-5.6.37
        php56-sockets-5.6.37
        php56-sqlite3-5.6.37
        php56-sysvmsg-5.6.37
        php56-sysvsem-5.6.37
        php56-sysvshm-5.6.37
        php56-tidy-5.6.37
        php56-tokenizer-5.6.37
        php56-wddx-5.6.37
        php56-xml-5.6.37
        php56-xmlreader-5.6.37
        php56-xmlrpc-5.6.37
        php56-xmlwriter-5.6.37
        php56-xsl-5.6.37
        php56-zip-5.6.37
        php56-zlib-5.6.37
        phpMyAdmin-php56-4.8.3
        pecl-memcache-3.0.8_1
        pecl-APCu4-4.0.11_1
Number of packages to be removed: 71
The operation will free 227 MiB.
Proceed with deinstalling packages? [y/N]: y
[1/71] Deinstalling nextcloud-php56-14.0.0...
[1/71] Deleting files for nextcloud-php56-14.0.0: 100%
[2/71] Deinstalling phpMyAdmin-php56-4.8.3...
You may need to manually remove /usr/local/www/phpMyAdmin/config.inc.php if it is no longer needed.
[2/71] Deleting files for phpMyAdmin-php56-4.8.3: 100%
[3/71] Deinstalling php56-pdo_dblib-5.6.37...
[3/71] Deleting files for php56-pdo_dblib-5.6.37: 100%
[4/71] Deinstalling php56-pdo_firebird-5.6.37_1...
[4/71] Deleting files for php56-pdo_firebird-5.6.37_1: 100%
[5/71] Deinstalling php56-pdo_mysql-5.6.37...
[5/71] Deleting files for php56-pdo_mysql-5.6.37: 100%
[6/71] Deinstalling php56-pdo_odbc-5.6.37...
[6/71] Deleting files for php56-pdo_odbc-5.6.37: 100%
[7/71] Deinstalling php56-pdo_pgsql-5.6.37...
[7/71] Deleting files for php56-pdo_pgsql-5.6.37: 100%
[8/71] Deinstalling php56-pdo_sqlite-5.6.37...
[8/71] Deleting files for php56-pdo_sqlite-5.6.37: 100%
[9/71] Deinstalling php56-pecl-pdflib-4.1.2...
[9/71] Deleting files for php56-pecl-pdflib-4.1.2: 100%
[10/71] Deinstalling php56-pecl-redis-4.1.0...
[10/71] Deleting files for php56-pecl-redis-4.1.0: 100%
[11/71] Deinstalling php56-phar-5.6.37...
[11/71] Deleting files for php56-phar-5.6.37: 100%
[12/71] Deinstalling php56-wddx-5.6.37...
[12/71] Deleting files for php56-wddx-5.6.37: 100%
[13/71] Deinstalling php56-xmlreader-5.6.37...
[13/71] Deleting files for php56-xmlreader-5.6.37: 100%
[14/71] Deinstalling php56-xmlrpc-5.6.37...
[14/71] Deleting files for php56-xmlrpc-5.6.37: 100%
[15/71] Deinstalling php56-xsl-5.6.37...
[15/71] Deleting files for php56-xsl-5.6.37: 100%
[16/71] Deinstalling pecl-memcache-3.0.8_1...
[16/71] Deleting files for pecl-memcache-3.0.8_1: 100%
[17/71] Deinstalling php56-bcmath-5.6.37...
[17/71] Deleting files for php56-bcmath-5.6.37: 100%
[18/71] Deinstalling php56-bz2-5.6.37...
[18/71] Deleting files for php56-bz2-5.6.37: 100%
[19/71] Deinstalling php56-calendar-5.6.37...
[19/71] Deleting files for php56-calendar-5.6.37: 100%
[20/71] Deinstalling php56-ctype-5.6.37...
[20/71] Deleting files for php56-ctype-5.6.37: 100%
[21/71] Deinstalling php56-curl-5.6.37...
[21/71] Deleting files for php56-curl-5.6.37: 100%
[22/71] Deinstalling php56-dba-5.6.37...
[22/71] Deleting files for php56-dba-5.6.37: 100%
[23/71] Deinstalling php56-dom-5.6.37...
[23/71] Deleting files for php56-dom-5.6.37: 100%
[24/71] Deinstalling php56-enchant-5.6.37...
[24/71] Deleting files for php56-enchant-5.6.37: 100%
[25/71] Deinstalling php56-exif-5.6.37...
[25/71] Deleting files for php56-exif-5.6.37: 100%
[26/71] Deinstalling php56-fileinfo-5.6.37...
[26/71] Deleting files for php56-fileinfo-5.6.37: 100%
[27/71] Deinstalling php56-filter-5.6.37...
[27/71] Deleting files for php56-filter-5.6.37: 100%
[28/71] Deinstalling php56-ftp-5.6.37...
[28/71] Deleting files for php56-ftp-5.6.37: 100%
[29/71] Deinstalling php56-gd-5.6.37...
[29/71] Deleting files for php56-gd-5.6.37: 100%
[30/71] Deinstalling php56-gettext-5.6.37...
[30/71] Deleting files for php56-gettext-5.6.37: 100%
[31/71] Deinstalling php56-gmp-5.6.37...
[31/71] Deleting files for php56-gmp-5.6.37: 100%
[32/71] Deinstalling php56-hash-5.6.37...
[32/71] Deleting files for php56-hash-5.6.37: 100%
[33/71] Deinstalling php56-iconv-5.6.37...
[33/71] Deleting files for php56-iconv-5.6.37: 100%
[34/71] Deinstalling php56-imap-5.6.37...
[34/71] Deleting files for php56-imap-5.6.37: 100%
[35/71] Deinstalling php56-interbase-5.6.37_1...
[35/71] Deleting files for php56-interbase-5.6.37_1: 100%
[36/71] Deinstalling php56-json-5.6.37...
[36/71] Deleting files for php56-json-5.6.37: 100%
[37/71] Deinstalling php56-ldap-5.6.37...
[37/71] Deleting files for php56-ldap-5.6.37: 100%
[38/71] Deinstalling php56-mbstring-5.6.37...
[38/71] Deleting files for php56-mbstring-5.6.37: 100%
[39/71] Deinstalling php56-mcrypt-5.6.37...
[39/71] Deleting files for php56-mcrypt-5.6.37: 100%
[40/71] Deinstalling php56-mssql-5.6.37...
[40/71] Deleting files for php56-mssql-5.6.37: 100%
[41/71] Deinstalling php56-mysql-5.6.37...
[41/71] Deleting files for php56-mysql-5.6.37: 100%
[42/71] Deinstalling php56-mysqli-5.6.37...
[42/71] Deleting files for php56-mysqli-5.6.37: 100%
[43/71] Deinstalling php56-odbc-5.6.37...
[43/71] Deleting files for php56-odbc-5.6.37: 100%
[44/71] Deinstalling php56-opcache-5.6.37...
[44/71] Deleting files for php56-opcache-5.6.37: 100%
[45/71] Deinstalling php56-openssl-5.6.37...
[45/71] Deleting files for php56-openssl-5.6.37: 100%
[46/71] Deinstalling php56-pcntl-5.6.37...
[46/71] Deleting files for php56-pcntl-5.6.37: 100%
[47/71] Deinstalling php56-pdo-5.6.37...
[47/71] Deleting files for php56-pdo-5.6.37: 100%
[48/71] Deinstalling php56-pecl-smbclient-0.9.0_4...
[48/71] Deleting files for php56-pecl-smbclient-0.9.0_4: 100%
[49/71] Deinstalling php56-pgsql-5.6.37...
[49/71] Deleting files for php56-pgsql-5.6.37: 100%
[50/71] Deinstalling php56-posix-5.6.37...
[50/71] Deleting files for php56-posix-5.6.37: 100%
[51/71] Deinstalling php56-pspell-5.6.37...
[51/71] Deleting files for php56-pspell-5.6.37: 100%
[52/71] Deinstalling php56-readline-5.6.37...
[52/71] Deleting files for php56-readline-5.6.37: 100%
[53/71] Deinstalling php56-session-5.6.37...
[53/71] Deleting files for php56-session-5.6.37: 100%
[54/71] Deinstalling php56-shmop-5.6.37...
[54/71] Deleting files for php56-shmop-5.6.37: 100%
[55/71] Deinstalling php56-simplexml-5.6.37...
[55/71] Deleting files for php56-simplexml-5.6.37: 100%
[56/71] Deinstalling php56-snmp-5.6.37...
[56/71] Deleting files for php56-snmp-5.6.37: 100%
[57/71] Deinstalling php56-soap-5.6.37...
[57/71] Deleting files for php56-soap-5.6.37: 100%
[58/71] Deinstalling php56-sockets-5.6.37...
[58/71] Deleting files for php56-sockets-5.6.37: 100%
[59/71] Deinstalling php56-sqlite3-5.6.37...
[59/71] Deleting files for php56-sqlite3-5.6.37: 100%
[60/71] Deinstalling php56-sysvmsg-5.6.37...
[60/71] Deleting files for php56-sysvmsg-5.6.37: 100%
[61/71] Deinstalling php56-sysvsem-5.6.37...
[61/71] Deleting files for php56-sysvsem-5.6.37: 100%
[62/71] Deinstalling php56-sysvshm-5.6.37...
[62/71] Deleting files for php56-sysvshm-5.6.37: 100%
[63/71] Deinstalling php56-tidy-5.6.37...
[63/71] Deleting files for php56-tidy-5.6.37: 100%
[64/71] Deinstalling php56-tokenizer-5.6.37...
[64/71] Deleting files for php56-tokenizer-5.6.37: 100%
[65/71] Deinstalling php56-xml-5.6.37...
[65/71] Deleting files for php56-xml-5.6.37: 100%
[66/71] Deinstalling php56-xmlwriter-5.6.37...
[66/71] Deleting files for php56-xmlwriter-5.6.37: 100%
[67/71] Deinstalling php56-zip-5.6.37...
[67/71] Deleting files for php56-zip-5.6.37: 100%
[68/71] Deinstalling php56-zlib-5.6.37...
[68/71] Deleting files for php56-zlib-5.6.37: 100%
[69/71] Deinstalling pecl-APCu4-4.0.11_1...
[69/71] Deleting files for pecl-APCu4-4.0.11_1:   0%
pecl-APCu4-4.0.11_1: missing file /usr/local/etc/php/ext-20-apcu.ini
[69/71] Deleting files for pecl-APCu4-4.0.11_1: 100%
[70/71] Deinstalling mod_php56-5.6.37...
[preparing module `php5' in /usr/local/etc/apache24/httpd.conf]
[70/71] Deleting files for mod_php56-5.6.37: 100%
[71/71] Deinstalling php56-5.6.37...
You may need to manually remove /usr/local/etc/php-fpm.conf if it is no longer needed.
[71/71] Deleting files for php56-5.6.37: 100%
root@sun1:/usr/ports/lang:18_09_12:5:53 #
pkg install `sed -e 's/-5.6.*$//' -e 's/php56/php72/' -e 's/extensions.*/extensions/' /root/php56.txt ` 
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
Fetching meta.txz: 100%    944 B   0.9kB/s    00:01
Fetching packagesite.txz: 100%    6 MiB   6.6MB/s    00:01
Processing entries: 100%
FreeBSD repository update completed. 32196 packages processed.
All repositories are up to date.
pkg: No packages available to install matching 'nextcloud-php72-14.0.0' have been found in the repositories
pkg: No packages available to install matching 'php72-mcrypt' have been found in the repositories
pkg: No packages available to install matching 'php72-mssql' have been found in the repositories
pkg: No packages available to install matching 'PECL' have been found in the repositories
pkg: No packages available to install matching 'Set' have been found in the repositories

# pkg install `sed -e 's/-5.6.*$//' -e 's/php56/php72/' -e 's/extensions.*/extensions/' /root/php56.txt `

Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 65 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
       mod_php72: 7.2.8
       php72: 7.2.8
       php72-bcmath: 7.2.8
       php72-bz2: 7.2.8
       php72-calendar: 7.2.8
       php72-ctype: 7.2.8
       php72-curl: 7.2.8
       php72-dba: 7.2.8
       php72-dom: 7.2.8
       php72-enchant: 7.2.8
       php72-exif: 7.2.8
       php72-fileinfo: 7.2.8
       php72-filter: 7.2.8
       php72-ftp: 7.2.8
       php72-gd: 7.2.8
       php72-gettext: 7.2.8
       php72-gmp: 7.2.8
       php72-hash: 7.2.8
       php72-iconv: 7.2.8
       php72-imap: 7.2.8
       php72-interbase: 7.2.8
       php72-json: 7.2.8
       php72-ldap: 7.2.8
       php72-mbstring: 7.2.8
       php72-mysqli: 7.2.8
       php72-odbc: 7.2.8
       php72-opcache: 7.2.8
       php72-openssl: 7.2.8
       php72-pcntl: 7.2.8
       php72-pdo: 7.2.8
       php72-pdo_dblib: 7.2.8
       php72-pdo_firebird: 7.2.8
       php72-pdo_mysql: 7.2.8
       php72-pdo_odbc: 7.2.8
       php72-pdo_pgsql: 7.2.8
       php72-pdo_sqlite: 7.2.8
       php72-pgsql: 7.2.8
       php72-phar: 7.2.8
       php72-posix: 7.2.8
       php72-pspell: 7.2.8
       php72-readline: 7.2.8
       php72-session: 7.2.8
       php72-shmop: 7.2.8
       php72-simplexml: 7.2.8
       php72-snmp: 7.2.8
       php72-soap: 7.2.8
       php72-sockets: 7.2.8
       php72-sqlite3: 7.2.8
       php72-sysvmsg: 7.2.8
       php72-sysvsem: 7.2.8
       php72-sysvshm: 7.2.8
       php72-tidy: 7.2.8
       php72-tokenizer: 7.2.8
       php72-wddx: 7.2.8
       php72-xml: 7.2.8
       php72-xmlreader: 7.2.8
       php72-xmlrpc: 7.2.8
       php72-xmlwriter: 7.2.8
       php72-xsl: 7.2.8
       php72-zip: 7.2.8
       php72-zlib: 7.2.8
       ruby23: 2.3.7,1
       postgresql95-client: 9.5.13
       libargon2: 20171227
       oniguruma: 6.8.1

Number of packages to be installed: 65 

The process will require 96 MiB more space.
18 MiB to be downloaded.

Proceed with this action? [y/N]:
[Wed Sep 12 06:28:52.197731 2018] [php7:crit] [pid 2077:tid 34397577216] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.  You need to recompile PHP.
AH00013: Pre-configuration failed

Total access 3396:本日 1:昨日 1

Counter: 3396, today: 1, yesterday: 1

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS