Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 12 of 12
  1. #1
    New to the CF scene
    Join Date
    Feb 2011
    Posts
    9
    Thanks
    3
    Thanked 0 Times in 0 Posts

    The requested URL /cgi-bin/cgiemail/mailtemp.txt was not found on this server.

    I'm not sure I'm posting in the right place, please correct me if I'm wrong.

    Recently, my client's hosting account was upgrading and something seems to have been lost in the shuffle. I'm the web designer, not a coding expert, so I could use help if you can spare the time!

    The form on this page no longer works:
    http://caboscuba.com/book_online.htm

    here's the error message that comes up: Not Found
    The requested URL /cgi-bin/cgiemail/mailtemp.txt was not found on this server.

    I don't see a cgi-bin at all in either my local files or online.

    What should I do?

    Thank you!!!

  • #2
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,877
    Thanks
    2
    Thanked 164 Times in 159 Posts
    If the directories were there prior to the upgrading and the form was working at that time, then it would appear that the host did something wrong in their upgrade and may need to restore the files from their tape backups. Have you or your client talked with the hosting support group?

  • #3
    New to the CF scene
    Join Date
    Feb 2011
    Posts
    9
    Thanks
    3
    Thanked 0 Times in 0 Posts
    I had to manually upload the site to the upgraded hosting account, so I'm assuming if there was a mistake it was mine. However, I saved the entire site and uploaded everything so I don't understand how a folder could have gone missing.

    I'm assuming that hosting support will tell me it's too late but it doesn't hurt to ask. I will try.

    If no dice there, what can I do to recreate the missing file?

  • #4
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,877
    Thanks
    2
    Thanked 164 Times in 159 Posts
    If the host can't/won't restore the files, then the only thing you can do is recreate the directories and then upload the files. I'm assuming you have a complete backup of the site.

    If you currently don't have a cgi-bin directory, then you'll need to talk with the host to find out what directory they have configured in the web server for the scripts and update your files accordingly.

  • #5
    New to the CF scene
    Join Date
    Feb 2011
    Posts
    9
    Thanks
    3
    Thanked 0 Times in 0 Posts
    this is where I get seriously confused. I DO have what I thought was a complete backup of the site, but there's no cgi-bin there either. I backed up the entire site. Is there any reason why this one folder would not be included? Does it behave differently somehow?

  • #6
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,877
    Thanks
    2
    Thanked 164 Times in 159 Posts
    There are 2 possibilities that I can think of and the first one not being very likely.

    1) The cgi-bin directory is located on a separate server and is accessed via an NFS mount point which was not available when you did your backup.

    2) The cgi-bin directory is normally parallel to the html directory (at the same path level) and you only backed up the html directory and not the cgi-bin directory. For example, a common path structure for a web server (for root) would be:

    /var/www/html
    /var/www/cgi-bin
    /var/www/error

    For standard users it would be:

    /home/user/www/html
    /home/user/www/cgi-bin
    /home/user/www/error

  • Users who have thanked FishMonger for this post:

    machepap (02-27-2011)

  • #7
    New to the CF scene
    Join Date
    Feb 2011
    Posts
    9
    Thanks
    3
    Thanked 0 Times in 0 Posts
    hmm, well in the html of the form itself there is this in the code:

    FORM METHOD="POST" ACTION="/cgi-bin/cgiemail/mailtemp.txt"

    Seems like this suggests the cgi-bin was in the same directory as everything else, right?

  • #8
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by machepap View Post
    hmm, well in the html of the form itself there is this in the code:

    FORM METHOD="POST" ACTION="/cgi-bin/cgiemail/mailtemp.txt"

    Seems like this suggests the cgi-bin was in the same directory as everything else, right?
    no, action attribute value is relative to the server document root but that doesn't means that cgi-bin is there because can be defined using ScriptAlias in the server config to be in another location, as Fishmonger said.

    best regards

  • #9
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,877
    Thanks
    2
    Thanked 164 Times in 159 Posts
    Your action attribute has a problem. The form needs to be processed by a cgi script and the server needs to be configured correctly to allow script execution in the specified directory as well as specifying the allowed file extensions for cgi scripts. The .txt extension is not normally used for cgi scripts. IMO, a web server administrator that configures/allows .txt files as cgi scripts doesn't know what (s)he is doing.

  • Users who have thanked FishMonger for this post:

    machepap (03-01-2011)

  • #10
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by FishMonger View Post
    Your action attribute has a problem. The form needs to be processed by a cgi script and the server needs to be configured correctly to allow script execution in the specified directory as well as specifying the allowed file extensions for cgi scripts. The .txt extension is not normally used for cgi scripts. IMO, a web server administrator that configures/allows .txt files as cgi scripts doesn't know what (s)he is doing.
    not sure if action attribute is a problem. I never use it but i think is this:

    http://web.mit.edu/wwwdev/cgiemail/webmaster.html

    look at this example:

    http://web.mit.edu/wwwdev/cgiemail/user.html#form

    best regards

  • Users who have thanked oesxyl for this post:

    machepap (03-01-2011)

  • #11
    New to the CF scene
    Join Date
    Feb 2011
    Posts
    9
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Thanks to you both. I've looked at the suggested links and it says that if the action were set wrong I'd see an error with a number near 500. Is this what you mean by "action attribution"? I'm seeing 404: Not Found.

    Sorry, this is all new to me.

    If the file extension .txt is causing the problem, what should I change it to?

    I wonder if this sheds any light on the situation: I just got off the phone with the web hosting company tech support and was told that the previous hosting account has not been disabled. I was able to look over everything there and found that it all works fine over there, exact same code, exact same configuration of files (at least in the directory with all the html files all is exactly the same). Here is the form in question in both places:

    not working

    working

  • #12
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by machepap View Post
    Thanks to you both. I've looked at the suggested links and it says that if the action were set wrong I'd see an error with a number near 500. Is this what you mean by "action attribution"? I'm seeing 404: Not Found.

    Sorry, this is all new to me.

    If the file extension .txt is causing the problem, what should I change it to?

    I wonder if this sheds any light on the situation: I just got off the phone with the web hosting company tech support and was told that the previous hosting account has not been disabled. I was able to look over everything there and found that it all works fine over there, exact same code, exact same configuration of files (at least in the directory with all the html files all is exactly the same). Here is the form in question in both places:

    not working

    working
    i don't think that cgimail is installed but to be honest i should not use it, see this:

    http://web.mit.edu/wwwdev/cgiemail/w....html#security

    the alternative is to write your own or to use something else, i have no idea what, maybe Fishmonger or somebody else know.

    best regards


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •