New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LDAP extension is not available. Please install or enable the php-ldap
extension on your web server
#129
Comments
Did you restart your webserver software after editing the php.ini? |
Hi Ntozier, thanks for your help. No I haven’t. Don’t think it would be a good idea as our whole web domain and mail sits on it – is there any other way around this issue? James |
Installing the plugin via the server packages:
(Ubuntu)
|
Thanks JediKev, Would this mean I need to go onto the terminal of our web server using either of these OS and run one of these commands? |
What server OS are you running? |
We are using a Linux server through it may not be possible to do what you suggested as its on a shared package and is outsourced from a web hosting provider. |
I would recommend taht you talk to your hosting provider. Tell them that you need the extension for your site and see what they say. |
Then you either did not enable the ldap extension or you did not restart your webserver service. |
I followed these steps: But it still does not work ...... |
@giannifusto You do not have the LDAP extension installed/enabled for PHP. Please install and enable the PHP extension, restart the server and try again. Cheers. |
Showing us a screen shot of the Authentication::LDAP and Active Directory plugin does not mean that you have installed the php ldap extension. You have to edit your php.ini and enable the extension. Under Windows you can uncomment the extension line in the php.ini: In Linux you can: apt-get install php_ldap In either case you have to restart the webserver service. |
Thanks, after editing file php.ini it works. |
@giannifusto Awesome, I'm glad you got this working. Could you please Close this issue as it's now resolved? Cheers. |
I am facing same issue. I am using Xampp on windows 10. I uncomment ldap extension in php.ini and copied two dlls and restarted webserver also. Still facing same issue. |
You will need to Google how to install/enable the Cheers. |
Thanks, after editing file php.ini it works for me. |
To add here in case others come across this. If this issue pops up for you when using Windows Server with Apache you will need to look at and or look at an create a PHPinfo file. Take a look at the Path and see which PATH variable it is pulling from. For me I noticed that rather than the 'global' PATH variable that it was pulling from the system PATH variable. In there I needed to add a new entry for C:\PHP. This resolved the annoying issue of "LDAP Plugin not found" error I was getting. That was despite the fact that I had already enabled it LDAP in my PHP.ini file. Every install is slightly different so it is impossible for the osTicket team to get ahead and document variances for all people. hope this helps someone struggling. Rich_C |
Error Message: LDAP extension is not available. Please install or enable the php-ldap extension on your web server im having problem with LDAP Plugins, please see below for more information: Windows Server 2019 Active Directory php_ldap.dll existing at c:/php/ext and restart the apache service but still LDAP not working. also when I execute phpinfo(), no LDAP information. |
Hello
I believe I responded to this in the forums. In your PHPinfo file check to
see which PATH variable is being listed. Then edit your PATH variable to
include the path to the root of your PHP install.
That worked for me and I had the exact same error and symptoms.
Rich
…On Wed., Dec. 18, 2019, 8:33 a.m. bardsmena, ***@***.***> wrote:
[image: image]
<https://user-images.githubusercontent.com/59019938/71090292-1f3ed080-21bc-11ea-86fc-3b3fcb301470.png>
Error Message: LDAP extension is not available. Please install or enable
the php-ldap extension on your web server
im having problem with LDAP Plugins, please see below for more information:
Windows Server 2019 Active Directory
Windows Server 2019
a. OsTicket 1.14.1 Version
b.. PHP version: 7.1.26
c. Apache/2.4.38 (Win64)
d..Server version: 8.0.18 - MySQL
i already un comment extension=php_ldap.dll
[image: image]
<https://user-images.githubusercontent.com/59019938/71090341-3c739f00-21bc-11ea-93bc-1aabe3eb5326.png>
php_ldap.dll existing at c:/php/ext and restart the apache service but
still LDAP not working.
also when I execute phpinfo(), no LDAP information.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#129?email_source=notifications&email_token=AAM5MJPITKAQGVPRAHFV4K3QZIREBA5CNFSM4DZS3NT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHGDZCY#issuecomment-567032971>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAM5MJP4I7SP7LRRGGJIT6DQZIREBANCNFSM4DZS3NTQ>
.
|
Sorry to elaborate on the above when I say edit the PATH variable that is an Environmental Variable. To get there Right Click on This PC -> Properties->Advanced System Settings->Environment Variables. Once you get in there you will see two "areas" User & System. For me my PHP was pulling from System. Yours may be different. That is why I stated to verify WHICH is being pulled from by comparing entries in the PHP info dump of PATH variable. This will in all likelihood fix your issue 100%. As I posted above yours I had the exact same issue and this is what fixed it for me. Once the path to my PHP (root) was added there LDAP showed in my PHP info and the plugin worked like a charm. |
Hi all,
I followed the instructions as per the OSTicket site instructions on how to install the LDAP plugin. Our OSTicket site is locally installed, so I ensured that the plugin.phar file was placed inside the Includes/plugins folder of Web server. I also made the change to our php.ini file that mean uncommenting out the line of code that said - extension=php_ldap.dll.
I am still having the same issue though when attempting to set up that plugin. Here is what I have entered so far:
Thanks for your assistance. i thought this plugin install was meant to be a relatively straightforward task.
Regards,
James
The text was updated successfully, but these errors were encountered: