SSI and PHP on WS 7.0

I installed WS 7.0 and PHP v5.2.3 (from php.net) on a SPARC server with Solaris 10. I installed PHP as NSAPI. I followed the instructions from the link at the top of this forum and I have run into a problem.

I can't get the server to parse both SSI and PHP. In files with a php extension, I can get the server to either parse the SSI or the PHP code both not both. Plain PHP files will not render anything. Files ending in shtml or html will parse SSI OK but not parse the php code.

Here is what I have

In the obj.conf file:

<object name="default">

...

PathCheck fn="find-index" index-names="index.html,home.html,index.jsp,index.shtml,index.php"

Service fn="php5_execute" type="magnus-internal/x-httpd-php"

...

</Object>

In the mime.types file:

type=magnus-internal/parsed-html extts=shtml,php,php3,phph4,php5

type=magnus-internal/x-httpd-phpexts=php,php3,php4,php5

In the magnus.conf file:

Init fn="load-modules" shlib="/path_name/libphp5.so" funcs="php5_ini

t,php5_close,php5_execute,php5_auth_trans"

Init fn="php5_init" errorString="PHP Initialization Failed!"

[1179 byte] By [sgtrocka] at [2007-11-27 8:20:06]
# 1

You want to run SSI and php on a same script. AFAIK it is not possible to run

two handler (without writing custom code). Other experts on this group may

have some other idea of how to do so.

One can however run one handler (Service) and multiple filters but that your

situation doesn't match that.

BTW, php is a feature rich language so why do you need SSI? I believe you can

always find equivalent SSI feature in php.

Basantka at 2007-7-12 20:08:23 > top of Java-index,Web & Directory Servers,Web Servers...