Home Menu

Menu


Reply
Thread Tools Display Modes
  #1  
Old Jul 01, 2001, 04:41 AM
johnca johnca is offline
New Member
 
Member Since: Jul 2001
Posts: 1
I got this error message, which looks to me like it wants my cgi directory to be 777 (yes, it's CGI-Executables on Mac OS X, the 'cgi' is the result of a ScriptAlias directive in Apache's httpd.conf file) to be 777. But that's a security risk, right? Any help gratefully accepted.

CGI ERROR
==========================================
Error Message : unable to open: /Library/WebServer/CGI-Executables/ojaccess.db.
Reason: Permission denied
Script Location : /Library/WebServer/CGI-Executables/oj.cgi
Perl Version : 5.006
Setup File : default.cfg

Form Variables
-------------------------------------------
auth : newpass
password : test
pw : test
userid : johnca
username : johnca
verify : test

Environment Variables
-------------------------------------------
CONTENT_LENGTH : 54
CONTENT_TYPE : application/x-www-form-urlencoded
DOCUMENT_ROOT : /Library/WebServer/Documents
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/xbm, image/png, text/html, text/plain, */*
HTTP_ACCEPT_LANGUAGE: en
HTTP_HOST : 192.168.0.9
HTTP_REFERER : http://192.168.0.9/cgi/oj.cgi
HTTP_USER_AGENT : iCab/2.5.1 (Macintosh; I; PPC)
PATH : /bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec:/System/Library/CoreServices
QUERY_STRING :
REMOTE_ADDR : 192.168.0.9
REMOTE_PORT : 51165
REQUEST_METHOD : POST
REQUEST_URI : /cgi/oj.cgi
SCRIPT_FILENAME : /Library/WebServer/CGI-Executables/oj.cgi
SCRIPT_NAME : /cgi/oj.cgi
SERVER_ADDR : 192.168.0.13
SERVER_ADMIN : admin@ourpla.net
SERVER_NAME : 127.0.0.1
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.0
SERVER_SIGNATURE : Apache/1.3.14 Server at 127.0.0.1 Port 80

SERVER_SOFTWARE : Apache/1.3.14 (Darwin)

Thanks for this!
Angelique67

advertisement
  #2  
Old Jul 05, 2001, 01:43 PM
DocJohn's Avatar
DocJohn DocJohn is offline
Founder & Your Host
Community Support Team
Chat Leader
 
Member Since: May 2001
Location: Greater Boston, MA
Posts: 13,794

No, it depends on the system. On a Linux box, for instance, I can chmod just the file and it'll work just fine (I don't need to open up the directory with 777). So it all depends on the type of system you're running it on. Both 755 or 775 on the cgi-bin work fine for me.

This is the problem with trying to write a script... ya just never know what you're going to be confronted with when people go to install it!

John


__________________
Don't throw away your shot.
Reply
Views: 2096

attentionThis is an old thread. You probably should not post your reply to it, as the original poster is unlikely to see it.




All times are GMT -5. The time now is 04:39 AM.
Powered by vBulletin® — Copyright © 2000 - 2025, Jelsoft Enterprises Ltd.




 

My Support Forums

My Support Forums is the online community that was originally begun as the Psych Central Forums in 2001. It now runs as an independent self-help support group community for mental health, personality, and psychological issues and is overseen by a group of dedicated, caring volunteers from around the world.

 

Helplines and Lifelines

The material on this site is for informational purposes only, and is not a substitute for medical advice, diagnosis or treatment provided by a qualified health care provider.

Always consult your doctor or mental health professional before trying anything you read here.