Gossamer Forum
Home : Products : DBMan : Installation :

(13) Permission denied error-killing me

Quote Reply
(13) Permission denied error-killing me
This is the error that I get now when I try to execute the db.cgi script. I checked all of my permissions and they are correct. Is there another location where I must define the path to the db.cgi executable besides in db.cfg? I am still trying to get the default database running. I have been pulling my hair out for three weeks now. Help!!!

This is the error that is shown in the error log:

httpd: [Wed Apr 7 22:58:27 1999] [error] (13)Permission denied: exec of /usr/local/etc/httpd/htdocs/merkurxr4ti/cgi-bin/db.cgi failed
httpd: [Wed Apr 7 22:58:27 1999] [error] [client 209.163.183.14] Premature end of script headers: /usr/local/etc/httpd/htdocs/merkurxr4ti/cgi-bin/db.cgi

Help!!!
Quote Reply
Re: (13) Permission denied error-killing me In reply to
One thing to check again is the db.cgi permissions. There was a typo in the readme (I don't know if it's been fixed). The permissions for db.cgi should be

(755) -rwxr-xr-x

The "755" was correct before, but I think one of the "r"s or "x"s was missing.



------------------
JPD





Quote Reply
Re: (13) Permission denied error-killing me In reply to
Here are my permissions. They look correct.


drwxrwxrwx 594 594 1024 Mar 26 23:58 .
drwxr-xr-x 594 594 2048 Apr 7 22:25 ..
-rw-r--r-- 594 594 20271 Mar 3 23:18 README.txt
drwxrwxrwx 594 594 1024 Mar 3 23:20 auth
-rw-r--r-- 594 594 6606 Mar 12 23:28 auth.pl
-rwxr-xr-x 594 594 45883 Apr 6 23:13 db.cgi
-rw-r--r-- 594 594 7598 Mar 14 07:38 default.cfg
-rw-rw-rw- 594 594 2
Mar 12 23:29 default.count
-rwxr-xr-x 594 594 6693 Mar 12 23:29 default.db
-rw-rw-rw- 594 594 62 Mar 12 23:29 default.log
-rw-rw-rw- 594 594 143 Mar 12 23:29 default.pass
-rw-r--r-- 594 594 42991 Mar 12 23:30 html.pl


What could I look for next
Quote Reply
Re: (13) Permission denied error-killing me In reply to
Make sure all of your files have been uploaded in ASCII mode and that the first line of db.cgi points to Perl on your system. If neither of these work to fix it for you, I'm afraid I can't help much more. These are just things I've learned on the forum.


------------------
JPD





Quote Reply
Re: (13) Permission denied error-killing me In reply to
NO there are no other places that you need to define you path and url locations for DBMAN. db.cgi should be on line 37, which is the unix path to your script --- but your path looks a little strange to me -- I'm on unix servers. It's not exactly set to your homepage area, but I think rather to your providers server directory -- I could be wrong too. I don't know squat about UNIX Smile


# If you run into problems, set $db_script_path to the full path
# to your directory.
$db_script_path = "/home/your_login/public_html/cgi-bin/dbman";

do not include a backslach or db.cgi to the end.

DBMAN shows this path for your server very nicely if you have debugging ON.

for the default.cfg around line 37 again.
# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url = "http://www.your_provider/~your_logon/cgi-bin/dbman2";
the rest that follow here should only be with "/XXXX" in other words no changes.

For the permissions I would set everything wide open (7,7,7) or drwxrwxrwx and for the files -rwxrwxrwx then you can go back and restrictthe user and group and world rights.

If you use a FTP client like anarchie or Fetch then you should be able to do this very easily. Telenet is a real pain. I hope that this helps.