php: sync with apache; and serve from /srv/www by default.

This commit is contained in:
Juan RP 2016-05-01 09:15:58 +02:00
parent 09d9e87da8
commit 51b97e6ace
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@
; or per-virtualhost web server configuration file.
; http://php.net/open-basedir
-;open_basedir =
+open_basedir = /srv/http/:/srv/httpd/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/
+open_basedir = /srv/www/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/
; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names.

View File

@ -1,7 +1,7 @@
# Template build file for 'php'
pkgname=php
version=7.0.6
revision=1
revision=2
short_desc="An HTML-embedded scripting language"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="PHP"
@ -164,10 +164,10 @@ php-cgi_package() {
php-apache_package() {
short_desc+=' - Apache SAPI'
depends="php-${version}_${revision}"
conf_files="/etc/httpd/extra/php7_module.conf"
conf_files="/etc/apache/extra/php7_module.conf"
pkg_install() {
vinstall ${wrksrc}/build-apache/libs/libphp7.so 755 usr/libexec/httpd/modules
vinstall ${FILESDIR}/apache.conf 644 etc/httpd/extra php7_module.conf
vinstall ${FILESDIR}/apache.conf 644 etc/apache/extra php7_module.conf
}
}