More information regarding mod_layout v5, Apache 2.2.4 and PHP v5.2.2 as a CLI

Jesse Santana <[email protected]> Mon, 25 Jun 2007 13:16:16 -0700
Newsgroups gmane.comp.apache.mod-layout
Message-ID <OFC0E96DA7.44F5F5A1-ON88257305.006EBA0F-88257305.006F83CF@notesmail.csulb.edu>
I've got more information regarding mod_layout and the issue I am having 
running it on a machine that is running Solaris 10, Apache 2.2.4 and PHP 
v5.2.2 compiled to run as a CLI. 

Here is the script I am working with:

#!/usr/local/php5/bin/php

<html>
<head><title>PHP Test</title></head>
<body>
   <p>If nothing follows this paragraph, PHP is not enabled.</p>
   <?php phpinfo(); ?>
</body>
</html>

The script is currently executable with the following .htaccess file in 
the directory:

# mod_layout
#AddOutputFilter LAYOUT html
AddOutputFilter LAYOUT php

LayoutHeader 
"/home/web/oldsite/depts/NetworkServices/beachnet/ssi/dt_header.htm"
LayoutFooter 
"/home/web/oldsite/depts/NetworkServices/beachnet/ssi/dt_header.htm"

When I load the page, I get the header followed by 'If nothing follows 
this paragraph, PHP is not enabled.', the header again, another 'If 
nothing follows this paragraph, PHP is not enabled.' then the footer.  It 
appears mod_layout is being thrown off by the '#!/usr/local/php5/bin/php' 
required to run the PHP script through the PHP interpreter as a CLI. 

BTW - If I remark out the AddOutputFilter LAYOUT php line in my .htaccess 
file, the phpinfo() screen comes up as expected.

Any ideas?

Jesse

Jesse Santana
Project Lead - Enterprise Services Group
Information Technology Services
California State University, Long Beach
1250 Bellflower Blvd.
Long Beach, CA  90840
Office: (562)985-8511
Fax:     (562)985-8855

_______________________________________________
Mod_layout mailing list
[email protected]
http://lists.tangent.org/mailman/listinfo/mod_layout