Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Renaming the 'admin' folder at new instal


gabster

Recommended Posts

Posted

Hi all...

 

the install instruction sais:

 

"Do the same (copy the 'catalog' directory to the webroot path of your webserver) for the 'admin' directory but rename the directory to a unique and secret name. This directory does not have to reside inside the catalog directory, though may need to be manually configured."

 

Problem is that I am getting this following error:

 

1046 - No Database Selected

select configuration_key as cfgKey, configuration_value as cfgValue from configuration

[TEP STOP]

 

I renamed the 'admin' folder BEFORE the instalation. However, the catalog works... I had a successfull install before (on another machine/server) where I was able to access the Administrator tools (Configuration, etc.)... But... EVERYONE here know how to get to my administrator folder...Lol!!!

 

Now I understand that the only 'protection' at this point is to rename my admin folder to something else secret only I know... But the question is... should I do this before or after the OSCommerce instalation?

 

Oh yeah... I checked the script of the catalog / mysecretadminfolder / includes / configure.php

 

I had to manually define the database connection parameters ok... still the same error...

 

PLease help.

 

thanks a lot,

Gabi.

Posted

The simplest thing is to put the admin folder back inside the catalog folder then re-run the installation program (skip the db import part).

 

Then you may rename/move the admin folder. You'll need to edit the admin/includes/configuration.php file to reflect your changes.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted

Alan... thanks a lot ... it worked...

 

I can access the configuration page ok that resides inside the 'catalog' folder...

 

however, all my links from there seem to be broken because I am missing the 'catalog' folder from each url...

 

do you know what parameter requires that in the 'catalog / mysecretadminfolder / includes / configure.php'?

 

thanks,

gabi.

Posted

Alan...

 

I found it... I had to add that in the

 

define('DIR_WS_ADMIN', '/catalog/mysecretfolder/');

 

thanks,

gabi.

Archived

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

×
×
  • Create New...