PDA

View Full Version : Tutorial: How to install Mod_Layout with CPanel



RecT
04-01-2009, 08:54 PM
Mod_Layout is an Apache module used to include other files in the header/footer of webpages - usually for the inclusion of forced ads.

If you are using Apache 1.3 then you need mod_layout-3.1
If you are using Apache 2 then you need mod_layout-4.1
If you are using Apache 2.2 then you need mod_layout-5.1

How to Install for CPanel

1. Navigate to temp folder

cd /tmp

2. Download mod_layout

wget http://download.tangent.org/mod_layout-5.1.tar.gz


3. Decompress it

tar xvfz mod_layout-5.1.tar.gz

4. Goto mod_layout-5.1

cd mod_layout-5.1

5. Edit Makefile

pico Makefile

6. Ensure APXS path is correct. For CPanel:

Find:

# 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 with:


# 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`

7. Save the file Makefile

ctrl+x

Type 'Yes' and then press 'Enter'.

8. Start the installation

make install