PDA

View Full Version : Quick mod_layout?


Hello
04-06-2005, 05:32 PM
I will be using Mod_layout to put ads on sites, but I am not sure how to make it so that everyone will have ads. I will be hosting a lot of people, and don't think that I can add the code for each site manually, is there a way to state so that all accounts get ads?

Thanks

BRMike
04-07-2005, 01:42 PM
What are you using to setup these accounts?

Hello
04-07-2005, 04:02 PM
What are you using to setup these accounts?

I will be using WHM Autopilot

BRMike
04-08-2005, 01:58 AM
Then you are going to be using CPanel to host the accounts, just add the mod_layout directives to the template used by WHM to create the virtual host entries.

Hello
04-09-2005, 12:57 PM
Then you are going to be using CPanel to host the accounts, just add the mod_layout directives to the template used by WHM to create the virtual host entries.


So I just edit /scripts/wwwact to also add the mod_layout files to httpd.conf?

BRMike
04-10-2005, 07:43 AM
I do not use CPanel personally, so specifics would be hard to give. CPanel.net's forums might have something, but I have heard bad things about the support over there.

In any event download and install mod_layout, then locate the file that is used as the template for all new virtual host entries created by CPanel and add the mod_layout directives to that.

Hello
04-10-2005, 04:02 PM
I do not use CPanel personally, so specifics would be hard to give. CPanel.net's forums might have something, but I have heard bad things about the support over there.

In any event download and install mod_layout, then locate the file that is used as the template for all new virtual host entries created by CPanel and add the mod_layout directives to that.

I found a better method which includes putting the following in the .htaccess file:

php_value auto_prepend_file /home/ad.php
AddType application/x-httpd-php htm
AddType application/x-httpd-php html


But when I do that, any php redirect scripts and some scripts that redirect do not work because it is changing the header (so the error is that header is already beind sent).

Any way to fix this problem?

BRMike
04-10-2005, 04:57 PM
I personally use mod_layout which works wonderfully for me. I have yet to find a site that mod_layout didn't work on unless users tried to use work-arounds (most holes were fixed for the work-arounds as well).