On 2015-12-25, Predrag Punosevac <[email protected]> wrote: > I was wondering if anybody tried running LibreNMS with httpd from the > base and even more fundamentally does httpd from the base support > "unsecure" mode. I read up and down httpd several times but I didn't see > anything about insecure mode.
It's PHP, not the http server, that needs to be run without chroot. > My second question is using PHP with Nginx running in the insecure mode. > I got Nginx exporting http without any problems. However I can't get > to export PHP files. I was under impression that it is sufficient to > comment out with ; the > > chroot = /var/www > > line from > > /etc/php-fpm.conf > > However that didn't work. Can anybody who runs php-fpm, MariaDB, and > Nginx in the insecure mode give me some hint to what I am doing wrong. > I haven't seen anything interesting in php-fpm log files. > > Best, > Predrag You probably need something like this. fastcgi_param DOCUMENT_ROOT /var/www$document_root; fastcgi_param SCRIPT_FILENAME /var/www$document_root$fastcgi_script_name; Works with nginx for sure. I don't think httpd will give enough control over fastcgi path names to work though. I'll try to find time to revise the pkg-readme.

