Click to See Complete Forum and Search --> : Apache 2, SSI vs. PHP?


erazo
11-19-2002, 02:20 PM
I have a problem getting Server-Side-Includes working.

Using RedHat 8.0 Pro, Apache 2.0.40. Using SSI to execute CGI with <!--#include virtual="/cgi-bin/script.pl"--> embedded in pages. Ensured that Includes directory option is enabled, mod_include installed, and pages are permitted executable.

Worked fine until I installed PHP-4.2.2. I don't know if it's related, but the SSIs stopped executing. I checked the scripts, no errors. The server is simply ignoring the embedded code. Is there an incompatibility between <!-- and <?php?

erazo
11-21-2002, 11:39 PM
I removed the directive:
AddType application/x-httpd-php .html .htm
and ensured that XBitHack was set to On, and the "problem" was solved.

I've concluded that SSI calls are different depending upon whether you're using SSI or PHP to process the script.