chakky

Well-Known Member
Sep 22, 2002
58
0
156
Hi,

Anyone know what all I should do to the server to get entropybanner to work.
It just doesnot seem to work.

In httpd.conf,the virtual host entry in the server,
I gave the entry

&Directory '/home/user/'&
Options +Includes +ExecCGI
&/Directory&

Then I restarted httpd, called the SSI line
in a test.shtml
&!--#exec cmd=&/usr/local/cpanel/cgi-sys/entropybanner.cgi user&--&

All client side setup was correct.

Any solution to this?
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,576
9
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
[quote:c5ce273067][i:c5ce273067]Originally posted by chakky[/i:c5ce273067]

Hi,

Anyone know what all I should do to the server to get entropybanner to work.
It just doesnot seem to work.

In httpd.conf,the virtual host entry in the server,
I gave the entry

&Directory '/home/user/'&
Options +Includes +ExecCGI
&/Directory&

Then I restarted httpd, called the SSI line
in a test.shtml
&!--#exec cmd=&/usr/local/cpanel/cgi-sys/entropybanner.cgi user&--&

All client side setup was correct.

Any solution to this?


[/quote:c5ce273067]

Change your include to
&!--#exec cmd=&/cgi-sys/entropybanner.cgi user&--&

That should do it.
 

shann

Well-Known Member
Jul 5, 2002
366
0
166
cPanel Access Level
Website Owner
try this

Hi,

open up a .htaccess file and place follwing lines.

Options +Includes
XBitHack on


then make your xx.shtml to excutable.

chmod +x xxx.shtml.

hope it helps.

Thansk
Shann
 

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.
 

anton_latvia

Well-Known Member
PartnerNOC
May 11, 2004
378
10
168
Latvia
cPanel Access Level
Root Administrator
Doctor, may you could help me with this script?..
In .shtml file customer has the following line:
<!--#exec cmd="cgi-bin/entropybanner.cgi"-->

But it does not work. In HTML source I can clearly see this line without changes, just as simple HTML. I have checked SSI with <!--#include file="test.txt"--> and it worked. Also entropybanner.cgi exists in /home/userdir/www/cgi-bin/ and it is writeable and belongs to the user.user group.

If I look in /usr/local/apache/logs/suexec_log I can see the following line:

[2005-01-03 11:10:17]: info: (target/actual) uid: (vaulenil/vaulenil) gid: (vaulenil/vaulenil) cmd: cgi-bin/entropybanner.cgi

Any ideas why it does not work?

ADDED: if I try just simple to run it from commandline as root I get the following error:
-bash: cgi-bin/entropybanner.cgi: /usr/libexec/ld-elf.so.1: bad ELF interpreter: No such file or directory

Could that be a reason? How to solve it?
 
Last edited:

t9clkclnr

Well-Known Member
Jun 11, 2004
254
0
166
Southern California
another problem you may encounter

I have users who like to try and code in PHP and have set handlers for php as shtml extensions in their htaccess file.

This will cause entropy to also not work
checking this in addition to this:

cd /home/username/public_html/cgi-bin

cp /usr/local/cpanel/cgi-sys/entropybanner.cgi entropybanner.cgi
fixes it everytime for me.
 

micromag

Registered
May 10, 2005
1
0
151
entropyBanner is not working for us also: blank screen.

Our service provider told us that this is due a CPANEL problem (nightly automatic update)

and they can not do nothing due this is a CPANEL issue.

this makes sense?

Thanks.
 

sparek-3

Well-Known Member
Aug 10, 2002
1,929
178
343
cPanel Access Level
Root Administrator
Just out of curiousity, are you using a page in your public_html directory that makes SSI calls to the entropybanner.cgi script or is the page in a subdirectory, beneath your public_html?
 

neo32

Registered
Apr 9, 2006
4
0
151
hello,

If you have tried copying the entropybanner.cgi from usr/local/cpanel/cgi-sys

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

and still that doesnt resolve the situation, then please try changing the ownership of pulic_html folder from user.nobody to user.user this resolved the same situiation once at our end.

Regards,
Neo32
 

testlog_4u

Active Member
Sep 17, 2007
42
0
56
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.
I have copied it but no luck..:(

I am facing the same issue while accessing index.shtml page

Error : Could not chdir into /home/user/public_html/../.entropybanner/:
 

nzservers

Well-Known Member
Oct 27, 2002
81
0
156
use <!--#exec cgi="cgi-bin/entropybanner.cgi"-->

not <!--#exec cmd="cgi-bin/entropybanner.cgi"-->