Ivor,

I haven't done this with AS specifically, but I did do so with Sun's Web Server (both 6.0 and 6.1). Since AS uses the same web serving engine as their Web server product, perhaps my experience applies to your situation.

I had the same problem as you are seeing, and discovered it was because I was running PHP in a virtual server. In that particular case, there is a separate obj.conf for the virtual server named "servername.obj.conf". The instructions for modifying obj.conf for adding PHP support must also be applied to the virtual server's obj.conf, too, in order to get it working there.

I hope this helps!

Bill

Ivor Durham wrote:
Although I believe that I have followed the instructions in
http://www.php.net/manual/en/install.netscape-enterprise.php, attempts to
view PHP pages through my SunONE Application Server are producing an Error
500 which is logged as:

[01/Jul/2004:19:29:06] SEVERE (  754): for host 192.168.0.202 trying to GET
/id/hello.php, handle-processed reports: HTTP2028: no way to service request
for /id/hello.php

The server log reports a successful initialization for PHP (with the
"exspected" spelling error):

[01/Jul/2004:19:28:03] INFO (  754): php4_init reports: Initialized PHP
Module (128 threads exspected)

The following lines have been added to the configuration files for PHP:

init.conf:
Init fn="load-modules" funcs="php4_init,php4_execute,php4_auth_trans"
shlib="/usr/appserver/bin/libphp4.so"
Init fn="php4_init" LateInit="yes" errorString="Failed to initialize PHP!"

mime.types:
type=magnus-internal/x-httpd-php        exts=php

obj.conf:
Service method="(GET|HEAD|POST)" type="magnus-internal/x-httpd-php"
fn="php4_execute"
(This is before the Service method entry for "*~magnus-internal/*"

PHP from the command line processes my hello.php file correctly.

If you have successfully installed PHP via NSAPI, especially for the SunONE
Application Server, and can suggest what else needs to be done to resolve
this problem, I would be very grateful.

Thanks in advance.

Ivor Durham

-- William Korb, President & CTO Phone: 715-382-5462 QISC, Inc. Fax: 715-382-5462 19945 82nd Ave., Suite 201 E-mail: [EMAIL PROTECTED] Chippewa Falls, WI 54729-5631 URL: http://www.qisc.com/ "Tilting at Digital Windmills since 1995."

Reply via email to