diff --git a/srcpkgs/php8.2/files/apache.conf b/srcpkgs/php8.2/files/apache.conf index 1c5e4e4e58c..bc57ba73dbc 100644 --- a/srcpkgs/php8.2/files/apache.conf +++ b/srcpkgs/php8.2/files/apache.conf @@ -1,7 +1,7 @@ -# Required modules: dir_module, php8.2_module +# Required modules: dir_module, php_module - + DirectoryIndex index.php index.html SetHandler application/x-httpd-php diff --git a/srcpkgs/php8.2/template b/srcpkgs/php8.2/template index 913d7f0f7e0..a997219becf 100644 --- a/srcpkgs/php8.2/template +++ b/srcpkgs/php8.2/template @@ -1,7 +1,7 @@ # Template file for 'php8.2' pkgname=php8.2 version=8.2.13 -revision=2 +revision=3 _php_version=8.2 hostmakedepends="bison pkg-config apache-devel" makedepends="apache-devel enchant2-devel freetds-devel freetype-devel gdbm-devel @@ -200,6 +200,9 @@ php8.2-apache_package() { short_desc+=' - Apache SAPI' depends="php${_php_version}>=${version}_${revision}" conf_files="/etc/apache/extra/php${_php_version}_module.conf" + alternatives=" + php-apache:libphp.so:/usr/libexec/httpd/modules/libphp${_php_version}.so + php-apache:php_module.conf:/etc/apache/extra/php${_php_version}_module.conf" pkg_install() { vinstall ${wrksrc}/build-apache/libs/libphp.so 755 usr/libexec/httpd/modules "libphp${_php_version}.so" vinstall ${FILESDIR}/apache.conf 644 etc/apache/extra "php${_php_version}_module.conf"