We have clients using the cPanel randhtml.cgi script to display random 'sayings' on their web site via SSI. It works when it's running through Apache but you get no output when the SSI is handled by LSWS.
Please let me know if you need any other information.
1) Ensure that "Random Html Generator" is enabled in default features (or any set of features that you use)
2) Create a cPanel account
3) Log into that cPanel account
4) Click on 'CGI Center'
5) Click on 'Random HTML Generator'
6) Enter some text
7) create a .shtml page with the code they give you:
What version of cPanel/WHM are you running? The sample code I gave (and what our client is running) does not have the user-id at the end of the code (see my example). The code works. With Apache the get random quotes (that's what they put in for the text) and under LSWS it's just blank.
should be ok too.since it's same size as the one under public_html/cgi-bin at our cPanel box. so my previous suggestion about "cp -a ..." may not needed.
OK. Copied the newer cPanel binary over to the site. Changed the LSWS config so .shtml is no longer passed to Apache. Restarted LSWS. Does not work. In the error_log I see 'Premature end of response header.' for this site. If I add the user-id into the virtual statement I get an error (unable to process this directive).