phpLDAPadmin icon indicating copy to clipboard operation
phpLDAPadmin copied to clipboard

Install instructions out of date?

Open AlastairGrowcott opened this issue 6 years ago • 3 comments

I had the Ubuntu packaged version of phpldapadmin which is very broken, and it looked like this was just a drop-in. However the Ubuntu version had files in /etc/phpldapadmin, one of which was an apache.conf file that somehow created a re-direct for the phpldapadmin without using the usual sites-enabled mechanism.

Just copying everything into /usr/share/phpldapadmin (as per the Ubuntu version) doesn't work, so it looks like the INSTALL.md needs updating. Or does this version do things in a very different way?

I tried just copying the directory as /var/www/html/phpldapadmin and creating a symbolic link in "config" to /etc/phpldapadmin/config.php, but then I get an error in my web browser:

Notice: Undefined variable: _SESSION in /var/www/html/phpldapadmin/lib/page.php on line 379

Fatal error: Uncaught Error: Call to a member function getValue() on null in /var/www/html/phpldapadmin/lib/page.php:379 Stack trace: #0 /var/www/html/phpldapadmin/lib/functions.php(640): page->display(Array) #1 /var/www/html/phpldapadmin/htdocs/index.php(107): error('Fatal error: Ca...', 'error', NULL, true) #2 {main} thrown in /var/www/html/phpldapadmin/lib/page.php on line 379

I tried making a copy rather than a symbolic link and just get the same error.

Please can you update the INSTALL.md with precise, fully working instructions.

AlastairGrowcott avatar Mar 08 '19 14:03 AlastairGrowcott

Maybe the reason for this errors is that you are missing the config file phpldapadmin/config/config.php

jensliebau avatar Mar 17 '19 22:03 jensliebau

As per my original post:

...creating a symbolic link in "config" to /etc/phpldapadmin/config.php...

AlastairGrowcott avatar Mar 18 '19 07:03 AlastairGrowcott

Also: ...I tried making a copy rather than a symbolic link and just get the same error....

AlastairGrowcott avatar Mar 18 '19 07:03 AlastairGrowcott