Hi Everyone, 

We're having some problems getting php running as a
nsapi module on
iplanet 4.1 (running on solaris).

we have been using the instructions specified on
http://benoit.noss.free.fr/php/install-php4.html and
on
http://php.ca/manual/en/install.netscape-enterprise.php

we have installed php-4.2.0 (we don't want mysql) on
our machine using
the following configure command:

/configure --without-mysql
--with-nsapi=/u01/apps/netscape/server4/
--enable-track-vars --enable-libgcc
make 
make install 

this appears to have worked. I can execute php files
on the server
manually using the command:

php test.php 

and they get interpreted properly. sounds good right? 

we have updated the netscape config files, mimetypes,
etc.. as per the
instructions, the server sees that their are
configuration changes and
starts without any problems but when I go to access a
.php page
through iPlanet I get a File Not Found / DNS error?
the server runs
fine otherwise, it serves up .html, .gif, .jpg, etc.
files without any
problems. it also does not crash when we try to access
a php page - it
just says "File Not Found" in the browser window???

if I look at the iPlanet error logs, I see the entry: 

[02/May/2002:11:02:11] info (18431): php4_init
reports: Initialized
PHP Module

[02/May/2002:11:02:11] info (18431): php4_init
reports: Initialized
PHP Module

[02/May/2002:11:02:12] info (18432): php4_init
reports: Initialized
PHP Module

[02/May/2002:11:02:12] info (18432): php4_init
reports: Initialized
PHP Module

for every single request of one .php file... 

obj.conf configuration follows below. 

A deep, deep thanks in advance for any help that the
group can
provide!

David 

obj.conf: 

Init fn="flex-init"
access="/u01/apps/netscape/server4/https-coogee/logs/access"
format.access="%Ses->client.ip% - %Req->vars.auth-u
ser% [%SYSDATE%] \"%Req->reqpb.clf-request%\"
%Req->srvhdrs.clf-status%
%Req->srvhdrs.content-length%"
Init fn="load-modules"
shlib="/u01/apps/netscape/server4/plugins/coldfusion/coldfusion.so"
funcs="DoCFRequest"
Init fn="load-types" mime-types="mime.types" 
Init fn="load-modules"
shlib="/u01/apps/netscape/server4/bin/libphp4.so"
funcs="php4_init,php4_close,php4_execute,php4_auth_trans"
Init fn="php4_init" LateInit="yes" 
Init fn=php4_init errorString="Failed to initialize
PHP!" 

<Object name="default"> 
AuthTrans fn=php4_auth_trans 
NameTrans fn="assign-name" from="/servlets/*"
name="servlet" 
NameTrans fn="assign-name" from="/examples/*"
name="servlet" 
NameTrans fn="pfx2dir" from="/coldfusion"
dir="/u01/apps/coldfusion/docs"
NameTrans fn="pfx2dir" from="/cgi-bin"
dir="/u01/apps/netscape/server4/docs/cgi-bin"
name="cgi"
NameTrans fn="pfx2dir" from="/release"
dir="/u01/apps/netscape/server4/docs/cgi-bin"
NameTrans fn="pfx2dir" from="/oracle"
dir="/u01/apps/oracle/product/8.1.6/doc"
NameTrans fn="pfx2dir" from="/ns-icons"
dir="/u01/apps/netscape/server4/ns-icons"
name="es-internal"
NameTrans fn="pfx2dir" from="/mc-icons"
dir="/u01/apps/netscape/server4/ns-icons"
name="es-internal"
NameTrans fn="pfx2dir" from="/viewer"
dir="/viewer/LogViewer1.02/index.cfm"
NameTrans fn="pfx2dir" from="/help"
dir="/u01/apps/netscape/server4/manual/https/ug"
name="es-internal"
NameTrans fn="pfx2dir" from="/manual"
dir="/u01/apps/netscape/server4/manual/https"
name="es-internal"
NameTrans fn="document-root" root="/u01/stage/dev" 
PathCheck fn="unix-uri-clean" 
PathCheck fn="find-pathinfo" 
PathCheck fn="find-index"
index-names="index.html,home.html" 
PathCheck fn="check-acl" acl="default" 
ObjectType fn="type-by-extension" 
ObjectType fn="force-type" type="text/plain" 
Service fn="php4_execute"
type="magnus-internal/x-httpd-php" 
Service fn="DoCFRequest" method="(GET|POST)"
type="magnus-internal/cold-fusion"
Service method="(GET|HEAD)"
type="magnus-internal/imagemap"
fn="imagemap"
Service method="(GET|HEAD)"
type="magnus-internal/directory"
fn="index-common"
Service fn="send-cgi" type="magnus-internal/cgi" 
Service method="(GET|HEAD|POST)"
type="*~magnus-internal/*"
fn="send-file"
AddLog fn="flex-log" name="access" 
</Object> 

<Object name="cgi"> 
ObjectType fn="force-type" type="magnus-internal/cgi" 
Service fn="send-cgi" 
</Object> 

<Object name="jsp092"> 
ObjectType fn="type-by-extension" 
ObjectType fn="change-type"
type="magnus-internal/jsp092"
if-type="magnus-internal/jsp"
Service fn="NSServletService"
type="magnus-internal/jsp092" 
</Object> 

<Object name="es-internal"> 
PathCheck fn="check-acl" acl="es-internal" 
</Object> 

<Object
ppath="/u01/apps/netscape/server4/docs/cgi-bin/*"> 
Service fn="send-cgi" type="magnus-internal/cgi" 
</Object> 

<Object name="x-httpd-php"> 
ObjectType fn="force-type"
type="magnus-internal/x-httpd-php" 
Service fn=php4_execute 
</Object>


__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to