Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't reach my Admin page


stevemills

Recommended Posts

Posted

Successful installation is complete (deleted the install directory and CHMOD'd the config.php file back to 644). Now when I try to reach my Admin page, I see this message:

 

1046 - No Database Selected

 

select configuration_key as cfgKey, configuration_value as cfgValue from configuration

 

[TEP STOP]

 

Thanks for any help you can provide.

 

Steve

Posted

if you can get to the catalog side, then open that configure.php file and copy the database connec tion to your admin/includes/configure.php file

Posted
Successful installation is complete (deleted the install directory and CHMOD'd the config.php file back to 644). Now when I try to reach my Admin page, I see this message:

Thanks for any help you can provide.

 

Steve

Me same! :blush: :huh:

Posted
if you can get to the catalog side, then open that configure.php file and copy the database connec tion to your admin/includes/configure.php file

 

 

I don't quite understand what you are saying. I can get to the catalog directory via FTP, but the configure.php file is in the subdirectory of "admin" (not the name I am using, of course). I see no line in that file referring to the MySQL database. Do you mean something else?

 

Thanks,

Steve

Posted

I see the database definitions in my /catalog/includes/configure.php file.

 

Where do they belong in the catalogs/admin/configuration.php file? How much of it do I c/p? Should I take everything between

 

// define our database connection

 

and

 

?>

 

?

Posted

Even though the configure.php look similar they each have some different "defines" specific to the catalog and admin programs.

 

Sooo......

 

Make sure you are editing catalog/includes/configure.php for the catalog and catalog/admin/includes/configure.php for the admin.

 

If you have already modified the admin with stuff from the catalog configure.php you might want to get a fresh copy of each and make changes to them.

 

HTH

Tom

Posted
Even though the configure.php look similar they each have some different "defines" specific to the catalog and admin programs.

 

Sooo......

 

Make sure you are editing catalog/includes/configure.php for the catalog and catalog/admin/includes/configure.php for the admin.

 

If you have already modified the admin with stuff from the catalog configure.php you might want to get a fresh copy of each and make changes to them.

 

HTH

Tom

 

I have not edited anything yet. I have no idea at this point why I can't access my Admin page, other than for some reason the config file doesn't reference any database. I'm not about to do any editing until I know what and where to edit. I'm thinking, actually, of doing a fresh install. Maybe I made an error in the installation, I don't know.

Posted

Sometimes, during installation, one of the two configure.php files doesn't get written to. There's no guarantee that a fresh install will correct this. You just need to make a note of what is in includes/configure.php for db host, db user name, db password and db name, then go to admin/includes/configure.php and put the same info in there.

 

Vger

Posted
Sometimes, during installation, one of the two configure.php files doesn't get written to.  There's no guarantee that a fresh install will correct this.  You just need to make a note of what is in includes/configure.php for db host, db user name, db password and db name, then go to admin/includes/configure.php and put the same info in there.

 

Vger

 

Vger,

 

This was precisely the problem. In my first install, I failed to CHMOD the config file under /Includes. Now the Admin panel is available to me, I have CHMOD'd back to 644 and deleted the /install directory.

 

One last thing I don't quite understand is how to successfully rename the Admin directory. I've tried changing the name, but all links become inoperable unless I manually edit the address bar in my browser. Is there a universal change I can make in one or more of the Config files to reflect the choice I made for a directory name?

 

Thanks for all the help.

Steve

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...