How to install mod_layout on cPanel server
mod_layout is an Apache module that provides both a Footer and Header directive to automagically include output from other URIs at the beginning and ending of a Web page. It can be used to wrap documents for a standard look and feel for a site (or to insert banners on any given document in a site). Currently known to support mod_perl, PHP and Apache JServ. Should support just about any type of handler.

How to Install

1. download it first of all

wget http://fresh.t-systems-sfr.com/unix/src/ww...yout-3.2.tar.gz

or

wget http://www.tangent.org/download/mod_layout...ut-3.2.1.tar.gz

2. uncompress it

Code:


tar xvfz mod_layout-3.2.tar.gz




3.

Code:


cd tar xvfz mod_layout-3.2.tar.gz


and open the Makefile first

and find following

Code:


# the used tools
APXS=apxs
APACHECTL=apachectl
CC=`apxs -q CC`
INC=-I`apxs -q INCLUDEDIR` `$(APXS) -q CFLAGS` #-DLAYOUT_FILEOWNER_NAME
LD_SHLIB=`apxs -q LDFLAGS_SHLIB`





Replace the values with the following details :

Code:


# the used tools
APXS=/usr/local/apache/bin/apxs
APACHECTL=apachectl
CC=`/usr/local/apache/bin/apxs -q CC`
INC=-I`/usr/local/apache/bin/apxs -q INCLUDEDIR` `$(APXS) -q CFLAGS` #-DLAYOUT_FILEOWNER_NAME
LD_SHLIB=`/usr/local/apache/bin/apxs -q LDFLAGS_SHLIB`




save the file Makefile

and then

Code:


make

make install




You are done !!