Client Support Community Server Status Contact Us Client Login
Email Hosting Website Hosting Reseller Hosting VPS Hosting Dedicated Servers

    Join our Community      Check your private messages       Profile       Search       FAQ       Memberlist       Log in


absolute newbie cgi-bin question (sorry!)

 
Post new topic   Reply to topic    NetHosted Community Index -> General Support
jonnymorris Reply with quote
 NetHosted Customer

 

 Joined: 22 May 2006
 Posts: 78
 

PostPosted: Wed Jun 14, 2006 10:00 pm    Post subject: absolute newbie cgi-bin question (sorry!)
 
Hi! Yes, sorry, I'm sure I've seen this documented somewhere but for the life of me can't find it now

I'm trying to create an email form, following the guide for cgiemail, but don't know where the ACTION link should point - in the example it points to ACTION="http://web.mit.edu/bin/cgiecho/wwwdev/cgiemail/questions3.txt" but I don't know how this relates to my setup. I have my email template file in the same place as my html page which has the form on it, (http://test.jonathanmortimer.co.uk/port/email_template) should it point to this? Do I have to point to the cgi script somewhere?

Please excuse me for appearing a bit dim here, I've never touched a cgi-bin before! I'm also wondering if it might be a good idea to have one of those 'type what you see here' things, and how complicated that would be to set up.

Thanks!
Back to top
View user's profile Send private message
NetHosted - Andrew Reply with quote
 NetHosted Staff

 

 Joined: 22 Mar 2004
 Posts: 5684
 

PostPosted: Wed Jun 14, 2006 10:10 pm    Post subject:
 
Hi,

Well your cgi-bin located here:

http://jonathanmortimer.co.uk/cgi-bin/ 

*however* a cgi-bin is created for each subdomain so:

http://test.jonathanmortimer.co.uk/cgi-bin/  is where cgi-bin scripts should be placed.

Andrew

_________________
| Andrew Bassett
| Managing Director, NetHosted Ltd.
| Resellers, take a look at overselling !
| Members, tell us what you think  of NetHosted!
Back to top
View user's profile Send private message
jonnymorris Reply with quote
 NetHosted Customer

 

 Joined: 22 May 2006
 Posts: 78
 

PostPosted: Wed Jun 14, 2006 10:55 pm    Post subject:
 
So should I place my email_template text file in the cgi-bin folder and set the ACTION link to that?
Back to top
View user's profile Send private message
NetHosted - Andrew Reply with quote
 NetHosted Staff

 

 Joined: 22 Mar 2004
 Posts: 5684
 

PostPosted: Wed Jun 14, 2006 11:15 pm    Post subject:
 
Place your txt files say in the "test" folder you have, then put the action link like this:

http://test.jonathanmortimer.co.uk/cgi-bin/cgiemail/test.txt 

Andrew

_________________
| Andrew Bassett
| Managing Director, NetHosted Ltd.
| Resellers, take a look at overselling !
| Members, tell us what you think  of NetHosted!
Back to top
View user's profile Send private message
jonnymorris Reply with quote
 NetHosted Customer

 

 Joined: 22 May 2006
 Posts: 78
 

PostPosted: Tue Apr 01, 2008 11:54 am    Post subject: Moved!
 
Been a long time, I know, but I've moved my portfolio and now the CGI appears to be messed up.

My portfolio website and contact form now reside in http://www.jonathanmortimer.co.uk/portfolio/ 

Where do I have to place my email_template file? How do I link to the cgi from my form so that it will pick up this file?

Thanks!
Back to top
View user's profile Send private message
NetHosted - Andrew Reply with quote
 NetHosted Staff

 

 Joined: 22 Mar 2004
 Posts: 5684
 

PostPosted: Tue Apr 01, 2008 12:36 pm    Post subject:
 
Hi,

Place the txt file inside your portfolio/cgi-bin/ folder. Then update your action link to reflect that new location.

Thanks,

Andrew

_________________
| Andrew Bassett
| Managing Director, NetHosted Ltd.
| Resellers, take a look at overselling !
| Members, tell us what you think  of NetHosted!
Back to top
View user's profile Send private message
jonnymorris Reply with quote
 NetHosted Customer

 

 Joined: 22 May 2006
 Posts: 78
 

PostPosted: Tue Apr 01, 2008 12:50 pm    Post subject:
 
I'm actually still in the /test2 folder, but it will be moved to /portfolio as soon as everything is finished.

I copied the cgi-bin folder from / to /test2 and updated my form action to point to http://www.jonathanmortimer.co.uk/test2/cgi-bin/cgiemail/email_template.txt 

but I get a 404 not found when I try to use the form to send an email.

My email_template.txt file is in the /test2/cgi-bin folder.
Back to top
View user's profile Send private message
Garry Reply with quote
 NetHosted Customer

 

 Joined: 03 Oct 2005
 Posts: 261
 Location: Lincoln, UK

PostPosted: Tue Apr 01, 2008 1:10 pm    Post subject:
 
Hi,

That URL has cgiemail as a folder but in http://www.jonathanmortimer.co.uk/test2/cgi-bin/ 

This is no cgiemail folder

Hope that helps

_________________
Regards,
Garry
Happy NetHosted Customer
Back to top
View user's profile Send private message
jonnymorris Reply with quote
 NetHosted Customer

 

 Joined: 22 May 2006
 Posts: 78
 

PostPosted: Tue Apr 01, 2008 1:57 pm    Post subject:
 
Garry wrote:
Hi,

That URL has cgiemail as a folder but in http://www.jonathanmortimer.co.uk/test2/cgi-bin/ 

This is no cgiemail folder

Hope that helps


Thanks for your reply.
I know cgiemail is a program, but how do I use it? It was working before when my portfolio was in / but now that I've moved things it seems to be broken.


Last edited by jonnymorris on Tue Apr 01, 2008 2:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
NetHosted - Andrew Reply with quote
 NetHosted Staff

 

 Joined: 22 Mar 2004
 Posts: 5684
 

PostPosted: Tue Apr 01, 2008 2:19 pm    Post subject:
 
It looks like you haven't created the subdomain test2, but simply created a directory test2. In that case you should use the cgi-bin folder located in your public_html foldler. You only use cgi-bin alternate cgi-bin folders when they have been created when you created a subdomain.

Thanks,

Andrew

_________________
| Andrew Bassett
| Managing Director, NetHosted Ltd.
| Resellers, take a look at overselling !
| Members, tell us what you think  of NetHosted!
Back to top
View user's profile Send private message
jonnymorris Reply with quote
 NetHosted Customer

 

 Joined: 22 May 2006
 Posts: 78
 

PostPosted: Tue Apr 01, 2008 2:21 pm    Post subject:
 
Ah, so I have to place my email_template.txt file in the /cgi-bin folder?

Oh no, it's OK, I have it working now. Placed email_template.txt in /
Seems very confusing!!
Back to top
View user's profile Send private message
NetHosted - Andrew Reply with quote
 NetHosted Staff

 

 Joined: 22 Mar 2004
 Posts: 5684
 

PostPosted: Tue Apr 01, 2008 2:52 pm    Post subject:
 
Well the cgi-bin folder is a special folder, you can't just create a cgi-bin folder it has to be created by cPanel when it creates your account or a subdomain on it.

Glad you have it working now!

Thanks,

Andrew

_________________
| Andrew Bassett
| Managing Director, NetHosted Ltd.
| Resellers, take a look at overselling !
| Members, tell us what you think  of NetHosted!
Back to top
View user's profile Send private message
jonnymorris Reply with quote
 NetHosted Customer

 

 Joined: 22 May 2006
 Posts: 78
 

PostPosted: Tue Apr 01, 2008 3:06 pm    Post subject:
 
Thanks for your help, I'd be lost without it
Back to top
View user's profile Send private message
Post new topic   Reply to topic    NetHosted Community Index -> General Support
Page 1 of 1

User Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

 
Jump to: