WS7+PHPPack: LDAP Extension support
We're trying to install the PHP Pack on WS7, however we have a couple apps that require the LDAP extension. The PHP Pack does not include the LDAP Extension. We tried compiling from source and including the LDAP extension, however, eventually it became out of hand due to the number of dependent libraries ensuring the right architecture (32-bit vs. 64-bit). We also tried compiling the extension alone, however the path for phpize command (required for the build) is pointing to a non-existent directory (it seems to be the developed directory which PHP had been compiled in by the Sun engineers). How would I go about installing this extension quickly?
Moving forward, will Sun compile the LDAP Extension in the next PHP Pack very shortly? I'd assume they would have it by default because of the heavy directory integration.
Thanks,
Thomas Madej
[876 byte] By [
marstecha] at [2007-11-27 11:36:14]

# 1
Compiling PHP for Web Server is fairly straightforward. I document the process here:
http://developers.sun.com/webserver/reference/techart/php2.html
If you compile as FastCGI then you don't need to worry about whether you have a 64-bit or 32-bit Web Server install.
# 2
> Compiling PHP for Web Server is fairly
> straightforward. I document the process here:
>
> http://developers.sun.com/webserver/reference/techart/
> php2.html
>
> If you compile as FastCGI then you don't need to
> worry about whether you have a 64-bit or 32-bit Web
> Server install.
It definitely is straight forward. However, the complexity is in the library versions. We're looking to running PHP in NSAPI mode. I have read your documentation prior to compiling and used it to base the decision to use NSAPI mode. Do you have another solution for this while keeping NSAPI mode?
# 3
Hmm.
Compiling it as an NSAPI on a 64-bit environment gets a bit complicated. As they say on the PHP site, PHP is a "glue" for a lot of third-party libraries and code. Some of that third party code will already be on your system in binary form, some will be compiled when you build the PHP library, etc.
Unless Sun produces a 64-bit PHP NSAPI binary with the LDAP PHP extension, you're stuck having to manage the dependency hell of the third-party code and libraries.