Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

NEED HELP BAD!!!! Maybe very simple..


aimthings

Recommended Posts

I have looked all the way through this forum and although some people touch on my problem it seems they differ in one way or the other....I am on a linux dist server the only post close to mine is talking about IIS..and nobody ever stats having problems with the admin panel, after moving there catalog files too root

 

I just want to operate my Oscommerce site as the main webpage from the root of my site. But when I copy all the files from the /catalog directory and then make the right changes in the three configuration.php files. Everything seems to work great as far as the site, but the admin tool doesn?t allow you to log in. I have checked permissions everyway I can think of, but its seems a path statement is wrong someplace OTHER then the configuration.php files...but I could be wrong I am still learning and need some wisdom on this one....please

 

This is my configuration.php file I got from the /var/www/html/includes after I remove the catalog switch

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.tshirtsafari.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.tshirtsafari.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.tshirtsafari.com');

define('HTTPS_COOKIE_DOMAIN', 'www.tshirtsafari.com');

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_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/virtual/site8/fst/var/www/html/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', '********');

define('DB_SERVER_PASSWORD', '********');

define('DB_DATABASE', 'TshirtSafari_com-TshirtSafari');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

******* /var/www/html/admin/includes **** this is the other one....

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.tshirtsafari.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.tshirtsafari.com');

define('HTTPS_CATALOG_SERVER', 'https://www.tshirtsafari.com');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/home/virtual/site8/fst/var/www/html/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', '/home/virtual/site8/fst/var/www/html/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/'); // absolute path required

define('DIR_FS_CATALOG', '/home/virtual/site8/fst/var/www/html/'); // 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/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', '********');

define('DB_SERVER_PASSWORD', '********');

define('DB_DATABASE', 'TshirtSafari_com-TshirtSafari');

define('USE_PCONNECT', 'false'); // use persisstent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

Link to comment
Share on other sites

When you say "The admin panel won't let you login" are you saying its not found (404), Prompts for a username/password, or gives an error?

Kenneth S

--------------

Customer "Are you a real programmer?"

Me "No, but I did stay at a Holiday Inn Express last night"

Link to comment
Share on other sites

Actually Kenneth it does prompt for a user name and password but seems to never accept the name and password I type in, as if its the wrong one when I know for a fact it is not.

 

Thank you very much, redspark...I just recieved a possiable solution to the problem from Team Member 241 (Steve) I will post it below but if there solution doesn't work I will try to replace the ('DIR_FS_CATALOG', '/'); statment as you just recommended. This is the solution one of the team members just sent me, I will try all the solutions tonight and post back in the morning if they worked..

 

--------------------

From Steve (Team Member 241 )

 

Hello aimthings,

 

A little trick for you to try rename the .htaccess file located in the admin directory to 1.htaccess.txt then see if you can enter your admin.

 

If this works then it is the path between your .htaccess file and the password file that is giving issue.

 

Thank you for suppoting osCommerce!

 

Steve

 

 

--------------------

From Aimthings

 

Okay, you got the McDaddy award :thumbsup: ....on this one...can you kind of explain how and why that worked ? so I can have a working idea of this arcane magic you just did... and is it best just to leave it this way or should I be looking to changing the path between the htaccess file and the password file that is giving issue.

 

How would you go about doing that, where is this path statement located, I didn't see in the configuration.php files ???

 

And just a fun question, how come other people do not post this before it seems like it would be pretty common problem...I would think..

 

--------------------

From Steve (Team Member 241 )

 

can you post me the contents of the file that was the .htaccess file and I will try to explain to you.

 

Yes you will need to change the path or create a new .htaccess file otherwise your admin is open to anyone.

 

Steve

 

 

--------------------

From Aimthings

 

Sure, sorry I thought I was.....until I looked at the forum and noticed it was a personal message...Thanks I will post this conversation to the forum..

 

this is the current .htaccess file below...I changed to .txt in the admin dir, I noticed as I pasted it to this message that it shows the catalog path statment, should this be deleted ? and the files it points to be moved ? to root ?

 

AuthType Basic
AuthName "osCommerce Administration Page"
AuthUserFile /home/virtual/site8/fst/var/www/html/catalog/admin/.htpasswd
Require valid-user
# $Id: .htaccess,v 1.1 2003/06/20 00:18:30 hpdl Exp $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
#   AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)

# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers

<IfModule mod_setenvif.c>
 <IfDefine SSL>
   SetEnvIf User-Agent ".*MSIE.*" \
            nokeepalive ssl-unclean-shutdown \
            downgrade-1.0 force-response-1.0
 </IfDefine>
</IfModule>

# Fix certain PHP values

#<IfModule mod_php4.c>
#  php_value session.use_trans_sid 0
#  php_value register_globals 1
#</IfModule>

 

--------------------

From Steve (Team Member 241 )

 

You are on the correct path, what requires is for you to alter the file from being

 

AuthUserFile /home/virtual/site8/fst/var/www/html/catalog/admin/.htpasswd

 

to be the new path

 

AuthUserFile /home/virtual/site8/fst/var/www/html/admin/.htpasswd

 

then rename the file back to being just .htaccess and you should be done.

 

remember if posting as to the resolve for your issue do not post your .htaccess files contents in the public open forum showing the AuthUserFile section for your own security.

 

the alternative method is to go to the control panel provided by your host and there should be something there that will allow you to password protect your directories, which basically writes an .htaccess file.

 

Steve

Link to comment
Share on other sites

Everybody just wanted to let you know it works Great now, the problem was that the .htaccess path statement was wrong, once I changed that it came up like a charm.

 

Thanks to all who jumped on to help me fix this elusive problem, Steve Thanks very much and do not worry as I just used bogus info for the site and changed most the paths so it is okay for me to post all the details of the .htaccess file for others to benefit from.

 

Thanks all

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...