Problems with LDAP_Account_Manager

0

I have a problem when entering the LAM server from the browser. What happens is that by accessing localhost / lam, the PHP code on the web is not executed, and it only shows me a lot of PHP code.

I have executed the sudo apt-get install ldap-account-manager command and the program has been installed with its respective dependencies (PHP5 and Apache2).

This is working on a virtual machine of Ubuntu 16.04 LTS of 64bits.

Where can this error be found?

I've been spinning for days and can not find anything.

    
asked by Luismi Márquez Gutierrez 01.03.2017 в 13:47
source

2 answers

1

You need php5.6 , proposed solution:

Add PPA , since by default this repository does not come in ubuntu 16.

$ sudo add-apt-repository ppa:ondrej/php

$ sudo apt-get update

$ sudo apt-get install php5.6

Install the following modules (extensions):

$ sudo apt-get install php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml

$ sudo apt-get install php5.6-ldap 

$ sudo apt-get install php5.6-zip

Restart the Apache service:

$ service apache2 restart

With this you should already work, it worked for me.

    
answered by 25.04.2017 в 13:38
0

The same thing happens to me as luismi. I followed the steps of the previous answer but it did not work for me.

I uninstalled LAM, added a repository and reinstalled it. By following these steps, it worked.

These are the steps:

  • apt-get remove ldap-account-manager
  • edit file /etc/apt/sources.list and add repository - >

     deb http://us.archive.ubuntu.com/ubuntu xenial main universe
    
  • apt-get update
  • apt-get install ldap-account-manager
answered by 02.05.2017 в 23:12