The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Entropy Banner and Rand HTML problem

Discussion in 'General Discussion' started by sodapopinski, Jan 4, 2003.

  1. sodapopinski

    sodapopinski Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    79
    Likes Received:
    0
    Trophy Points:
    6
    One of my client has already put the following commands into his .shtml file:

    &!--#exec cmd=&/usr/local/cpanel/cgi-sys/entropybanner.cgi hisusername&--&
    &!--#exec cmd=&/usr/local/cpanel/cgi-sys/randhtml.cgi hisusername&--&

    But it does not work, he tried to browse it and got a blank page.

    My server using suexec and I have already tried http://forums.cpanel.net/read.php?TID=6479 but still does not resolve the problem.

    Any idea how to fix it?

    Thanks in advance.
     
  2. hostalia

    hostalia Member
    PartnerNOC

    Joined:
    Apr 3, 2002
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Same problema here!

    Any idea on how to solve this?

    Thank you
     
  3. Doctor

    Doctor Well-Known Member

    Joined:
    Apr 26, 2003
    Messages:
    180
    Likes Received:
    0
    Trophy Points:
    16
    Just do the following:

    cd /home/username/public_html/cgi-bin

    cp /usr/local/cpanel/cgi-sys/entropybanner.cgi entropybanner.cgi

    Then, use <!--#exec cmd="cgi-bin/entropybanner.cgi"--> in your .shtml pages that you want the banner to display.

    The problem is after the upgrade, CPanel no longer copies entropybanner.cgi to the user's cgi-bin. And because of suexec, calling entropybanner.cgi from /usr/local/cpanel/cgi-sys/ won't work. The same solution should apply to randhtml.cgi if any of you happens to have a problem displaying your random codes.
     
Loading...

Share This Page