Can LDAP be removed as a requirement for 1.2.17 installation?

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
DRCombes
Posts: 2
Joined: Wed May 26, 2021 12:25 pm

Can LDAP be removed as a requirement for 1.2.17 installation?

Post by DRCombes »

I have recently upgraded my personal, home-based Ubuntu server from 18.04 to 20.04, and in the process my Cacti 1.2.16 installation was affected. Although I have a backup, I would prefer to keep Cacti up-to-date, so I have followed the guidance to install 1.2.17 over my previous installation.

However, whilst running install.php, I am advised that LDAP is a required PHP module, and I'm getting the 'No - both' warning.

Although I have successfully installed php-ldap (and amended the apache and cli php.ini files to include an explicit URL for the ldap extension), 'php -m' gave an error "/usr/lib/php/20190902/ldap.so: undefined symbol: _call_user_function_ex". Further research indicates that PHP must be compiled with LDAP for LDAP to work, and this is beyond my limited Unix capabilities!

As this server is on a home network, I won't ever be using LDAP.

So my question is, can 1.2.17 be installed without the LDAP module? Many thanks!
David
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Can LDAP be removed as a requirement for 1.2.17 installation?

Post by netniV »

LDAP shouldn't be a required module, but it should be a desired one. Are you sure you can't continue even thought it shows that they aren't present?

Something is borked with your php installation though if it's failing to find the .so for an installed module (which it must be otherwise the extension .ini file wouldn't reference it). Have you tried to see if it's located in another folder? If so, you could update the .ini to point at the correct location too.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
DRCombes
Posts: 2
Joined: Wed May 26, 2021 12:25 pm

Re: Can LDAP be removed as a requirement for 1.2.17 installation?

Post by DRCombes »

Agreed, my PHP setup was damaged. I resorted to un-installing & re-installing the whole LAMP stack, and removing PHP8.

After that, I was able to go through the 1.2.17 install without issue.

Cheers.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Can LDAP be removed as a requirement for 1.2.17 installation?

Post by netniV »

Ah, technically PHP8 isn't yet fully supported. It will be when 1.3 is released at some point.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest