• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 412
  • Last Modified:

Internal Server Error 500 with XSLT transforms in PHP loaded as CGI in Apache1.3

!--- problem ---!

I have an application that has been running well when on a machine that has php installed as a module with Apache 1.3.  When testing the installation of the application we installed php on a new machine running as a CGI.  now when you log in the page return is a "Internal Server Error 500" error page.  

!--- handy notes about system ---!
the system is using Sessions for user details, XML & XSLT processing through sablot.  Now I have tested the XML and XSLT individually and they seem fine.  Also the system works perfectly when running on the development machine (loaded as module)  also we are compressing the output with gz before sending to the client.

I have tracked down the error to be in the transformation function that takes the XML and XSL and produces the XHTML output

$arguments = array(
               '/_xml' => $this->xml_page,
               '/_xsl' => $this->xsl_page
               );
               
               // Allocate a new XSLT processor
               
               $xh = xslt_create();
               xslt_set_base($xh,"file://".$this->ROOT."/");
         
               // Process the document

                 $msg = xslt_process($xh, 'arg:/_xml', 'arg:/_xsl', NULL, $arguments);


               xslt_free($xh);

!--- Apache Error Log Msg-->
[Mon Feb 24 16:46:06 2003] [error] [client 192.168.0.124] Premature end of script headers: /apache/php/php.exe

The above line is the only real error msg in the error.log file and I believe that this will be the key to under standing what is going on in the system.
0
hitting_30_hard
Asked:
hitting_30_hard
1 Solution
 
hitting_30_hardAuthor Commented:
OK for anyone who has this same problem it was a problem with the XSLT parser running on CGI. I had to rewrite the XSLT for the Administration side of the system for this to work. Thanks to any who took time to pondered a possible solution.
0
 
SpideyModCommented:
PAQ'd and points refunded.

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now