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/www/mod_layout-3.2.tar.gz

or

wget http://www.tangent.org/download/mod_layout-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:
makemake install

You are done !!

This entry was posted on Wednesday, May 31st, 2006 at 1:17 pm and is filed under General. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

One Response to “How to install mod_layout on cPanel server”

Josh August 10th, 2007 at 10:35 am

Thank you, your tutorial is very helpful!

Leave a Reply

You must be logged in to post a comment.