My Web Host is Out to Lunch
cgi-bin, and Yes, I could run Perl scripts but, No, they did not know the path to Perl. (No kidding.) If you're trying to install NMS FormMail and your web host's technical support is similarily "out to lunch" (either literally or figuratively) but you know you have a
cgi-bin then don't give up just yet. First of all, you have just reached the bottom line of hardcore web development which clearly states:
YOU ARE YOUR OWN TECHNICAL SUPPORT.Now..
Bravely step forward, take a deep breath, yell "I'm as mad as hell and I'm not going to take it anymore!" (optional) and then try the following steps to derive the correct path to Perl (a.k.a. shebang line). This will then allow you to run a special Perl script which will guess the correct path to Sendmail.
(If you already know the path to Perl and are now just trying to get your path to Sendmail, click here.)
Okay let's do it to it...
- Copy and paste the simple "Hello World" test script that appears below into a good text editor (like Metapad) that can convert text to Unix line endings.
- Save this script as
test.plusing UNIX LINE ENDINGS. (To convert to Unix line endings in Metapad, press Ctrl + 2 on your keyboard.) - Upload
test.plto yourcgi-bindirectory (or your website's equivalent likecgiorcgi-lib). Make sure you upload it in ASCII MODE (instead of binary). - Use the
chmodcommand in your FTP program or use your website's control panel to change the file permissions oftest.plto 755 (rwx r-x r-x). - Type
http://www.your_site.com/cgi-bin/test.plinto the address bar of your browser and hit GO. (Replacewww.your_site.comwith your domain name.) - Your web browser should now display a blank page with the words "hello world!" printed on it.

IF THIS WORKED:
The first line of code in thetest.plscript that is currently in yourcgi-binis the correct path to the Perl interpreter installed on your web server's computer. Save this version of test.pl to your hard drive for future reference and then continue on to step #7 below.IF THIS DID NOT WORK:
The first line of code in thetest.plscript that is currently in yourcgi-binis probably not the correct path to the Perl interpreter installed on your web server's computer. Go back to step #1 and click on the "Switch shebang line" button. Then repeat steps 1 through 6. - Okay now that we have the correct path to Perl, we can run Perl scripts on your website. So altogether now— "Yeah? And?" (*chuckle*) Well, as fortune would have it, there is a free Perl script out there to be had that can be used to derive the correct path to Sendmail. Visit the good people at perlscriptsjavascripts.com and download your free copy of e-Vars, a neat little program which will —among other things— make a pretty good attempt at guessing your web server's path to Sendmail.
- After downloading and unpacking the
vars.zipfile, upload it to your cgi-bin and then use thechmodcommand in your FTP program or use your website's control panel to change the file permissions ofmyserver.cgito 755 (you should be familiar with this process by now). - Type
http://www.your_site.com/cgi-bin/myserver.cgiinto the address bar of your browser and hit GO. (Replacewww.your_site.comwith your domain name.) - Your web browser should now display a detailed list of environment variables as well as the Path(s) to Sendmail configured on your web server.
And there ya go.
Technical support? ...Bah!
We don't need no stinkin' technical support!!!
| <~ BACK | TOP | NEXT ~> |
