SunQuest
           Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old October 29th, 2001, 09:37 AM
nickname nickname is offline
inexperienced and useless
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: Stevenage, uk
Posts: 10 nickname User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy A quick fix??

Hello,
I've got a small and probably very simple problem.
The web server is not configured to do this. I'm currently writing a database front end cgi for the companies intranet site, and have hit a small obstical. I'm writting in python and due to security settings the cgi-bin cannot be accessed by the form action tag. I have been told that to get around this I need to specify a path in the script, but I am at a loss how to do this.

Any help would be a great help
Cheers

Reply With Quote
  #2  
Old October 29th, 2001, 10:36 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> due to security settings the cgi-bin cannot be accessed by the form action tag

What setting? What did you try? And what error?

>> to get around this I need to specify a path in the script

How does your current form tag look like?
Where is the form page located? Is it within your script or on an html page?

Do you have write access to httpd.conf?

DO NOT use stupid subject as A quick fix. Use something like cgi-bin access denied.

>> and probably very simple problem

DO NOT answer for us. We will decide whether it's simple.

Reply With Quote
  #3  
Old October 29th, 2001, 10:51 AM
nickname nickname is offline
inexperienced and useless
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: Stevenage, uk
Posts: 10 nickname User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Red face I do appologise **cgi-bin access denied**

Here's the thing then. At the moment the action tag is on the form page which is in a subdirectory of htdocs.

The cgi is in a subdirectory of cgi-bin. the action tag path is correct and the only message that is generated is page not found, which sounds like a path problem, but it's not.

I have spoken to my manager about this and as I said before he said it's a security problem, and I need to specify within the script how I want to access the cgi-bin.

I know this isn't especially clear, but it's everything that I know about the situation.

p.s.
freebsd you need to relax a bit, I'm sorry that my post wasn't precise enough for you, but there's no need to get your knickers in a twist, at the end of the day it's my problem, not yours, but thanks for the advice ; )

Reply With Quote
  #4  
Old October 29th, 2001, 11:09 AM
cdr cdr is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: UK
Posts: 25 cdr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to cdr
Quote:
DO NOT use stupid subject as A quick fix. Use something like cgi-bin access denied.

>> and probably very simple problem

DO NOT answer for us. We will decide whether it's simple.

freebsd: there's no need for the aggressive tone here. You're obviously dealing with a beginner, and someone who hasn't had a lot of experience using discussion forums...

You're better off suggesting improvements the poster could have made rather than issuing demands. It's not constructive and is unlikely to make the person at fault do things 'the right way'. What's wrong with "nickname, I suggest in future that you make your subject headings more descriptive so other users are able see at a glance what your problem is about"?

Chris

Reply With Quote
  #5  
Old October 29th, 2001, 11:27 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> I know this isn't especially clear, but it's everything that I know about the situation.

Without further details from you, what I can do is guessing.

More than likely, your cgi-bin is ScriptAlias'ed. A ScriptAlias'ed cgi-bin cannot have anything (i.e. php script, images, .htaccess, html files, etc) other than true CGI scripts. If your script is trying to write to certain files which also reside under your cgi-bin, then it won't work.

>> the only message that is generated is page not found

You need to append trailing slash to the path of the ScriptAlias line like so:

ScriptAlias /cgi-bin/ "/file/system/path/to/cgi-bin/"

>> I'm sorry that my post wasn't precise enough for you

Don't be sorry, just don't do it (stupid subject) again. Take a few moment and read thru this thread -> http://forums.devshed.com/showthrea...23918&forumid=5

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > A quick fix??


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway