Post Reply  Post Thread 
Mod_layout Installtion
Author Message
Nilesh
Super Moderator
******


Posts: 42
Group: Super Moderators
Joined: Jul 2007
Status: Offline
Reputation: 0
Thank 0
0 was given thank in 0 posts
Post: #1
Mod_layout Installtion

Following are the step to install Mod_layout for apache.

Quote:
wget http://fresh.t-systems-sfr.com/unix/src/...3.2.tar.gz
tar -zxvf mod_layout-3.2.tar.gz
cd mod_layout-3.2
mv Makefile.STATIC Makefile


It will ask if you want to overwite, press y and enter

pico -w Makefile
The Makefile (and not Makefile.STATIC) would have to be edited to have path to apxs defined everywhere. for example, if it's /usr/local/apache/bin, then the top portion of makefile wouild look like this:

Quote:
APXS=/usr/local/apache/bin/apxs
APACHECTL=/usr/local/apache/bin/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=`apxs -q LDFLAGS_SHLIB`
VERSION = 3.2
DISTNAME = mod_layout
DISTVNAME = $(DISTNAME)-$(VERSION)


Then just type

Quote:
make
make install


Restart httpd

Quote:
service httpd configtest
service httpd restart


You can force ads in header or footer on any site. You just would have to create a file containing your ads and save it as somead.html in say /usr/local/apache/htdocs

Then do the addition within the <VirtualHost> </VirtualHost> section of the given site in the httpd.conf file.

example of having a footer ad on a given site is:

Quote:
<IfModule mod_layout.c>
LayoutFooter "/usr/local/apache/htdocs/someadfooter.html"
LayoutHeader "/usr/local/apache/htdocs/someadheader.html"
</IfModule>


Then all the pages on the given site would carry footer ads containing whatever you put up in the someadfooter.html file.


~~~ Cool Buddy ~~~

ADD TO DEL.ICIO.US  ADD TO DIGG  ADD TO FURL  ADD TO NEWSVINE  ADD TO NETSCAPE 
ADD TO TECHNORATI FAVORITES  Technorati ADD TO SQUIDOO  ADD TO WINDOWS LIVE  ADD TO YAHOO MYWEB  ADD TO ASK 
ADD TO REDDIT  ADD TO STUMBLEUPON  ADD TO GOOGLE   

07-15-2007 10:36 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: