View Full Version : How to use Mod_Layout
spiralfive
March 11th, 2006, 13:44
I'd like to force ads into my two new hosts, yd8.net and s5network.info. Thing is, i've never used mod_layout before. Does anyone here know how to do this? I've heard it's really simple, but cannot find any information on it. All I want is to add an add to the footer of user pages.
hottweelz
March 11th, 2006, 13:58
You need a program, such as IPanel, for example, that does it on your command, or a Dedicated Server with Root Access (VPS would work too)
spiralfive
March 11th, 2006, 14:25
While reading through a bunch of manuals, etc., it said all you have to do it add a line of code to httpd.conf and it'll work. Chargertek has mod_layout installed, so shouldn't that work? Below is the code I found. It's from two seperate manuals, so I had to put two and two together, but here's what I think I'm supposed to do:
Add this to httpd.conf:
<VirtualHost www.yd8.net:80>
LayoutFooter "What I want on the footer goes here"
</VirtualHost>
Sources:
http://www.musc.edu/webserver/mod_layout.html
http://httpd.apache.org/docs/1.3/mod/directive-dict.html
hottweelz
March 11th, 2006, 14:47
Right, now if the ChargerTek server you are on, has mod layout installed, which you're saying yours does (I forget off the top of my head which one you are on).
Than you need a script compatible with utilizing it.
For example, I use IPanel on some of the servers, so I have the IPanel script that looks for mod_layout and updates httpd.conf.
If you were to use IPanel, you're automatically compatible with that server.
spiralfive
March 11th, 2006, 14:54
Based on PHPinfo (http://www.ipbhost.info/phpinfo.php) it has mod_layout installed.
Now, what do I to to insert the ads? There's a way to do it (like I said in the previous post) without iPanel. Where is httpd.conf? On my other host, I just ask them to modify httpd.conf and they do it. Could you try inserting that code into it and see if it works?
spiralfive
March 11th, 2006, 15:40
Allright, I give up. I thought I would be ambitous today and figure out how to do this without iPanel or iAds, but my eyes are beginning to glaze over reading all of these Apache manuals (and getting me nowhere). :) I'm going to settle with a simpler .htaccess method.
ced
March 11th, 2006, 18:58
You need a program, such as IPanel, for example, that does it on your command, or a Dedicated Server with Root Access (VPS would work too)
need root access ? :confused4
spiralfive
March 11th, 2006, 19:15
I'm still open for anyone who want's to help me. My alternative .htaccess way is very easy to bypass (just remove the code) and I'm delaying using it as long as possible. There has to be a way to do this without iPanel. How does iPanel do it? All it does is place a user-friendly interface on top of this. It doesn't require root-access, all it needs it WHM and cPanel.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.