GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 20-Dec-2004, 10:18
joeW joeW is offline
New Member
 
Join Date: Dec 2004
Posts: 3
joeW is on a distinguished road

cgi script problems


hry guys,
Having a issue with a form script i'm trying to get working. I keep getting this error.

The requested URL /usr/local/apache2/cgi-bin/mail.cgi was not found on this server.

I am a n00b so be gentle, i can run the script from the command promt and the script puts a entry in the mail folder, so that is working. But if i run the form from my site i get that error. Any ideas? I know it's a path problem, or i think it is. But i'm just not getting it.

Sincerely,
JoeW
  #2  
Old 20-Dec-2004, 17:05
joeW joeW is offline
New Member
 
Join Date: Dec 2004
Posts: 3
joeW is on a distinguished road
What was i thinking, probably not enough info.

Slackware 10 running the latest Apache 2.0.52. Everything else is a default install, regarding Perl and so on.
  #3  
Old 21-Dec-2004, 03:54
Allowee's Avatar
Allowee Allowee is offline
Regular Member
 
Join Date: May 2003
Location: The Netherlands
Posts: 339
Allowee has a spectacular aura about
since you already know it's a path problem I asume you already tried:
/usr/local/apache2/cgi-bin/mail.cgi

I also asume that did work.

I think this is related to an alias

open httpd.conf and try to find
Code:
ScriptAlias /cgi-bin/
if you find something like
Code:
ScriptAlias /cgi-bin/ /path/to/cgi-bin/
you should change that path to /usr/local/apache2/cgi-bin/ (in your case) and also look if you can find something like
Code:
<Direcory /path/to/cgi-bin/>
also change that and restart apache

when done your script should work because it looks in the correct directory
__________________
Pastebin
PHP Documentation Site
Allowee's Blog http://allowee.net
  #4  
Old 21-Dec-2004, 17:02
joeW joeW is offline
New Member
 
Join Date: Dec 2004
Posts: 3
joeW is on a distinguished road
Allowee,
Thx for the reply. Everything is as it should be, anyway. I dumped that script for a decent pre-made one. This one worked right off the bat. Odd to say the least. I will continue to hang out here.

JoeW
 
 

Recent GIDBlogA Week in Kuwait by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NOT sure what is wrong with script fscanf jenmaz C Programming Language 14 29-Oct-2004 14:53
Two virtual hosts, cgi script behaves differently on each blimbo Apache Web Server Forum 0 04-Aug-2004 09:35
Chaintech Geforce 5600 FX problems bartster74 Computer Hardware Forum 8 04-May-2004 13:16
JavaScript Tutorial Part 1 pcxgamer Web Design Forum 2 01-Dec-2003 09:16
Problems with apache win 98 php and vhosts Kplonk Computer Software Forum - Windows 2 22-May-2002 10:06

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 19:22.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.