Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HELP CANT LOGIN


funtari

Recommended Posts

Posted

Hi

Im new to this but I begining to get a good understanding of some basic

things.Iv managed to install oscommerce and even installed a new templet

over the original one that comes with the installation.

Everything went well untill I want to go to the..... .mysitedomain.com/catalog/admin/

so that I can do some configarations but it says

 

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in /home/mydomain/domains/mysite.com/public_html/catalog/admin/includes/functions/database.php on line 19

Unable to connect to database server!

 

 

can someone please help me

Thanks

Posted

This means that the information in your configure files is incorrect.

These files hold you user names and passwords for the Database, as well as where the server looks t ofind files and images etc..

you have two

 

catalog / includes / configure.php

admin / includes / configure.php

 

You need to check these settings

 

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted
This means that the information in your configure files is incorrect.

These files hold you user names and passwords for the Database, as well as where the server looks t ofind files and images etc..

you have two

 

catalog / includes / configure.php

admin / includes / configure.php

 

You need to check these settings

 

Nic

 

Thanks alot

yes Iv now done that and it works but it gives me a.......

 

Warning: session_start() [function.session-start]: open(tmp/sess_d6b480b6bc4995b423c4099251f4ff0b, O_RDWR) failed: No such file or directory (2) in /home/mydomain/domains/mysite.biz/public_html/catalog/admin/includes/functions/sessions.php on line 68

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/mydomain/domains/mysite.biz/public_html/catalog/admin/includes/functions/sessions.php:68) in /home/mydomain/domains/mysite.biz/public_html/catalog/admin/includes/functions/sessions.php on line 68

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mydomain/domains/mysite.biz/public_html/catalog/admin/includes/functions/sessions.php:68) in /home/mydomain/domains/gmysite.biz/public_html/catalog/admin/includes/functions/sessions.php on line 68

 

and a oscommerce "Choose an Action" in blue kind of menu page under the text....

 

what to do now???

Posted
Thanks alot

yes Iv now done that and it works but it gives me a.......

 

Warning: session_start() [function.session-start]: open(tmp/sess_d6b480b6bc4995b423c4099251f4ff0b, O_RDWR) failed: No such file or directory (2) in /home/mydomain/domains/mysite.biz/public_html/catalog/admin/includes/functions/sessions.php on line 68

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/mydomain/domains/mysite.biz/public_html/catalog/admin/includes/functions/sessions.php:68) in /home/mydomain/domains/mysite.biz/public_html/catalog/admin/includes/functions/sessions.php on line 68

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mydomain/domains/mysite.biz/public_html/catalog/admin/includes/functions/sessions.php:68) in /home/mydomain/domains/gmysite.biz/public_html/catalog/admin/includes/functions/sessions.php on line 68

 

and a oscommerce "Choose an Action" in blue kind of menu page under the text....

 

what to do now???

 

is there someone out there who can please help me with this???..

Thanks

Posted

In your 2 configure.php files (catalog/includes/configure.php and admin/includes/configure.php). This should look like this.

 

define('STORE_SESSIONS', 'mysql');

 

Log in to osc admin panel. Under SESSIONS >> Session Directory, what is your SESSION Directory path?

Posted
In your 2 configure.php files (catalog/includes/configure.php and admin/includes/configure.php). This should look like this.

 

define('STORE_SESSIONS', 'mysql');

 

Log in to osc admin panel. Under SESSIONS >> Session Directory, what is your SESSION Directory path?

 

 

Thanks

I did that now in both the (catalog/includes/configure.php and admin/includes/configure.php) files and

fixed then to...

 

define('STORE_SESSIONS', 'mysql');

 

what is SESSION Directory path???

well I get to the ...mysite.com/catalog/admin and theres a blues adin page like the image

below...but I cant login in because I need to ake some changes with the site images and so on...

remeber

 

http://img60.imageshack.us/my.php?image=adminsg3.jpg]

thanks

Posted
Configuration>>SESSIONS

 

oh thanks ...

that is set to tmp I removed the /tmp to tmp and it worked...

but I cant login to my admin from ...mywedsit.com/catalog/admin/

it shows the meny from osc in blues but when I press any other button

on the meny is says ....

 

The requested URL /catalog/admin/localhost/admin/configuration.php was not found on this server.

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

Apache/1.3.34 Server at www.mywebsite.com Port 80

Posted
oh thanks ...

that is set to tmp I removed the /tmp to tmp and it worked...

but I cant login to my admin from ...mywedsit.com/catalog/admin/

it shows the meny from osc in blues but when I press any other button

on the meny is says ....

 

The requested URL /catalog/admin/localhost/admin/configuration.php was not found on this server.

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

Apache/1.3.34 Server at www.mywebsite.com Port 80

 

Why Im I geting this???

Anyone kind enough to help me please

Posted
oh thanks ...

that is set to tmp I removed the /tmp to tmp and it worked...

but I cant login to my admin from ...mywedsit.com/catalog/admin/

it shows the meny from osc in blues but when I press any other button

on the meny is says ....

 

The requested URL /catalog/admin/localhost/admin/configuration.php was not found on this server.

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

Apache/1.3.34 Server at www.mywebsite.com Port 80

There's an error in your configure.php file.

You are calling admin by this --> mywedsit.com/catalog/admin/ - translates to URL/catalog/admin - but the error is this

URL /catalog/admin/localhost/admin/configuration.php

There is a folder called catalog and inside it is an admin folder, inside admin folder is a localhost folder and inside that is another admin folder???

 

Could you post your admin/includes/configure.php file? DO NOT include the database information.

Posted
There's an error in your configure.php file.

You are calling admin by this --> mywedsit.com/catalog/admin/ - translates to URL/catalog/admin - but the error is this

URL /catalog/admin/localhost/admin/configuration.php

There is a folder called catalog and inside it is an admin folder, inside admin folder is a localhost folder and inside that is another admin folder???

 

Could you post your admin/includes/configure.php file? DO NOT include the database information.

 

Thanks...

but I cant find folder called catalog and inside it is an admin folder, inside admin folder is a localhost folder and inside that is another admin folder.

The admin/includes/configure.php file is.....below

 

<?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', 'localhost'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'localhost');

define('HTTPS_CATALOG_SERVER', 'localhost');

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

define('DIR_FS_DOCUMENT_ROOT', 'myinfo'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', 'z:/home/pets/www/admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', 'z:/home/pets/www/'); // 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', 'myusername');

define('DB_SERVER_PASSWORD', 'mypassword');

define('DB_DATABASE', 'mydatabasename');

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

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

Posted
Thanks...

but I cant find folder called catalog and inside it is an admin folder, inside admin folder is a localhost folder and inside that is another admin folder.

The admin/includes/configure.php file is.....below

 

<?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', 'localhost'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'localhost');

define('HTTPS_CATALOG_SERVER', 'localhost');

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

define('DIR_FS_DOCUMENT_ROOT', 'myinfo'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', 'z:/home/pets/www/admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', 'z:/home/pets/www/'); // 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', 'myusername');

define('DB_SERVER_PASSWORD', 'mypassword');

define('DB_DATABASE', 'mydatabasename');

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

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

 

how do I or where do I fix this little problem ???

 

someone please help

thanks

Posted
http://www.oscommerce.com[/url]

 

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.mywebsite.com'); // eg, http://localhost - should not be empty for productive servers

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

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

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

define('DIR_FS_DOCUMENT_ROOT', 'z:/home/pets/www/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', 'z:/home/pets/www/catalog/'); // absolute pate required

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

define('DIR_FS_CATALOG', 'z:/home/pets/www/'); // 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', 'myusername');

define('DB_SERVER_PASSWORD', 'mypassword');

define('DB_DATABASE', 'mydatabasename');

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

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

Archived

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

×
×
  • Create New...