Closed Thread
Page 5 of 7 FirstFirst ... 34567 LastLast
Results 61 to 75 of 93

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

  1. #61
    FWS Addict sellwhm has a spectacular aura about sellwhm's Avatar
    Join Date
    Jul 2006
    Location
    United States
    Posts
    595
    I found out how to install mod_layout correctly and I do have forced ads now. http://ralph.0cpanel.com

    Code:
    cd /usr/local/src
    wget http://0cpanel.com/mod_layout-3.2.1.tar.gz
    tar xvfz mod_layout-3.2.1.tar.gz
    cd mod*
    make clean
    make
    make install
    service httpd restart
    This is for apache 1.3 and make sure that you have enable curl ssl with your php4 and php5.

    I ran php -q /home/someuser/public_html/ipanel/cron/cronjob.php --job=httpd_conf --debug --force --verbose to force the ads whenever I felt like the cronjob wasn't doing its job......
    Last edited by sellwhm; March 21st, 2008 at 19:26.
    Take me to your leader

  2. #62
    Pro Member ihostdev is on a distinguished road
    Join Date
    May 2005
    Posts
    383
    i would suggest reinstalling mod_layout and using v3.4 as they fixed some issues.
    iHostDev.com - Automate your paid or free hosting business's with our software including forced ads
    BoxDemos.com - Lower your support tickets with flash tutorials
    VPSNow.net - Affordable VPS Hosting Solutions including iPanel FREE

  3. #63
    Pro Member Chris.S can only hope to improve
    Join Date
    Sep 2005
    Posts
    420
    Does anyone have the download that krakjoe posted? None of the links work anymore

  4. #64
    stop staring krakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to behold krakjoe's Avatar
    Join Date
    May 2006
    Location
    UK
    Posts
    3,616
    sorry I forgot it was there ....

    http://interviolet.com/temp/mod-layout-php.zip
    (\__/) Joe Watkins
    (='.'=) Software Architect
    (")_(") http://pthreads.org
    Copy and paste bunny into your sig, help him gain world domination.

  5. #65
    The Hosting Tool JonnyH is a name known to allJonnyH is a name known to allJonnyH is a name known to allJonnyH is a name known to allJonnyH is a name known to allJonnyH is a name known to allJonnyH is a name known to all JonnyH's Avatar
    Join Date
    Oct 2006
    Location
    UK
    Posts
    2,616
    Joe, I'm struggling to get this to work. I'm using mod layout for apache 2.2, does that affect it ?

    With linebreaks do you mean the whole config. So no line breaks anywhere? I edited the config to this:
    PHP Code:
    <?php $config = array('admine' => 'Jonnyhux@gmail.com','timestamp' => DATE_RFC822'httpd.conf' => '/usr/local/apache/conf/httpd.conf''plans' => array('adsplan'),'ads' => array('header' => '/home/***/adsh.html''footer' => '/home/***/adsf.html')); ?>
    I don't think it's running at all. I edited the emails, so it sends nevermind the package and added a array at the top. Still didn't send anything..
    Last edited by JonnyH; August 28th, 2008 at 05:22.
    ~ The Hosting Tool ~ cPanel WHM/DA Support! cP Creator Importer! Post 2 Host! Fully Automated! ~ thehostingtool.com

  6. #66
    stop staring krakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to behold krakjoe's Avatar
    Join Date
    May 2006
    Location
    UK
    Posts
    3,616
    Tried using full plan names ?
    (\__/) Joe Watkins
    (='.'=) Software Architect
    (")_(") http://pthreads.org
    Copy and paste bunny into your sig, help him gain world domination.

  7. #67
    The Hosting Tool JonnyH is a name known to allJonnyH is a name known to allJonnyH is a name known to allJonnyH is a name known to allJonnyH is a name known to allJonnyH is a name known to allJonnyH is a name known to all JonnyH's Avatar
    Join Date
    Oct 2006
    Location
    UK
    Posts
    2,616
    It's a root plan. Doesn't use usernames.
    ~ The Hosting Tool ~ cPanel WHM/DA Support! cP Creator Importer! Post 2 Host! Fully Automated! ~ thehostingtool.com

  8. #68
    stop staring krakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to behold krakjoe's Avatar
    Join Date
    May 2006
    Location
    UK
    Posts
    3,616
    Well the line breaks thing was only for if you had the comments left in, which you don't need and don't have ...

    When I wrote the code apache2.2 was available, and I tested on all versions that there were, I remember, because it took forever to build all the versions ...

    1. Make certain that mod_layout is installed, have a look at server signature on a 404, or make manual edits to httpd.conf to place ads on an account ( make sure you restart apache after httpd.conf edits )
    2. Check the file is named /scripts/postwwwacct NOT /scripts/postwwwacct.php
    3. Check permissions on the file, make certain it's executable ( +x | 0755 | 755 )
    4. Add
    PHP Code:
    echo "<pre>";
    print_r$whm );
    print_r$config ) ;
    print_r$email );
    echo 
    "</pre>"
    right at the end of the script
    5. Make an account inside of WHM as root, copy and paste all the output ( displayed after the stupid ajax thing goes away ) to a pm or this thread, so I can have a look see at it ...
    (\__/) Joe Watkins
    (='.'=) Software Architect
    (")_(") http://pthreads.org
    Copy and paste bunny into your sig, help him gain world domination.

  9. #69
    The Hosting Tool JonnyH is a name known to allJonnyH is a name known to allJonnyH is a name known to allJonnyH is a name known to allJonnyH is a name known to allJonnyH is a name known to allJonnyH is a name known to all JonnyH's Avatar
    Join Date
    Oct 2006
    Location
    UK
    Posts
    2,616
    I think I know whats up with it.
    Too bad i'm setting off soon and won't be on untill tommorrow. I'll get a response back to you.
    ~ The Hosting Tool ~ cPanel WHM/DA Support! cP Creator Importer! Post 2 Host! Fully Automated! ~ thehostingtool.com

  10. #70

  11. #71
    JSHosts.com [JSH]John is a glorious beacon of light[JSH]John is a glorious beacon of light[JSH]John is a glorious beacon of light[JSH]John is a glorious beacon of light[JSH]John is a glorious beacon of light[JSH]John is a glorious beacon of light [JSH]John's Avatar
    Join Date
    Aug 2005
    Location
    Newcastle, UK
    Posts
    1,957
    Can you not download it from the link Joe posted hamster?

    http://interviolet.com/temp/mod-layout-php.zip
    JSHosts - UK Web Hosting
    Web Hosting | Reseller Hosting | OpenVZ VPS | Xen VPS
    cPanel | Softaculous | CloudLinux | CloudFlare | R1Soft Backups

  12. #72
    Super Moderator hamster is a name known to allhamster is a name known to allhamster is a name known to allhamster is a name known to allhamster is a name known to allhamster is a name known to allhamster is a name known to all hamster's Avatar
    Join Date
    Jul 2007
    Location
    Singapore
    Posts
    2,634
    Can't seem to download it from there... not surprised though, my ISP has loads of problems. Anyway, I've already gotten my friend to download it and then send it to me, so I don't need a mirror anymore

  13. #73
    Pro Member william232 has disabled reputation
    Join Date
    Apr 2004
    Posts
    272
    Are you able to make it so it shows for a selected client of a certain reseller or hosting plan?

  14. #74
    stop staring krakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to beholdkrakjoe is a splendid one to behold krakjoe's Avatar
    Join Date
    May 2006
    Location
    UK
    Posts
    3,616
    It works per plan, so long as the root user sets up, you can force ads on whatever plans exist on the server from whatever reseller you like ...
    (\__/) Joe Watkins
    (='.'=) Software Architect
    (")_(") http://pthreads.org
    Copy and paste bunny into your sig, help him gain world domination.

  15. #75
    Im Da Man! DanTheMan is a jewel in the roughDanTheMan is a jewel in the rough DanTheMan's Avatar
    Join Date
    Jul 2005
    Posts
    1,444
    So does this script still work with the new updates and everything?
    My-FreeHost is a great new post2host I found!

Closed Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts