I am trying to setup a site inside of a PHP-FPM chroot. My paths are as follows:
chroot = /var/www/ chdir = www/
The chroot works just fine without chdir. But when I add chdir I get this error on php-fpm startup:
ERROR: [pool www] the chdir path '/usr/www/' within the chroot path '/var/www/' ('/var/www///usr/www/') does not exist or is not a directory
Anybody know why it would append
/usr/ to the chdir path? Is there a way to remove it from that path?
Also, if I change the chdir path to
/www/, I have to browse to
http://localhost/www/filename.php to see my file. Isn't the point of chdir to make that unnecessary?