Well I am clearly just not “getting it” when it comes to cgiemail.
And I might add it’s starting to hurt my head.
I recovered a website for a user whose host died completely (as a result of a hack) and they lost everything. I used http://wayback.archive.org/web/ to recover all the pages and graphics, then lots of editing with Notepad++ to put things back together. And now I am hosting it while I try and fix it up.
There is a cgiemail form embedded in one of the pages. I have checked the script embedded in that page and everything seems ok with it… Some of which is -
Obviously the content of cgi-bin and its subfolders are not accessible from the wayback archives.
So I have been reading (heaps) and have downloaded and subsequently uploaded the CGI source files to my www.domainname.com site.
I renamed the cgiemail and cgiecho to add .cgi extension.
I changed the permissions of everything in and under domainname.com/cgi-bin to 755
Whenever I try the form, I click on Send, and all it does is open the text file (the email template .txt file) in a browser.
I normally use Chrome but tried IE as well. No change.
Trying the testce file, same thing happens - all I get to see is the testce.txt file in its raw form, like this…
To: [cgiemail], [required-webmaster]
Subject: [os] cgiemail-[required-release] up in [min] minutes
I asked Dreamhost for help with the live chat and they directed me to a relatively useless Wiki page.
I just found this wiki as well. More in-depth, but I don’t understand a lot of it as well.
Perhaps I am overlooking something to do with CGI scripts… There’s certainly something that i just don’t “get”.
Anyone got any advice or essential reading?[hr]
I just went right back to basic…
Made a file questions.html
Your e-mail address:
Your favourite colour:
put it in www.domainname.com
(not my real domain)
Made a text file questions.txt
Put it in same place
Content of that file is
Subject: questions three
What is your name? [yourname]
What is your quest? [quest]
What is your favourite colour? [colour]
Changed permission of both files to 755
When I visit questions.html and fill in the form and click on Submit, all I see is a web page displaying the content of the file questions.txt exactly as it appears above, without fields being filled in.