mod_layout directive with index.php files
Jesse Santana <[email protected]> Wed, 20 Jun 2007 09:29:34 -0700
| Newsgroups | gmane.comp.apache.mod-layout |
|---|---|
| Message-ID | <OF8BAF6EB2.76E62A88-ON88257300.00596BCB-88257300.005ABF80@notesmail.csulb.edu> |
All:
I am running Apache 2.2.4 with mod_layout v5 on a Solaris 10 UltraSPARC
system. Mod_layout doesn't appear to be working for PHP files. Here is
my .htaccess file:
# mod_layout
AddOutputFilter LAYOUT php
# Development server tree
LayoutHeader
"/home/web/oldsite/depts/NetworkServices/beachnet/ssi/dt_header.htm"
LayoutFooter
"/home/web/oldsite/depts/NetworkServices/beachnet/ssi/dt_footer.htm"
My index.php file is as follows:
#!/usr/local/php5/bin/php
<?php
include("./functions/DataVerification.php");
include("./functions/AccountCreation.php");
include("./misc/Credentials.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<h1 id="header"><span>Hello</span> World </h1>
</body>
</html>
I am running PHP as a CLI on this machine to utilize the suexec functions.
All I get when I attempt to load my index.php page is the header and
footer pointed to by my LayoutHeader and LayoutFooter directives but the
actual index.php file content is never displayed. If I remove my
.htaccess file, resulting in the removal of the mod_layout directives, my
index.php file displays properly.
How do I go about getting mod_layout working with PHP files in the
configuration described above?
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