Gossamer Forum
Home : Products : DBMan : Installation :

Help with 500 Internal Server Error

Quote Reply
Help with 500 Internal Server Error
I uploaded the files in ASCII to my server, and set the permissions according to the README.
And the version of Perl on the server is v5.6.0.

my db file: http://www.hayaku.org/db.txt

my config: http://www.hayaku.org/default.txt

I am trying to install dbman here: http://www.hayaku.org/cgi-bin/

and this is the error log from perl -c db.cgi

syntax error at db.cgi line 647, near ";>"
Bareword found where operator expected at db.cgi line 648, near ""per_add" value"
(Missing operator before value?)
syntax error at db.cgi line 648, near ";>"
Bareword found where operator expected at db.cgi line 649, near ""per_del" value"
(Missing operator before value?)
syntax error at db.cgi line 649, near ";>"
db.cgi had compilation errors.



thanks for any help,
keda



Quote Reply
Re: [keda] Help with 500 Internal Server Error In reply to
In your db.cgi file sub admin_display it should read:

$perm = qq|
View <input type=checkbox name="per_view" value="1" |; ($data[2] and $perm .= "CHECKED"); $perm .= qq|>
Add <input type=checkbox name="per_add" value="1" |; ($data[3] and $perm .= "CHECKED"); $perm .= qq|>
Delete <input type=checkbox name="per_del" value="1" |; ($data[4] and $perm .= "CHECKED"); $perm .= qq|>
Modify <input type=checkbox name="per_mod" value="1" |; ($data[5] and $perm .= "CHECKED"); $perm .= qq|>
Admin <input type=checkbox name="per_admin" value="1" |; ($data[6] and $perm .= "CHECKED"); $perm .= qq|>|;
$password = $data[1];
}
else {
$user_list .= qq~<option value="$data[0]">$data[0]</option>\n~;
}
}
$user_list .= "</select>";
# Build the permissions list if we haven't inquired in someone.
if (!$perm) {
$perm = qq|
View <input type=checkbox name="per_view" value="1" |; ($auth_default_permissions[0] and $perm .= "CHECKED"); $perm .= qq|>
Add <input type=checkbox name="per_add" value="1" |; ($auth_default_permissions[1] and $perm .= "CHECKED"); $perm .= qq|>
Delete <input type=checkbox name="per_del" value="1" |; ($auth_default_permissions[2] and $perm .= "CHECKED"); $perm .= qq|>
Modify <input type=checkbox name="per_mod" value="1" |; ($auth_default_permissions[3] and $perm .= "CHECKED"); $perm .= qq|>
Admin <input type=checkbox name="per_admin" value="1" |; ($auth_default_permissions[4] and $perm .= "CHECKED"); $perm .= qq|>|;

I'm not sure where you got the coding you currently have for that section of the mod.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] Help with 500 Internal Server Error In reply to
thanks Lois Sly



/bow