Call to undefined function ldap_connect ()

0

I'm having the following problem running a code in production: The server is a bit old, PHP 5.2.13 still runs.

On a local basis, this bug has been fixed by releasing a Xampp add-in in php.ini . Now in production, there is no such possibility.

I tried to give a apt-get install php5-ldap , but it accuses the following error:

  

The following packages have mismatched dependencies: php5-ldap:   It depends: php5-common (= 5.2.6.dfsg.1-1 + lenny16) but 5.2.13-0.dotdeb.1   is to be installed E: Broken packages

And with that I can not install php5-ldap.

To try to solve this problem, I tried to run the command apt-get upgrade , but it did not solve.

Can some angel lighten me?

    
asked by anonymous 03.01.2017 / 11:27

1 answer

0

The secret was to use aptitude install php5-ldap, it practically deleted my php and apache and installed another one with another version compatible with ldap, so far it would have been resolved, but apache was up and there was nothing on the site, the permission problem, assigns the 775 permission to all folders and good. : D

    
04.01.2017 / 11:40