<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1003338" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1003338</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-cgi-form#comment-1014662</link>
    <description> &lt;p&gt;Okay, regarding #4 and #5. Your domain might be &lt;a href=&quot;http://www.yourdomain.com,&quot; class=&quot;bb-url&quot;&gt;www.yourdomain.com,&lt;/a&gt;  but that&#039;s not how the hosts server sees your site. To them, it&#039;s just a folder like Windows uses. Depending on how their server is set-up, you reside in a folder that has to do with your member name or company name. So, let&#039;s say when you signed on you chose membername as &quot;brooke&quot;. You&#039;d be in a folder named /home/brooke/public_html or in /usr/brooke/www or any of millions of other server paths. That&#039;s information you should have gotten when you signed up for the service. If you use an FTP client to upload files, look in the top of the remote server box (that&#039;s probably the one on the right in most FTP programs) when you log into your account. That will display the server path.&lt;/p&gt;
&lt;p&gt;Near the top of most scripts there will be a line that tells the script how to find itself on the server. It&#039;ll read something like:&lt;br /&gt;
$basedir = &#039;/home/brooke/public_html/cgi-bin/&#039;;&lt;/p&gt;
&lt;p&gt;That line MUST be set to the correct path to where you placed the file on the server. If it&#039;s wrong, it&#039;ll get a 500 error EVERY time. It&#039;s the same thing is with the path to sendmail. Sendmail is a program that resides on the hosts server and .... &amp;lt;drumroll&amp;gt; ... sends out the mail. In this case you&#039;re using a script that&#039;s taking input and mailing it to you. So it needs to find the sendmail program to do so. You need to tell it where to look to find that program. Most hosts have it installed in either /usr/lib/sendmail or in /usr/sbin/sendmail. So you need to enter the right path into the script in a line like:&lt;br /&gt;
$mailprog = &#039;/usr/sbin/sendmail&#039;;&lt;/p&gt;
&lt;p&gt;Again, if the script can&#039;t find the Sendmail program when it tries to mail you you&#039;ll get a 500 error. Write your hosting company tech support to get the right paths to:&lt;br /&gt;
Perl&lt;br /&gt;
Sendmail&lt;br /&gt;
Date&lt;br /&gt;
cgi-bin&lt;br /&gt;
your file directories&lt;/p&gt;
&lt;p&gt;All that information is 100% necessary to get CGI scripts working correctly and should already have been provided to you. If you don&#039;t have it, get it.&lt;/p&gt;
 </description>
     <pubDate>Wed, 15 Mar 2000 00:13:00 +0000</pubDate>
 <dc:creator>Maverick</dc:creator>
 <guid isPermaLink="false">comment 1014662 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-cgi-form#comment-1014661</link>
    <description> &lt;p&gt;Thank you so much.  I will check to see which of those might be wrong.&lt;/p&gt;
&lt;p&gt;Another questions.  Sorry for the ignorance - I completely understand #1-3, but don&#039;t understand 4, and am unsure about 5.  Could you explain those two parts to me?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Brooke&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
Providing quality websites for businesses and individuals!&lt;br /&gt;
 &lt;a href=&quot;http://www.cataluna.com&quot; class=&quot;bb-url&quot;&gt;www.cataluna.com&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 14 Mar 2000 22:01:00 +0000</pubDate>
 <dc:creator>Brooke</dc:creator>
 <guid isPermaLink="false">comment 1014661 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/help-cgi-form#comment-1014660</link>
    <description> &lt;p&gt;A 500 error is sort of a catch-all CGI error message. It says something is wrong, but does nothing to help you find out what it is. If you have the server error logs that would help.&lt;/p&gt;
&lt;p&gt;Since you&#039;re using a canned script, it&#039;s 99% likely that the script is okay and you just have it misconfigured.&lt;/p&gt;
&lt;p&gt;5 things to check:&lt;/p&gt;
&lt;p&gt;1) Upload the script in Ascii mode. Uploading in binary usually breaks it.&lt;br /&gt;
2) Check the shebang line, the one that reads something like &quot;#!/usr/bin/perl&quot; or &quot;#!/usr/lib/perl&quot;. Make sure it&#039;s the correct path to Perl on your server.&lt;br /&gt;
3) Check file permissions. The script should be CHMod-ed to 755. Read the installation instructions for file permissions on any secondary files like logs, etc.&lt;br /&gt;
4) Check path to the files. That should be something like /home/username/public_html/cgi-bin or /usr/domain/www/cgi-bin or something similar. Make sure it&#039;s correct for your server path.&lt;br /&gt;
5) Check the line that&#039;s the path to sendmail. It should be something like /usr/sbin/sendmail or something similar. Again, make sure it&#039;s correct for your server.&lt;/p&gt;
&lt;p&gt;I&#039;d be willing to bet a huge sum of money that it&#039;s one of those 5 things that&#039;s causing the trouble. It almost always is.&lt;/p&gt;
 </description>
     <pubDate>Tue, 14 Mar 2000 21:57:00 +0000</pubDate>
 <dc:creator>Maverick</dc:creator>
 <guid isPermaLink="false">comment 1014660 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
