Menu

#5 Admin.cgi

v1.0_(example)
open
nobody
None
5
2004-02-27
2004-02-27
chris t
No

I've got to the step where you log on to admin.cgi

However, when I enter the username and pass it tries to
load, then justs reloads the login page. I get three
errors everytime in my web logs... I will post them.
Please help.

ERROR 1 - Use of uninitialized value in string eq at
Freedom/Display.pm line 17.

ERROR 2 - Use of uninitialized value in string eq at
Freedom/Display.pm line 17.

ERROR 3 - Use of uninitialized value in string eq at
Freedom/Permissions.pm line 31.

Display.pm Line 17 reads like this

if($_[2] eq 'shopcms')

Permissions.pm line 31 reads like this

if ($row_href->{'username'} eq $username &&
$username ne '' && $row_href->{'username'} ne '') {

PLEASE HELP! I haven't changed ANYTHING in these
files...

Discussion

  • Nobody/Anonymous

    Logged In: NO

    It seems like either you haven't set up the db yet or it can't
    find it. If you didn't set up your config.txt file exactly right it
    won't find the db. The documentation is scant, so let me
    just tell you that you have to get every line of it correct for
    it to work. You have to edit something in almost every line,
    which isn't clear at first. For example:

    db_name= (what is the name of your database?)

    db_username= (what is the username for the db?)

    db_password= (what is that usernames password?)

    db_driver=mysql (this one is fine)

    template_top_location= (your root path)/cgi-
    bin/shopcms/templates/top.html

    template_bottom_location= (your root path)/cgi-
    bin/shopcms/templates/bottom.html

    style_sheet_location=(your root path)/cgi-
    bin/shopcms/shopcms.css

    forms_directory=(your root path)/shopcms/forms

    cookie_domain=.(you domain name - leave the preceeding
    dot - no "www" or "http")

    admin_name= (what "real" name do you want to use for email
    from your customers sending to "admin")

    admin_email= (what email address does admin mail go to?)

    contact_subject= (what do you want admin mail's subject
    line to be?)

    email_server= (what is the domain name of the email server?)

    sendmail_path=/usr/sbin/sendmail (is this correct?)

    admin_template_top_location=(your root path)/cgi-
    bin/shopcms/templates/admin_top.html

    admin_template_bottom_location=(your root path)/cgi-
    bin/shopcms/templates/admin_bottom.html

    paypal_email= (duh - but the shopping cart fail w/o this)

    admin_username=admin (login ID)

    admin_password= (login pwd)

    navbar_top_location= (your root path)/cgi-
    bin/shopcms/templates/navbar_top.html

    navbar_bottom_location= (your root path)/cgi-
    bin/shopcms/templates/navbar_bottom.html

    templates_dir= (your root path)/cgi-bin/shopcms/templates

     
  • Nobody/Anonymous

    Logged In: NO

    I have the same problem. I get everything installed. I checked
    the config.txt file again and again, and it seems completely
    accurate, and still ... I can't get logged in the admin.cgi page.

    What am I doing wrong ?

     

Log in to post a comment.