Use DOCUMENT_ROOT to search for config file

Issue #304 new
Former user created an issue

I was trying to setup phpliteadmin for several virtual hosts simultaneously using nginx+php-fpm. I put phpliteadmin into /usr/share/ and made a server-wide configuration:

location ~ \.php$ {
    fastcgi_index  phpliteadmin.php;
    fastcgi_param  SCRIPT_FILENAME  /usr/share/phpliteadmin$fastcgi_script_name;
    include        fastcgi_params;

everything worked perfectly except one: It searches for config file inside /usr/share/ instead of DOCUMENT_ROOT for each virtual host.

I think , this small patch can be useful. Or maybe you'd better do other behaviour: If there are some fastcgi_parameter, say PHPLAC exists, then you try to read ${PHPLAC}/phpliteadmin.conf.php first and only then try ./phpliteadmin.conf.php

thanks for a great tool!

Comments (0)

  1. Log in to comment