Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Tedious question over asked...


byronb

Recommended Posts

Posted

Hi

 

long time reader First time poster....

 

I've trawled through the posts regards renaming the admin folder (as my ensim based server likes to redirect requests for /admin)

 

I have done it (several times, in many different ways)

 

& I have edited the "single" occurrence of "/admin/" in the admin/includes/configure.php file.

 

I keep seeing references to 2 occurrences of "/admin/" & no amount of searching has revealed this alleged 2nd one, which I guess explains why I still can't get the control panel working in the admin area.

 

So, my question is, once I have renamed the admin folder, where else apart from in the admin/includes/configure.php do I need to edit & change "/admin/" to my newly renamed folder.

 

Don't worry I won't be asking about .htaccess (I've got that one sorted)

 

Are there any further implications renaming this folder, or is it once done & files edited job done.

 

I would greatly appreciate some ones help, as I have tried looking for an answer

 

(Hands up who thinks the admin folder should be renamed permanently in further releases)

 

Cheers

 

Byron

Posted
Hi

 

long time reader First time poster....

 

I've trawled through the posts regards renaming the admin folder (as my ensim based server likes to redirect requests for /admin)

 

I have done it (several times, in many different ways)

 

& I have edited the "single" occurrence of "/admin/" in the admin/includes/configure.php file.

 

I keep seeing references to 2 occurrences of "/admin/" & no amount of searching has revealed this alleged 2nd one, which I guess explains why I still can't get the control panel working in the admin area.

 

So, my question is, once I have renamed the admin folder, where else apart from in the admin/includes/configure.php do I need to edit & change "/admin/" to my newly renamed folder.

 

Don't worry I won't be asking about .htaccess (I've got that one sorted)

 

Are there any further implications renaming this folder, or is it once done & files edited job done.

 

I would greatly appreciate some ones help, as I have tried looking for an answer

 

(Hands up who thinks the admin folder should be renamed permanently in further releases)

 

Cheers

 

Byron

 

 

 

Lol - a rename wouldnt change much - since everyone would have the same name again. Changing your adminfolder name is meant to be unique - to make it harder for hackers, if they dont know where the admin is located they cant try to guess pass eather..

 

But you're right - I to still havent changed my foldername - i havent even moved it from place -(i did protect it however).

 

It would be nice if someone would make a guide on how to do this exactly - since this is something that should be done. Adding that to the instalpage or kb is maybe a little bit to much asked for, but it wouldnt stand bad in the Tips & Tricks.

 

Kind Regards,

Tom

Even in this dark place, yes, I am afraid of my own shadow.

 

 

 

Contributions | KnowledgeBase | osCommerce 2.2 pdf

Posted
Lol - a rename wouldnt change much - since everyone would have the same name again. Changing your adminfolder name is meant to be unique - to make it harder for hackers, if they dont know where the admin is located they cant try to guess pass eather..

 

But you're right - I to still havent changed my foldername - i havent even moved it from place -(i did protect it however).

 

It would be nice if someone would make a guide on how to do this exactly - since this is something that should be done. Adding that to the instalpage or kb is maybe a little bit to much asked for, but it wouldnt stand bad in the Tips & Tricks.

 

Kind Regards,

Tom

 

Hi Tom, by rename, I meant a different one ! sigh lol

Posted
Hi

 

long time reader First time poster....

 

I've trawled through the posts regards renaming the admin folder (as my ensim based server likes to redirect requests for /admin)

 

I have done it (several times, in many different ways)

 

& I have edited the "single" occurrence of "/admin/" in the admin/includes/configure.php file.

 

I keep seeing references to 2 occurrences of "/admin/" & no amount of searching has revealed this alleged 2nd one, which I guess explains why I still can't get the control panel working in the admin area.

 

So, my question is, once I have renamed the admin folder, where else apart from in the admin/includes/configure.php do I need to edit & change "/admin/" to my newly renamed folder.

 

Don't worry I won't be asking about .htaccess (I've got that one sorted)

 

Are there any further implications renaming this folder, or is it once done & files edited job done.

 

I would greatly appreciate some ones help, as I have tried looking for an answer

 

(Hands up who thinks the admin folder should be renamed permanently in further releases)

 

Cheers

 

Byron

 

 

there are 2:

 

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

 

the second is relevant if you take admin out of your file system

Treasurer MFC

Posted
there are 2:

 

  define('DIR_WS_ADMIN', '/admin/');

  define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

 

the second is relevant if you take admin out of your file system

 

cheers

 

that is taken from the file /admin/includes/configure.php right ?

 

so, there is only one occureence of /admin/

where is the 2nd ?

 

thanks in advance

Posted

Depending on your setup your configure.php file can have either (for an install into the root of your web):

 

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

 

or:

 

define('DIR_WS_ADMIN', '/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/var/www/html/admin/'); // absolute path required

 

The first of those is most often associated with automated installs, and I don't use those. I apologise if this misled you.

 

Vger

Posted
Depending on your setup your configure.php file can have either (for an install into the root of your web):

 

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

 

or:

 

define('DIR_WS_ADMIN', '/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/var/www/html/admin/'); // absolute path required

 

The first of those is most often associated with automated installs, and I don't use those.  I apologise if this misled you.

 

Vger

 

cheers vger

 

So, with the automated install, which is what I do, I will only need to change this one occurrence of /admin/ in the admin/includes/confiure.php file ?

 

then change the name of my admin folder to the same name & sorted ?

 

Thing is, I have done this (few times now) & everything in the admin control panel still seems to be using the /admin prefix for its hyperlinks rather than the renamed folder.

 

thanks

Posted
cheers vger

 

So, with the automated install, which is what I do, I will only need to change this one occurrence of /admin/ in the admin/includes/confiure.php file ?

 

then change the name of my admin folder to the same name & sorted ?

 

Thing is, I have done this (few times now) & everything in the admin control panel still seems to be using the /admin prefix for its hyperlinks rather than the renamed folder.

 

thanks

 

 

OK

 

so this is how I over came my problem.

 

I did a complete web based re-install.

 

This time I chose to install in a sub directory of the root. www.mydomain.com/shop

 

After I had completed the install I renamed my admin folder.

 

I then did a search and replace for "admin" on the admin/includes/configure.php and LOW and behold there were 2 this time ! very weird. I edited them out.

 

I then moved ALL my files using ftp to the root of the domain, so that everything sat on www.mydomain.com rather than www.mydomain.com/shop.

 

I then did a search and replace on "shop" in the configure.php files in my no longer named "admin"/includes & includes/ folders and edited them out.

 

It at least is live, links seem to work but no doubt when I start fiddling more problems will occur.

 

cheers

Archived

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

×
×
  • Create New...