View Full Version : odd way of doing things
gwlubin
03-27-1999, 02:11 PM
after getting fairly confident installing cgi at FQ, i am now working on a site that is really confusing me:
<<When you wish to call a CGI script you refer to it as /cgi-bin/your-dir/script_name, not /your-dir/cgi-bin/script_name>>
hmmm.
/g
hearts
03-27-1999, 02:29 PM
is this a question?
This means exactly what it says! http://www.aota.net/ubb/wink.gif
there is no dir prior to your cgi-bin.
gwlubin
03-28-1999, 05:35 AM
call me mr stupid, but i just can't get my head around this.
how would we do this if it were here at FQ?
the path to cgi for me at FQ
is /big/dom/xloobie/cgi-bin/script_name
so in this case would it be
big/dom/cgi-bin/xloobie/script_name
very confusing, why have they got to do this to me?
/g
Terra
03-28-1999, 05:56 AM
Can you show us the script section you are trying to set...
Sometimes it needs the full pathname to where the script is located:
/big/dom/xloobie/cgi-bin/whatever
Other times, it needs to be called as a URL:
http://www.loobie.com/cgi-bin/whatever
OR (shorthand)
/cgi-bin/whatever
The 'http://www.loobie.com' is implied on the shorthand one and the Apache daemon will see it as such...
--Terra
gwlubin
03-28-1999, 06:14 AM
dear terra,
i think that i am going to be ok with this. but thanks anyway.
fiddling around with directory structures has made me realise something.
i tend to have difficulty in visualising them spacially. and tend to see them upside-down or back-to-front. it is almost like a strange learning difficulty.
i wonder if anyone else has had this problem?
oh! sorry for not posting in the correct folder.
BTW, i am trying to entice this company over to FQ, they are paying around $60/month for very mediocre hosting in the uk. nothing like the level of support here at FQ.
ok, there is 24 hour telephone support, but do the support crew know what they talking about?
/g
[This message has been edited by gwlubin (edited 03-28-99).]
gwlubin
03-28-1999, 08:22 AM
No it's no good. I can't work it out.
I am trying to call a script from a form normally I would say:
<form method="post" action="http://www.domain.com/cgi-bin/form.cgi">
How would I do it in this case where they tell you to use:
http://www.domain.com/cgi-bin/your-dir/form.cgi
Justin
03-28-1999, 08:31 AM
Do it the normal way. I don't know why they are telling you to do it that way but that will not work. You have to point to the script. I think the author is assuming a particular configuration.
Either way, the form must point to where the script is, or it can't run it http://www.aota.net/ubb/smile.gif
------------------
Justin Nelson
FutureQuest Support
hearts
03-28-1999, 10:07 AM
Hey Graham,
I am trying to understand why you are having such a hard time. How many files came with this script? IF there were more than one, it would be a good idea for ya to create a subdir inside your cgi-bin and don't forget to chmod it.
IF just uploading your script to the cgi-bin, (without creating a new subdir) the path to your script would be this:
/big/dom/xyourdomain/cgi-bin/yourfile.cgi
if you create a sub dir inside your cgi-bin (and upload the script to the subdir) the path would be:
/big/dom/xyourdomain/cgi-bin/new_dir/yourfile.cgi
ANYTHING INSIDE your cgi-bin (whether it be a dir or a file)comes after the dir /cgi-bin/
hope this helps
[This message has been edited by hearts (edited 03-28-99).]
gwlubin
03-28-1999, 10:12 AM
listen guys thanks for trying to help, but they specifically tell you that you can't do things the normal way.
take a look at
http://www.demon.net/www/comweb/faq/tech.html#common-probs (http://
http://www.demon.net/www/comweb/faq/tech.html#common-probs)
see what i mean?
/g
hearts
03-28-1999, 11:36 AM
send me the script.. send me your info to upload .. and i will do it for ya.
--- editing ----
Graham...
are you using the form-mail.pl file that is listed at their site?
you do know that AOTA offers ya a mail form that all ya have to do is tell it what ya want and copy the resulting code into your web page. *this might be easier for ya*
--- end edit --------
hearts
[This message has been edited by hearts (edited 03-28-99).]
Justin
03-28-1999, 11:45 AM
Remember when I said that those instructions were probably written for a specific configuration? Well, it looks like these are instructions for installing on their server - not any server. The site where these instructions are at is an ISP and they set up a subdirectory in the user's cgi-bin - here you have your own cgi-bin. Just use:
http://www.domain.com/cgi-bin/script.cgi
Trust me http://www.aota.net/ubb/smile.gif
------------------
Justin Nelson
FutureQuest Support
gwlubin
03-29-1999, 12:14 AM
i've tried it everyt which way and it's not working. i wonder if the bin is damaged....
hearts
03-29-1999, 12:29 AM
graham,
i highly doubt that your bin is damaged. http://www.aota.net/ubb/wink.gif
what is the actual name of the file?
is this the form_mail.pl? If so, you can't use the name form.cgi unless you renamed that file to be form.cgi.
I just feel in my heart that you are simply overlooking something.. *really*
[This message has been edited by hearts (edited 03-28-99).]
gwlubin
03-29-1999, 12:30 AM
finally got throught to someone who knew what they were doing at the server the correct way of call a script at this server is /cgi-bin/www.domain.co.uk/script.pl
panic over!
thanks folks!
happy sunday!
g/
hearts
03-29-1999, 12:33 AM
so allllllllllllll this time, this was not a FQ question. NO wonder we were banging our heads against the monitor.. had you clarified that.. alas
gwlubin
03-29-1999, 12:40 AM
dear hearts,
i did imply that it was NOT FQ maybe i didn't make myself clear
thanks anyway.
g/
[This message has been edited by gwlubin (edited 03-28-99).]
[This message has been edited by gwlubin (edited 03-28-99).]
vBulletin® v3.6.8, Copyright ©2000-2013, Jelsoft Enterprises Ltd.