• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net

Force ads on accounts automatically for FREE with cpanel ...

Zombie

You're not safe.
NLC
NLC
The tut you provided wouldnt install on my server i had to use mod layout 5.1 and your APX or w.e fix but it works now ;)
 

krakjoe

stop staring
NLC
This thread is quite old, I'm not surprised you had to read the whole thing, might be useful for other people if you wrote down what you did in detail ??

Glad you got it working anyway ...
 

Zombie

You're not safe.
NLC
NLC
This thread is quite old, I'm not surprised you had to read the whole thing, might be useful for other people if you wrote down what you did in detail ??

Glad you got it working anyway ...
Old yes, Useless No :)

I will sometime later write it down for others if someone dont beat me to it.
 

jaspert

New Member
Issues getting this to work with Apache 2.2 / mod_layout 5.1

I've filtered though this thread for most of the day (as it has the most information related to my issues) and I still cannot get the ads to show on client sites.

-I have followed the instructions to the dot:
-downloaded mod_layout 5.1 for Apache 2.2
-unzipped & edited Makefile to show path to APXS
-make, make install....
-verified in phpinfo.php that mod_layout is showing as a handler
-downloaded and unzipped the other zip to /scripts
-edited mod-layout.conf.php to show valid values (root account packages no reseller prefix)
-renamed postwwwacct.php to postwwwacct and chmod 755
-restarted httpd.conf

On WHM account creation, I see where it runs postwwwacct:

Code:
System has 1 free ip.

Running post creation scripts (/scripts/legacypostwwwacct, /scripts/postwwwacct, /scripts/postwwwacctuser)......Done
This is my mod-layout.conf.php:

Code:
<?php
/**
 * /scripts/postwwwacct configuaration for mod-layout ...
 */
$config = array(
	'admine' => 'removed on purpose', # Administration email address, MAKE SURE YOU CAN READ THESE EMAILS
	'timestamp' => DATE_RFC822, # Date format, for most people default is good
	'httpd.conf' => '/usr/local/apache/conf/httpd.conf', # Location of httpd.conf to edit
	'plans' => array( # Array of plans you want to apply ads on
		'Free Hosting', # Plan one and then a comma ( if only one plan no comma needed after it's name )
		'free' # Plan two NO COMMA because there are no more plans ....
	),
	'ads' => array(
		'header' => '/home/inxangoo/public_html/ad.html', # HTML file containing the code for header ads
		'footer' => '/home/inxangoo/public_html/powered.html' # HTML file containing the code for footer ads
	),
);
?>
I am 100% stumped at this point and will take whatever assistance I can get.
 

krakjoe

stop staring
NLC
If you'd like to PM/Email me a login for this server Il'l have a look for you ... happy new year :)
 

theraptor

Active Member
Code:
	'plans' => array( # Array of plans you want to apply ads on
		'Free Hosting', # Plan one and then a comma ( if only one plan no comma needed after it's name )
		'free' # Plan two NO COMMA because there are no more plans ....
.
Your plan names are incorrect. You want the backend plan names, which in cPanel are

'yourcpusername_planname' format. just click "edit plan" in whm to see the backend plan name
 

OpticHosts

New Member
Hey Guys,

I know this thread is getting quite old, however i have been looking for something like this for some time. Just happened to really get into it today. Is there any ways to have the Scripts posted again for download. The link is broken from previous posts.

Thanks in advance.
 
Top