sodapopinski

Well-Known Member
Aug 13, 2001
90
2
308
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.
 

Doctor

Well-Known Member
Apr 26, 2003
180
0
166
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.