git: 05f1b494b239 - main - lang/php8[01]: Update UPDATING

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Thu, 17 Feb 2022 22:39:20 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=05f1b494b23906b0693af71f7b1a0b13b0df104b

commit 05f1b494b23906b0693af71f7b1a0b13b0df104b
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2022-02-17 22:35:29 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-02-17 22:35:29 +0000

    lang/php8[01]: Update UPDATING
    
    There are some cases at least when using ports/portmaster php8[01]
    reinstalltion do not properly overwrite php.conf file omitting openssl
    as a default module. Additionally if we are using pkg then
    php8[01]-openssl needs to be manually removed otherwise both the old
    module and builtin module tried to be loaded while restarting php-fpm
    service.
    
    This note defines these cases in UPDATING.
    
    Reported by:    dim
    Sponsored by:   Bounce Experts
---
 UPDATING | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/UPDATING b/UPDATING
index 3b39b777636c..6537ee19d194 100644
--- a/UPDATING
+++ b/UPDATING
@@ -17,6 +17,23 @@ you update your ports collection, before attempting any port upgrades.
   USE_PHP=openssl. In case for php74 as the default php74-openssl will
   be installed otherwise it will be used from php installation.
 
+  If you are using pkg, you have to remove php8[01]-openssl manually after
+  the upgrade :
+
+  # pkg info \*php8\* > ~/installed-php-ports-list
+
+  # pkg upgrade -y
+  # pkg delete -f php8[01]-openssl
+  # service -R
+
+  While rebuilding from ports users old php.conf is not overwritten. So 
+  have to manually remove the ports. For portmaster users:
+  # sh
+  # REINSTALL="$(pkg info -o "*php80*" | grep -v openssl | awk '{printf "%s ", $2}')"
+  # pkg delete -f "*php80*"
+  # portmaster $REINSTALL
+  # portmaster -a
+
 20220207:
   AFFECTS: users of security/amavisd-new
   AUTHOR: flo@FreeBSD.org