<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"OCR A Extended";
        panose-1:2 1 5 9 2 1 2 1 3 3;}
@font-face
        {font-family:Stencil;
        panose-1:4 4 9 5 13 8 2 2 4 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>I have multiple custom web pages on 4.3.0.0-beta2.<o:p></o:p></p><p class=MsoNormal>The .html files are in the /var/www/html directory<o:p></o:p></p><p class=MsoNormal>The associated cgi-bin files are in /var/www/cgi-bin/kw/xymon directory or /var/www/cgi-bin directory<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>If I place a simple test web page env.html that just lists the environment variables that apache know about in my new Xymon 4.3.10 server,<o:p></o:p></p><p class=MsoNormal>I cannot get the screen to come up.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>If I place the web page in:  /home/xymon/server/www directory, (linked it) the screen will come up just fine.<o:p></o:p></p><p class=MsoNormal>But the env.sh and proccgi.c files are not available to the script so the interaction will not work.<o:p></o:p></p><p class=MsoNormal>‘proccgi.c’ program is called in the env.sh script and it gathers the POST variables and passed them to your script env.sh as FORM_variable1 … FORM_variable2, etc.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>If I place the cgi-bin program and script in the /home/xymon/cgi-bin directory, the web page cannot find the cgi script env.sh.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Is there a way to modify the httpd.conf to allow it to see both locations for web pages and for cgi-bin script?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This has brought my porting of the system to a halt!  :=(<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>All assistance is greatly appreciated!<o:p></o:p></p><p class=MsoNormal>I know that there must be some simple way to modify the apache configs files to allow this to happen, but I have not found it yet.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>If anyone wants to try the simple script, I can send them:    env.html env.sh and proccgi.c<o:p></o:p></p><p class=MsoNormal>I use this simple script for testing first.<o:p></o:p></p><p class=MsoNormal>It works just fine on my older Xymon servers and my Asterisk VoIP (PiaF) servers, etc.  All are CentOS servers.<o:p></o:p></p><p class=MsoNormal>I have even use it to test PBX-in-a-Flash(PiaF) VoIP Servers on the Raspberry Pi with success.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='text-indent:.5in;text-autospace:none'><b><i><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'>Thanks,<o:p></o:p></span></i></b></p><p class=MsoNormal style='text-indent:.5in;text-autospace:none'><b><i><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></i></b></p><p class=MsoNormal style='text-indent:.5in;text-autospace:none'><b><i><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'>Tom Schmitt<o:p></o:p></span></i></b></p><p class=MsoNormal style='text-indent:.5in;text-autospace:none'><i><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'>Senior IT Staff - R&D</span></i><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'><o:p></o:p></span></p><p class=MsoNormal style='text-indent:.5in;text-autospace:none'><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'>L-3 Communication Systems West<o:p></o:p></span></p><p class=MsoNormal style='text-indent:.5in;text-autospace:none'><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'>640 North 2200 West    P.O. Box 16850<o:p></o:p></span></p><p class=MsoNormal style='text-indent:.5in;text-autospace:none'><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'>Salt Lake City, UT  84116<o:p></o:p></span></p><p class=MsoNormal style='text-indent:.5in;text-autospace:none'><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'>Phone (801) <i>594-3030</i><o:p></o:p></span></p><p class=MsoNormal style='text-indent:.5in;text-autospace:none'><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'>Cell      (801) 231-7230<o:p></o:p></span></p><p class=MsoNormal style='text-indent:.5in;text-autospace:none'><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'>eFax    (470) 201-6644<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.25in;text-indent:.25in;text-autospace:none'><b><i><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'>            </span></i></b><b><span style='font-size:8.0pt;font-family:"OCR A Extended"'>\\\\||////</span></b><b><i><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'><o:p></o:p></span></i></b></p><p class=MsoNormal style='margin-left:.25in;text-indent:.25in;text-autospace:none'><b><i><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'>               </span></i></b><b><span style='font-size:8.0pt;font-family:"OCR A Extended"'>\ ~  ~ /  </span></b><b><i><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'><o:p></o:p></span></i></b></p><p class=MsoNormal style='margin-left:.25in;text-indent:.25in;text-autospace:none'><b><i><span style='font-size:8.0pt;font-family:"Arial","sans-serif"'>               </span></i></b><b><span style='font-size:8.0pt;font-family:"OCR A Extended"'>| @  @ |<o:p></o:p></span></b></p><p class=MsoNormal style='margin-left:.25in;text-indent:.25in;text-autospace:none'><b><span style='font-size:8.0pt;font-family:"OCR A Extended"'>--oOo---(_)---oOo--<o:p></o:p></span></b></p><p class=MsoNormal style='margin-left:.25in;text-indent:.25in;text-autospace:none'><b><span style='font-size:8.0pt;font-family:"OCR A Extended"'> Have A Nice Day !<o:p></o:p></span></b></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b><span style='font-size:9.0pt;font-family:Stencil;color:#7030A0'>It is not necessary to change.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;font-family:Stencil;color:#7030A0'>Survival is not mandatory.<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;font-family:Stencil;color:#7030A0'>        -- W. Edwards Deming<o:p></o:p></span></b></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>