开发者

Enabling Extensions

I am changing some of my PHP settings such as uploa开发者_如何学God 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!


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!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜