Topic: Phpldapadmin error - UNHANDLED, $resource is not a resource
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6
- Linux/BSD distribution name and version: ubuntu 16.0.4 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): APACHE
- Manage mail accounts with iRedAdmin-Pro? N
- Related log if you're reporting an issue:
====
Hello, I have a clean install of Ubuntu Server 16.04 LTS on AWS. Clean install of iredmail 0.9.6 went fine, able to access with no issues. I then installed phpldapadmin using apt-get -y install phpldapadmin. I then configured /etc/phpldapadmin/config.php with the following changes:
$servers->setValue('server','name','mx.mydomain.com');
$servers->setValue('server','host','ldaps:127.0.0.1');
$servers->setValue('server','port',636);
$servers->setValue('server','base',array('dc=mydomain,dc=com'));
When I log into phpldapadmin using http://mydomain.com/phpldapadmin I get the following errors:
Error
UNHANDLED, $resource is not a resource
PHP Debug Backtrace
File /usr/share/phpldapadmin/lib/functions.php (444)
Function error (a:5:{i:0;s:38:"UNHANDLED, $resource is not a resou...)
File /usr/share/phpldapadmin/lib/ds_ldap.php (174)
Function debug_dump_backtrace (a:2:{i:0;s:38:"UNHANDLED, $resource is not a resou...)
File /usr/share/phpldapadmin/lib/ds_ldap.php (278)
Function connect (a:3:{i:0;s:4:"user";i:1;b:0;i:2;b:0;})
File /usr/share/phpldapadmin/htdocs/login.php (25)
Function login (a:3:{i:0;s:29:"cn=manager,dc=cirrustg,dc=com";i:1;...)
File /usr/share/phpldapadmin/htdocs/cmd.php (59)
Function include (a:1:{i:0;s:40:"/usr/share/phpldapadmin/htdocs/logi...)
Not sure what logs to look into, any help would be appreciated. thanks!
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.