![]() |
FAQ/Help |
Calendar |
Search |
#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) |
![]() Angelique67
|
#2
|
||||
|
||||
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 |
|