it is kind of easy.

add something like:
   <servlet>
         <servlet-name>php</servlet-name>
 
<servlet-class>com.evermind.server.http.CGIServlet</servlet-class>
         <init-param>
                     <param-name>interpreter</param-name>
                     <param-value>/usr/local/bin/php</param-value>
         </init-param>
    </servlet>

                <servlet-mapping>
                        <servlet-name>php</servlet-name>
                        <url-pattern>/*.php</url-pattern>
                </servlet-mapping>

                <servlet-mapping>
                        <servlet-name>php</servlet-name>
                        <url-pattern>/*.php3</url-pattern>
                </servlet-mapping>

to web.xml and/or global-web-application.xml

The only problem is that you need to compile php with other options than
normal: I've compiled it with something like this:

./configure --with-mysql=/usr --disable-force-cgi-redirect
--enable-force-cgi-redirect=/etc/openldap --without-gd --e
nable-calendar --enable-discard-path --enable-trans-sid --with-openssl
--with-imap --enable-inline-optimization

A.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Casey
Helbling
Sent: Mittwoch, 5. Dezember 2001 15:33
To: Orion-Interest
Subject: RE: Running PHP on Orion



I've thought about this a few times.... but never took the time to try
it.
I'm thinking of a configuration where you use apache in front of Orion.
That way you could set up apache to recognize the .php extension.
Anyway...

Let me know if it works.  The bigger issue I was thinking about was
session
information across apps written on different platforms.  For example.
Is
there some way to store all you session information in some "persistent
session db" that could be accessed by both php and the appserver.  would
there be synchronization issues with the db having to different
applications
(on different platforms) having handles to the same tables.  This setup
would be useful for all the companies that wrote everything right away
in
php... to just get it out there... now want to rewrite it and stick it
on an
appserver... but want to do it iteratively.

Thanks.
Casey


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Steven De
Schutter
Sent: Wednesday, December 05, 2001 12:26 AM
To: Orion-Interest
Subject: Running PHP on Orion


Hellow ,

Is it possible to run PHP on a Orion-server ?

If yes ... which configurations do I have to do ? And where do I have to
put
my php-files ?


Regards
Steven




Reply via email to