Click to See Complete Forum and Search --> : parsing php thru iPlanet nsapi
I just finished installing php4.0.5 on Solaris 2.6 with iPlanet Enterprise Server 4.1 without errors. The server configuration (LD_LIBRARY_PATH, mime.types, obj.conf, et al.) are configured as documented & the server starts without error.
However, when I call a .php document from the web server, the php page is not parsed out rather prompts the browser to open/save application x-httpd-php. There are also no errors in the access or error log.
I do have the php.ini in /usr/local/lib, but suspect it may not be configured properly. Has anyone else run into this?
I have this problem. I set the server to treat the php doc root as
a "Style" php, whihc seemed to have been defined after making all
the other entries in the obj.conf file and restarting the server and
bringing up the admin server and loading the manual edits.
The additional problem I have is that I am trying to use openldap
and when I use any of the ldap commands like ldap_connect(),
I get an undefined error. Are there any changes that I should make to
php.ini??? It seems to see php.ini because if I create a file that
just says
<?
phpinfo()
?>
it works.
Thanks, Joe
bjidzik
09-11-2001, 02:38 AM
Hi Joe;
I solved the php problem a while back. I had to manually edit the iPlanet obj.conf file to correct some entries that were automatically inserted by the iPlanet Administration Server. I've got both enhydra director & php running now without a hitch so far.
Although I use openldap on Apache with php, I'm using the Netscape directory with the iPlanet server running php. I compiled the php source --with-ldap={path to ldap base install directory} and ldap calls work fine for me.
Depending on Linux distribution you're using, it may be tricky. I installed openldap from source & it all was under /usr/local.
phpinfo() should show the ldap enabled & api info if properly compiled & configured. No changes should be needed to php.ini, but do look at any notes regarding openldap library paths with php. Good luck!
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.