Re: [PHP-INST] netscape support on PHP4 From: Gustavo Badauy (gbadauy <email protected>)
Date: 06/30/00

Hi,

I was able to run PHP4 on NES 4 running on Solaris 2.7 Here is what I did.
Hope it helps you.

To compile PHP, I used

./configure --enable-trans-sid --with-nsapi=/usr/netscape/server4/ --enable
-libgcc
then:
make;make install

After compiling and installing, PHP copied libphp4.so to
/usr/netscape/server4/bin (I have installed NES on its default installation)

I have edited the obj.conf as described in
$PHP-SOURCE/sapi/nsapi/nsapi-readme.txt, but anyway I'll add it here for
completness sake.

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

On obj.conf
#added this just after Init fn="load-types" mime-types="mime.types"
Init fn="load-modules"
funcs="php4_init,php4_close,php4_execute,php4_auth_trans"
shlib="/usr/netscape/server4/bin/libphp4.so"
Init fn=php4_init errorString="Failed to initialize PHP!"

#The following line was added just after ObjectType, thus beeing the first
Service fn.
Service fn="php4_execute" type="magnus-internal/x-httpd-php"

#This was added at the end of the file. Note the difference between the
Service fn line and the one
#described in the readme. Here it has quotes around it.
<Object name="x-httpd-php">
ObjectType fn="force-type" type="magnus-internal/x-httpd-php"
Service fn="php4_execute"
</Object>

After that I have restarted the server and I was able to see my
heloworld.php

Let me know if you this helped you out

Gustavo Badauy

----- Original Message -----
From: "Daniil" <daniil <email protected>>
To: <php-install <email protected>>
Sent: Friday, June 30, 2000 2:52 AM
Subject: [PHP-INST] netscape support on PHP4

> Hi,
>
> Did anyone ever installed PHP4 with Netscape Server 4 on Solaris 2.7?
> We are having some problem building it. If you know, help us.
>
> Thanx, Daniil.
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-install-unsubscribe <email protected>
> For additional commands, e-mail: php-install-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-install-unsubscribe <email protected>
For additional commands, e-mail: php-install-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>