I'm running nginx 1.10.1 on OpenBSD 6.0 with the packages php-7.0.8p0, php-curl-7.0.8p0, php-fastcgi-7.0.8p0, php-gd-7.0.8p0, php-mcrypt-7.0.8p0, php-mysqli-7.0.8p0, mariadb-client-10.0.25v1 and mariadb-server-10.0.25p0v1.
I have several MediaWiki 1.27.1 installations, one pool for images and several language wikis accessing the pool. Each installation has its own virtual subdomain configured in nginx.
php70_fpm runs chrooted, /etc/php-fpm.conf looks like this:
chroot = /path/to/chroot/jail
listen = /path/to/chroot/jail/run/php-fpm.sock
/etc/nginx/nginx/sites-available/en.domain.com looks like this:
fastcgi_pass unix:run/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
/etc/my.cnf looks like this:
port = 1234
socket = /path/to/mysql.sock
bind-address = 127.0.0.1
skip-external-locking
#skip-networking
When I try to fetch image descriptions from pool.domain.com on en.domain.com, I'm getting a "Couldn't resolve host pool.domain.com" error.
As soon as I run php_fpm without chroot, file descriptions are fetched from the pool without any problem.
I don't want to copy stuff from /etc into /path/to/chroot/jail so what can I do? Are there some PHP 7 modules I could use? Do I have to play around with unbound?
Any help is more than welcome!
Thanks and cheers,
Till