Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Trying to move to root directory


tuler

Recommended Posts

Posted

Without knowing much about how oscommerce works, I installed it in a directory called store, so to access the application I need to go to www.mysite.com/store with redirect me to www.mysite.com/store/catalog.

 

I'm trying to move the application to the root directory, but when I move it and then update the /admin/includes/configure.php and includes/configure.php files to remove /store out of the urls the general site works fine but I'm unable to login to the the admin console. When I try to login it just sends me in a loop and continues to ask me to login. I know I'm using the correct login info as if I move the files back to the /store directory then I'm able to access the admin console.

 

Any suggestions?

Posted
Without knowing much about how oscommerce works, I installed it in a directory called store, so to access the application I need to go to www.mysite.com/store with redirect me to www.mysite.com/store/catalog.

 

I'm trying to move the application to the root directory, but when I move it and then update the /admin/includes/configure.php and includes/configure.php files to remove /store out of the urls the general site works fine but I'm unable to login to the the admin console. When I try to login it just sends me in a loop and continues to ask me to login. I know I'm using the correct login info as if I move the files back to the /store directory then I'm able to access the admin console.

 

Any suggestions?

 

 

what is the url you are going to for login?

mine is http://domainname.com/admin/login.php

 

also take a loot at this thread, it was my questions to moving my root directory and the direction I was given for editing configure.php (both files)

 

checking it out might show you a possible place that you have something different or not yet edited properly that is messing with you.

Posted
what is the url you are going to for login?

mine is http://domainname.com/admin/login.php

 

also take a loot at this thread, it was my questions to moving my root directory and the direction I was given for editing configure.php (both files)

 

checking it out might show you a possible place that you have something different or not yet edited properly that is messing with you.

 

Thanks for the response.

 

After moving the files, the url to the admin login is mysite.com/catalog/admin/login.php. I did see a thread regarding moving to root (you didn't post a link above) and modified the files accordingly, yet I still get the login loop.

Posted
Thanks for the response.

 

After moving the files, the url to the admin login is mysite.com/catalog/admin/login.php. I did see a thread regarding moving to root (you didn't post a link above) and modified the files accordingly, yet I still get the login loop.

Here's a quick guide.

 

Look for the following instances in your configure.php files and make the changes for both files.

 

'/catalog/' becomes '/'

 

'/home/content/a/b/c/html/catalog/' becomes '/home/content/a/b/c/html/'

 

'/catalog/admin/' becomes '/admin/'

 

Also, if you have a redirect in your htaccess, comment or delete them.

Posted

Thanks. After reading a few more threads, I guess I'm not really trying to move it to root, rather to /catalog.

 

Here's my admin/includes/configure.php

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://mysite.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://mysite.com');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/content/s/l/y/slytextlinks/html/catalog/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/home/content/s/l/y/slytextlinks/html/catalog/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/content/s/l/y/slytextlinks/html/catalog/'); // absolute path required
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
 define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

and my includes/configure.php

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://mysite.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'mysite.com');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/home/content/s/l/y/slytextlinks/html/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

Let me know if you see anything is wrong. I've looked at it so many times that I might be missing the obvious.

Posted
I should mention that I don't have an .htaccess file.

Configure files look good. Also, check your catalog/admin/includes/ local folder for a configure.php file that could be overrirding normal config files.

Posted
Configure files look good. Also, check your catalog/admin/includes/ local folder for a configure.php file that could be overrirding normal config files.

 

 

Yeah, that's what I thought...this is really baffling me. I don't have any other config files in the local folder.

Posted
I did see a thread regarding moving to root (you didn't post a link above) and modified the files accordingly, yet I still get the login loop.

 

crap sorry about that must have been tired.

but Bryce posted pretty much the same thing in this thread, he is actually the one who walked me through mine.

if you'd still like to look at it though here it is

 

in the end Bryce's direction of '/catalog/' becoming '/' and removing catalog/ from any strings such as '/catalog/admin/' becomes '/admin/' is what solved my problem.

 

 

 

good luck.

Posted

I ended up calling my buddy who is a PHP developer to see if he had any suggestions. He FTP'd into find that I actually do have an .htaccess file in the /admin directory. Mine was hidden by my FTP program. I found that the path in that file was wrong. Once I fixed that it worked perfectly.

  • 2 weeks later...
Posted
I ended up calling my buddy who is a PHP developer to see if he had any suggestions. He FTP'd into find that I actually do have an .htaccess file in the /admin directory. Mine was hidden by my FTP program. I found that the path in that file was wrong. Once I fixed that it worked perfectly.

 

Which ftp program use your buddy??

 

I can´t find the .htaccess

 

I need help for the sema problem

Archived

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

×
×
  • Create New...