You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Paul Kippes <ki...@yahoo.com> on 2005/11/28 04:42:27 UTC

[users@httpd] Problem with multiple SSIs

Is this some strange configuration issue?

I'm using 2.0.55 with Apache configured using the following:

./configure --prefix=/usr/local/www  --enable-cgi --enable-headers
--enable-expires --enable-mime-magic --enable-logio --enable-deflate
--enable-rewrite

I'm using the default httpd.conf with the following addition at the
end:

LoadModule php4_module        modules/libphp4.so
<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot /www/webroot
    ServerName dummy-host.example.com
    ErrorLog /www/logs/error_log
    CustomLog /www/logs/access_log common

    AddType text/html .shtml
    AddOutputFilter Includes .shtml

    AddType application/x-httpd-php .php

    <Directory /www/webroot>
      Options +Includes
    </Directory>
</VirtualHost>

I can get server-side includes to work individually.  But if I place
a PHP SSI in the middle, it doesn't work--I get no response from the
server.

The following top-level file (test.shtml) works:

PHP:<br> <!--#include virtual="test.php" -->
HTML:<br> <!--#include virtual="test.html" -->

But I get the empty response when I change the file to this:

HTML:<br> <!--#include virtual="test.html" -->
PHP:<br> <!--#include virtual="test.php" -->
HTML:<br> <!--#include virtual="test.html" -->

Any ideas where I'm going wrong?  Is this a possible Apache bug?  Or
just some incorrect setting?


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problem with multiple SSIs

Posted by kristina clair <kc...@gmail.com>.
On 12/6/05, kristina clair <kc...@gmail.com> wrote:
> On 11/28/05, Joe Orton <jo...@redhat.com> wrote:
> > On Sun, Nov 27, 2005 at 07:42:27PM -0800, Paul Kippes wrote:
> > > But I get the empty response when I change the file to this:
> > >
> > > HTML:<br> <!--#include virtual="test.html" -->
> > > PHP:<br> <!--#include virtual="test.php" -->
> > > HTML:<br> <!--#include virtual="test.html" -->
> > >
> > > Any ideas where I'm going wrong?  Is this a possible Apache bug?  Or
> > > just some incorrect setting?
> >
> > It's a PHP issue... try upgrading to PHP 5.1.0 or 4.4.1.
>
> I'm having the same problem with php 4.4.1.  SSI which includes php
> doesn't work with either Apache 2.0.54 or Apache 2.0.55.
> It sometimes works with 2.0.54, but also sometimes segfaults.  It
> always segfaults with 2.0.55.
>
> I just submitted a php bug report for 2.0.54 and php 4.4.1.  There are
> numerous existing bug reports for SSI + php using virtual(), but the
> SSI files causing problems for us don't use virtual().

After submitting the bug report, whatever was causing my SSI/php
problem is fixed in the latest 4.4.x php snapshot.

My backtrace looked like this:
#0  0xb7e095cc in zend_hash_index_update_or_next_insert (ht=0xb7ea29c0,
h=0,
   pData=0xbfffdc60, nDataSize=12, pDest=0x0, flag=1)
   at /home/sys/src/php-4.4.1/Zend/zend_hash.c:390
       nIndex = 0
       p = Variable "p" is not available.
(gdb)

Kristina

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problem with multiple SSIs

Posted by kristina clair <kc...@gmail.com>.
On 11/28/05, Joe Orton <jo...@redhat.com> wrote:
> On Sun, Nov 27, 2005 at 07:42:27PM -0800, Paul Kippes wrote:
> > But I get the empty response when I change the file to this:
> >
> > HTML:<br> <!--#include virtual="test.html" -->
> > PHP:<br> <!--#include virtual="test.php" -->
> > HTML:<br> <!--#include virtual="test.html" -->
> >
> > Any ideas where I'm going wrong?  Is this a possible Apache bug?  Or
> > just some incorrect setting?
>
> It's a PHP issue... try upgrading to PHP 5.1.0 or 4.4.1.

I'm having the same problem with php 4.4.1.  SSI which includes php
doesn't work with either Apache 2.0.54 or Apache 2.0.55.
It sometimes works with 2.0.54, but also sometimes segfaults.  It
always segfaults with 2.0.55.

I just submitted a php bug report for 2.0.54 and php 4.4.1.  There are
numerous existing bug reports for SSI + php using virtual(), but the
SSI files causing problems for us don't use virtual().

Good luck!
Kristina

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Problem with multiple SSIs

Posted by Joe Orton <jo...@redhat.com>.
On Sun, Nov 27, 2005 at 07:42:27PM -0800, Paul Kippes wrote:
> But I get the empty response when I change the file to this:
> 
> HTML:<br> <!--#include virtual="test.html" -->
> PHP:<br> <!--#include virtual="test.php" -->
> HTML:<br> <!--#include virtual="test.html" -->
> 
> Any ideas where I'm going wrong?  Is this a possible Apache bug?  Or
> just some incorrect setting?

It's a PHP issue... try upgrading to PHP 5.1.0 or 4.4.1.

joe

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org