php8.3: for apache config
This commit is contained in:
parent
30cd82dcfa
commit
05d6f096e9
|
@ -1,7 +1,7 @@
|
|||
# Required modules: dir_module, php8.3_module
|
||||
# Required modules: dir_module, php_module
|
||||
|
||||
<IfModule dir_module>
|
||||
<IfModule php8.3_module>
|
||||
<IfModule php_module>
|
||||
DirectoryIndex index.php index.html
|
||||
<FilesMatch "\.php$">
|
||||
SetHandler application/x-httpd-php
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue