lang/php: mention /etc/resolv.conf in the information about files that

users might need to copy into /var/www chroot.
This commit is contained in:
sthen 2022-09-07 09:57:01 +00:00
parent f7c6282997
commit 29caa7ccca
4 changed files with 14 additions and 5 deletions

View File

@ -1,6 +1,7 @@
PORTROACH= limit:^7\.4
PHP_VERSION= 7.4.30
PHP_PKGSPEC= <7.5
REVISION-main= 0
DEBUG_PACKAGES= ${BUILD_PACKAGES}

View File

@ -1,6 +1,7 @@
PORTROACH= limit:^8\.0
PHP_VERSION= 8.0.23
PHP_PKGSPEC= >=8.0,<8.1
REVISION-main= 0
DEFAULT_PHP= Yes

View File

@ -2,6 +2,7 @@ BROKEN-sparc64= No fibers support for sparc64
PHP_VERSION= 8.1.10
PHP_PKGSPEC= >=8.1,<8.2
REVISION-main= 0
DEBUG_PACKAGES= ${BUILD_PACKAGES}

View File

@ -143,18 +143,24 @@ Socket paths for MariaDB
------------------------
See mariadb's pkg-readme file for information.
PHP's OpenSSL functions
-----------------------
Functions for making TLS connections usually need access to CA certificates,
and key generation functions may need access to configuration files.
Making network connections
--------------------------
To resolve DNS host names, you will need to copy /etc/resolv.conf
into the ${CHROOT_DIR} chroot jail. To make TLS connections, you'll also
need /etc/ssl/cert.pem for CA certificates.
Additionally, if your scripts use PHP's key generation functions they
may need access to /etc/ssl/openssl.cnf.
To use these, copy the relevant files into the /var/www jail:
# mkdir -p ${CHROOT_DIR}/etc/ssl
# install -m 444 -o root -g bin /etc/resolv.conf ${CHROOT_DIR}/etc/
# install -m 444 -o root -g bin /etc/ssl/cert.pem /etc/ssl/openssl.cnf \
${CHROOT_DIR}/etc/ssl/
As these files are updated from time to time, you might like to add
the above "install" line to /etc/rc.local.
the above "install" lines to /etc/rc.local.
Executing other commands
------------------------