#author("2023-02-20T08:53:22+09:00","default:kuji","kuji")
[[PHP 5.5 から PHP 5.6 へアップグレード]]

CONTENTS
CONTENTS 
#contents
----
Lastmodified &lastmod;
----
*phpBB3 3.3.10 [#cda0ab04]
https://www.phpbb.com/downloads/

*8.0から7.4 [#i79edca8]
 pkg set -o lang/php80:lang/php74   y
 pkg info \*php8\* > ~/installed-php-ports-list
 
 pkg remove '*php80*'      y
 portinstall lang/php74    ZTS
 
 cd /usr/ports/lang/php74-extensions && make config
 portinstall lang/php74-extensions
 portinstall mod_php74      ZTS 
 portinstall databases/phpmyadmin devel/pecl-APCu graphics/pecl-imagick --batch && apachectl restart


* mod_php80 [#p42a278b]
 ===>   NOTICE:
 ******************************************************************************
 
 If you are building PHP-based ports in poudriere(8) or Synth with ZTS enabled,
 add WITH_MPM=event to /etc/make.conf to prevent build failures.
 
 ******************************************************************************

This port is deprecated; you may wish to reconsider installing it:


*7.4から8.0 [#vb55436a]

 pkg set -o lang/php74:lang/php80   y
 # pkg info \*php7\* > ~/installed-php-ports-list

 pkg remove '*php74*'      y
 portinstall lang/php80    ZTS
 cd /usr/ports/lang/php80-extensions
 make config
 make install clean
 portinstall mod_php80      ZTS
 portinstall databases/phpmyadmin
  Nextcloud 稼働サーバだとこれも↓念為
 portinstall devel/pecl-APCu
 portinstall graphics/pecl-imagick
 
 apachectrl restart

----


 pkg set -o lang/php74:lang/php80   y
 pkg info \*php7\* > ~/installed-php-ports-list
 
 pkg remove '*php74*'      y
 portinstall lang/php80    ZTS
 
 cd /usr/ports/lang/php80-extensions && make config
 portinstall lang/php80-extensions --batch
 portinstall mod_php80      ZTS 
 portinstall databases/phpmyadmin devel/pecl-APCu graphics/pecl-imagick --batch && apachectl restart


* 20220125: [#e01919f9]
** 影響:lang / php74のユーザー  著者:tz@FreeBSD.org [#zeb7bea0]

 PHPのデフォルトバージョンが7.4から8.0に切り替えられました。
 
 バイナリパッケージを使用する場合は、phpパッケージのリストを作成する必要があります
 'pkg upgrade'を実行する前:
 
 #pkg info \*php7\* > ~/installed-php-ports-list
 
 アップグレード後、すべてのphp拡張機能があるかどうかをそのようなリストで確認してください
 まだインストールされており、必要に応じて再インストールします。
 
 mod_php74を使用する場合は、それをアンインストールしてmod_php80をインストールする必要があります。


 # pkg set -o lang/php74:lang/php73
 
 or
 
 # pkg set -o lang/php80:lang/php73

 # pkg info \*php7\* > ~/installed-php-ports-list

 mod_php73-7.3.33
 php73-7.3.33
 php73-bcmath-7.3.33
 php73-bz2-7.3.33
 php73-calendar-7.3.33
 php73-ctype-7.3.33
 php73-curl-7.3.33
 php73-dba-7.3.33
 php73-dom-7.3.33
 php73-enchant-7.3.33
 php73-exif-7.3.33
 php73-extensions-1.0
 php73-fileinfo-7.3.33
 php73-filter-7.3.33
 php73-ftp-7.3.33
 php73-gd-7.3.33
 php73-gettext-7.3.33
 php73-gmp-7.3.33
 php73-hash-7.3.33
 php73-iconv-7.3.33
 php73-imap-7.3.33
 php73-interbase-7.3.33
 php73-intl-7.3.33
 php73-json-7.3.33
 php73-ldap-7.3.33
 php73-mbstring-7.3.33
 php73-mysqli-7.3.33
 php73-odbc-7.3.33
 php73-opcache-7.3.33
 php73-openssl-7.3.33
 php73-pcntl-7.3.33
 php73-pdo-7.3.33
 php73-pdo_dblib-7.3.33
 php73-pdo_firebird-7.3.33
 php73-pdo_mysql-7.3.33
 php73-pdo_odbc-7.3.33
 php73-pdo_pgsql-7.3.33
 php73-pdo_sqlite-7.3.33
 php73-pecl-APCu-5.1.21
 php73-pecl-imagick-3.5.1
 php73-pecl-pdflib-4.1.4_1
 php73-pgsql-7.3.33
 php73-phar-7.3.33
 php73-posix-7.3.33
 php73-pspell-7.3.33
 php73-readline-7.3.33
 php73-recode-7.3.33
 php73-session-7.3.33
 php73-shmop-7.3.33
 php73-simplexml-7.3.33
 php73-snmp-7.3.33
 php73-sockets-7.3.33
 php73-sodium-7.3.33
 php73-sqlite3-7.3.33
 php73-sysvmsg-7.3.33
 php73-sysvsem-7.3.33
 php73-sysvshm-7.3.33
 php73-tidy-7.3.33
 php73-tokenizer-7.3.33
 php73-wddx-7.3.33
 php73-xml-7.3.33
 php73-xmlreader-7.3.33
 php73-xmlrpc-7.3.33
 php73-xmlwriter-7.3.33
 php73-xsl-7.3.33
 php73-zip-7.3.33
 php73-zlib-7.3.33
 phpMyAdmin-php73-4.9.7

 pkg remove '*php73*'
 portinstall lang/php74    ZTS
 cd /usr/ports/lang/php74-extensions
 make config
 make install clean
 portinstall mod_php74      ZTS
 portinstall databases/phpmyadmin
  Nextcloud 稼働サーバだとこれも↓念為
 portinstall devel/pecl-APCu

 apachectrl restart



* php71 to 72 with Nextcloud [#jd4b2228]

 pkg set -o lang/php71:lang/php72
 pkg info | fgrep php71 > /tmp/php.txt

で、一応、ファイル群のインストールリストを作成

 pkg remove '*php71*'

で、

 pkg install `sed -e 's/-7.1.*$//' -e 's/php71/php72/' -e 's/extensions.*/extensions/' /tmp/php.txt `

するも、インストールされない。ので、

 portinstall lang/php72
 cd /usr/ports/lang/php72-extensions
 make config

で、オプション確認して、インストール

後  /usr/ports/security/mcrypt mod_pnp72, databases/phpmyadmin 
 portinstall graphics/pecl-imagick


などもインストール


 apachectrl restart


http://freebsd.sing.ne.jp/daily/12/06/02.html

 /usr/bin/su -m www -c "php /usr/local/www/nextcloud/occ upgrade

とかすると、以下の様なエラーログがでる。

 PHP Deprecated:  Directive 'track_errors' is deprecated in Unknown on line 0
 
 Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0
 Nextcloud is already latest version
 {"reqId":"6zvbYeW8vdGzBg7azPV7","level":3,"time":"2019-11-02T02:46:16+00:00",
 "remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Directive 'track_errors' is 
 deprecated at Unknown#0","userAgent":"--","version":"16.0.5.1"}

と言うエラーがでる。

対処法は、

/usr/local/etc/php.ini

 track_errors = On

 ;track_errors = On



----


Nextcloud のバージョンアップ版がでていたので、portupgrade -r --batch したら、こんなメッセージ。
 
 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.x へアップグレード [#i5f23774]

 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/

Portsには上記のバージョンがサポートされていて、72だと、Nextcloudがエラーする。具体的には、ログイン画面は出るが、ログインするとそこでエラーとなる。
で、7.2から7.0でダウングレード?した。

[[PHP 5.5 から PHP 5.6 へアップグレード]] を参考にして、56を72にしたが、72から70へは、簡単に php72 php72-extensions でuninstall して、

 pkg set -o lang/php72:lang/php70

の後、残骸のモジュールを

 pkg remove '*php72*'  ← コレすると、NextcloudもPhpMyAdminも消えるw

してから、portinstall した。


取り敢えず、Nextcloudは動いた。



----
*以下はゴミ [#e8a1383a]
* php56 to 71 [#i96a2f59]

** cp -r /usr/local/etc/php /usr/local/etc/php-5 [#f4c23c99]
** cp /usr/local/etc/php.conf /usr/local/etc/php.conf-5 [#q73da2a1]
** pkg set -o lang/php56:lang/php72 [#qfaea078]
** pkg remove '*php56*' [#l8377851]

 Change origin from lang/php56 to lang/php72 for php56-5.6.37? [y/N]: y
php56版のNextcloudとPhpMyAdminも消えるょ

**  pkg info | fgrep php56 > /root/php56.txt [#x435a6dd]
** pkg set -o lang/php56:lang/php71 [#ec19cc91]

 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):
y

 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
** portinstall lang/php71 [#p3992a79]

 Number of packages to be removed: 71
for worker

 The operation will free 227 MiB.
&ref(php71_for_worker.PNG);

 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 #
check ZTS

 [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


** mod_php71 もお忘れ無く [#k7c6f08e]
**  cd /usr/ports/lang/php71-extensions/ [#a253823f]
*** make config [#ce0b7277]
** portinstall lang/php71-extensions --batch [#u173f376]
** portinstall databases/phpmyadmin [#ha45902c]


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

* phpBB3 on php71 [#m1f9d0ad]

 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
https://www.phpbb.com/community/viewtopic.php?t=2399941&p=14636006

mysql-driverは長い間廃止されており(php 5.4以降)、php 7.0で削除されているため、mysqli-driverを使う必要があります。config.phpを

 pkg: No packages available to install matching 'php72-mcrypt' have been found in the repositories
 // phpBB 3.2.x auto-generated configuration file
 // Do not change anything in this file!
 $dbms = 'phpbb\\db\\driver\\mysql';

 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
 $dbms = 'phpbb\\db\\driver\\mysqli';

 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 ` [#a34c06f4]
 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]:
* OpenPNE3 [#p1f14f1e]

OpenPNE 3.9.2 on PHP7.1 www2.smb.net OK




 [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
*Wordpress 真っ白 [#kb65b116]
プラグイン「StatPress Reloaded」がFetal error 

Elegant theme では、Warning: Illegal string offset in がでる。
https://wp-doctor.jp/blog/2016/03/10/wordpress-%E3%83%AF%E3%83%BC%E3%83%89%E3%83%97%E3%83%AC%E3%82%B9%E3%81%AE%E3%82%A8%E3%83%A9%E3%83%BC%E8%A7%A3%E8%AA%AC%EF%BC%9Awarning-illegal-string-offset-in/

/usr/local/www/data/wordpress/wp-config.php に下記追加で、エラー表示抑制した

 ini_set('display_errors','Off');
 ini_set('error_reporting', 0 );
 define('WP_DEBUG', false);
 define('WP_DEBUG_DISPLAY', false);






----
Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);


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