Go Back   Computer Support Forum - Free IT Hardware & Software Help > Internet > Web Server Management

Web Server Management Discuss all aspects of setting up and running a web hosting server or business.

Closed Thread
 
Thread Tools Display Modes

Tutorial: How to install Mod_Layout with CPanel
  #1  
Old 04-01-2009, 08:54 PM
RecT RecT is offline
Super Moderator
 
Join Date: Nov 2007
Posts: 189
Lightbulb Tutorial: How to install Mod_Layout with CPanel

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
Code:
cd /tmp
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
Code:
cd mod_layout-5.1
5. Edit Makefile
Code:
pico 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
Code:
ctrl+x
Type 'Yes' and then press 'Enter'.

8. Start the installation
Code:
make install
__________________
Need to know your IP? Need to find WHOIS data for a website or IP address? Want to know your Google PageRank? Then you need Domain Tools!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT +1. The time now is 10:55 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Computer Forum, Comp Forum, Tech Support Forum, Free CPanel and MiLon Hosting are part of MiLon Technologies.