Ataman
Ataman

Reputation: 2590

Enabling Extensions

I am changing some of my PHP settings such as upload size limit etc.

I manage to increase my upload size limit with some modifications to my Loaded Configuration File: php5.ini.

So it is the right file, and changes to php5.ini takes effect.

I want to enable ldap extension too. However, i couldnt do that. I added the following line: extension=php_ldap.dll

But it did not take any effect.

Can anybody see why? Thanks!

Upvotes: 0

Views: 1469

Answers (1)

markus
markus

Reputation: 40685

If you're on Linux, adding a dll extension won't do much good since these are used by Windows. You'd rather have to enable the .so extension.

But then again just uncommenting or adding this entry in your php.ini doesn't make the extension work automatically, it will work only if the given .so file is really there and is in the right path, resp. the path is configured correctly.

If you're on Linux and you've got a chance, you should install extensions via your package manager (apt, yum, ...) which will compile the extension into your php installation. This way you won't loose your extension after server updates which include php.

If you don't have access to your server, there is always something you can do!

a) Ask the hosting provider to enable the extension for you, good hosting providers do that.
b) Get a VPS. You'll be so much better off!! It's worth it! Check out ServerGrove!

Upvotes: 4

Related Questions