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
2. Download mod_layout
Code:
wget http://download.tangent.org/mod_layout-5.1.tar.gz
3. Decompress it
Code:
tar xvfz mod_layout-5.1.tar.gz
4. Goto mod_layout-5.1
5. Edit Makefile
6. Ensure APXS path is correct. For CPanel:
Find:
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 with:
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`
7. Save the file Makefile
Type 'Yes' and then press 'Enter'.
8. Start the installation