logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in  RSS Apache Lounge  


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.



Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: cscript.exe via mod_fcgid.so and FcgidWrapper
Author
Arkady



Joined: 14 Jul 2016
Posts: 1
Location: Russia Vladivostok

PostPosted: Thu 14 Jul '16 10:41    Post subject: cscript.exe via mod_fcgid.so and FcgidWrapper Reply with quote

I used to set up cscript.exe according to the technology of cgi. Are you trying to connect cscript.exe now on the technology of fast-cgi. Can How to do it? May need to Refine the module mod_fcgid.so. Now I get the error "Internal server error" in the error file error.log entry: "End of script output before headers: test.wsf".

test.wsf:
Code:
<job>
<script>
// language="VBScript">

WScript.Echo("Content-Type: text/html\r\n\r\n");
WScript.Echo("<html><body>\n\n");

var WshShell = WScript.CreateObject("WScript.Shell");

var s="", u="", v="", p="";
// тип SYSTEM
WshEnvirSys = new Enumerator(WshShell.Environment("SYSTEM"));
// тип USER
WshEnvirUsr1 = new Enumerator(WshShell.Environment("USER"));
// тип VOLATILE
WshEnvirVol = new Enumerator(WshShell.Environment("VOLATILE"));
// тип PROCESS
WshEnvirProc = new Enumerator(WshShell.Environment("PROCESS"));
 
for (; !WshEnvirSys.atEnd(); WshEnvirSys.moveNext())
s+=WshEnvirSys.item()+"<br>\n";
for (; !WshEnvirUsr1.atEnd(); WshEnvirUsr1.moveNext())
u+=WshEnvirUsr1.item()+"<br>\n";
for (; !WshEnvirVol.atEnd(); WshEnvirVol.moveNext())
v+=WshEnvirVol.item()+"<br>\n";
for (; !WshEnvirProc.atEnd(); WshEnvirProc.moveNext())
p+=WshEnvirProc.item()+"<br>\n";
 
WScript.Echo ( "Системные:<br>\n<br>\n" + s);
WScript.Echo ( "Пользовательские:<br>\n<br>\n" + u);
WScript.Echo ( "Временные:<br>\n<br>\n" + v);
WScript.Echo ( "Текущий процесс:<br>\n<br>\n" + p);

WScript.Echo("</body></html>\n");


</script>   
</job>


lines into httpd.conf:
Code:
...
LoadModule fcgid_module modules/mod_fcgid.so
...
    AddHandler fcgid-script .wsf
    FcgidWrapper "C:/Windows/SysWOW64/cscript.exe //Nologo" .wsf
...
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6846
Location: Germany, Next to Hamburg

PostPosted: Thu 21 Jul '16 23:38    Post subject: Reply with quote

CScript.exe nor WScript.exe is able to run as fastcgi. It isn't a problem from mod_fcgid, but the CSrcript.
Back to top


Reply to topic   Topic: cscript.exe via mod_fcgid.so and FcgidWrapper View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules