Currently mod_php74 has:
It doesn't conflict with php80.
$ pkg info|grep php
mod_php74-7.4.24 PHP Scripting Language
mod_php80-8.0.11 PHP Scripting Language
php80-8.0.11 PHP Scripting Language
$ sudo service apache24 start
Performing sanity check on apache24 configuration:
Segmentation fault (core dumped)
/usr/local/etc/rc.d/apache24: WARNING: failed to start apache24
A commit in branch main references this bug:
Author: Torsten Zuehlsdorff <tz@FreeBSD.org>
AuthorDate: 2021-09-30 19:32:17 +0000
Commit: Torsten Zuehlsdorff <tz@FreeBSD.org>
CommitDate: 2021-09-30 19:36:22 +0000
lang/php7*: adjust CONFLICTS to new versions
PHP 7.3 conflicted with versions no longer in the ports-tree. Remove this conflicts.
PHP 7.3 and 7.4 did not conflict with PHP 8.0. Add the missing conflict.
Reported by: Einar Bjarni Halldórsson <firstname.lastname@example.org>
Sponsored by: Bounce Experts
lang/php73/Makefile | 2 +-
lang/php74/Makefile | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
I added the missing CONFLICTS to PHP 7.3 and 7.4. But it seems that you can install the mod_php* ports anyway, because they do not pull PHP itself in. Which is at least as intended when the port was created. Maybe we need additional CONFLICTS for the mod_php* ports here. But as far as i know it is fine to have multiple modules in parallel.
Currently www/mod_php80 is installed as libphp.so so presumably it would conflict with www/mod_php81 when that is created.