diff --git a/srcpkgs/php8.3/files/apache.conf b/srcpkgs/php8.3/files/apache.conf index e22ea2014a1..bc57ba73dbc 100644 --- a/srcpkgs/php8.3/files/apache.conf +++ b/srcpkgs/php8.3/files/apache.conf @@ -1,7 +1,7 @@ -# Required modules: dir_module, php8.3_module +# Required modules: dir_module, php_module - + DirectoryIndex index.php index.html SetHandler application/x-httpd-php diff --git a/srcpkgs/php8.3/template b/srcpkgs/php8.3/template index 0014a4c3dce..07fdc87bbe1 100644 --- a/srcpkgs/php8.3/template +++ b/srcpkgs/php8.3/template @@ -1,7 +1,7 @@ # Template file for 'php8.3' pkgname=php8.3 version=8.3.0 -revision=2 +revision=3 _php_version=8.3 hostmakedepends="bison pkg-config apache-devel" makedepends="apache-devel enchant2-devel freetds-devel freetype-devel gdbm-devel @@ -200,6 +200,9 @@ php8.3-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"