Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Installing On Local Machine


Chubz

Recommended Posts

It looks like I have fallen at the first hurdle lol. :blush:

 

I installed on my local machine, everything went to plan, except when I deleted the install directory & hit the localhost index, I got the following message.

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\wamp\www\oscom\catalog\includes\functions\database.php on line 19

Unable to connect to database server!

 

Which is the config file that determines the username & password for connection to the database?

Thanks.

Link to comment
Share on other sites

It looks like I have fallen at the first hurdle lol. :blush:

 

I installed on my local machine, everything went to plan, except when I deleted the install directory & hit the localhost index, I got the following message.

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\wamp\www\oscom\catalog\includes\functions\database.php on line 19

Unable to connect to database server!

 

Which is the config file that determines the username & password for connection to the database?

Thanks.

 

catalog/includes/configure.php (the one that is causing the problem)

 

and

 

catalog/admin/includes/configure.php

Link to comment
Share on other sites

catalog/includes/configure.php (the one that is causing the problem)

 

and

 

catalog/admin/includes/configure.php

 

Thanks very much!

 

If anyone experiences the above problem, open the files above & change the settings at the bottom to the following (assuming you have a standard installation of WAMP)

 

// define our database connection
 define('DB_SERVER', '');
 define('DB_SERVER_USERNAME', 'root');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', 'Whatever name you gave your database');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', '');

 

I now have the following warnings which I shall now start attacking. :thumbsup:

 

Warning: session_start() [function.session-start]: open(/tmp\sess_fbc47764d7b3465431eddc959e0a5a2e, O_RDWR) failed: No such file or directory (2) in C:\wamp\www\oscom\catalog\includes\functions\sessions.php on line 97

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\wamp\www\oscom\catalog\includes\functions\sessions.php:97) in C:\wamp\www\oscom\catalog\includes\functions\sessions.php on line 97

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\wamp\www\oscom\catalog\includes\functions\sessions.php:97) in C:\wamp\www\oscom\catalog\includes\functions\sessions.php on line 97

 

Warning: session_write_close() [function.session-write-close]: open(/tmp\sess_0b06e6b2ff3573bcdd0d11f0ceef6cf6, O_RDWR) failed: No such file or directory (2) in C:\wamp\www\oscom\catalog\includes\functions\sessions.php on line 136

Warning: session_write_close() [function.session-write-close]: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in C:\wamp\www\oscom\catalog\includes\functions\sessions.php on line 136

Link to comment
Share on other sites

Thanks very much!

 

If anyone experiences the above problem, open the files above & change the settings at the bottom to the following (assuming you have a standard installation of WAMP)

 

// define our database connection
 define('DB_SERVER', '');
 define('DB_SERVER_USERNAME', 'root');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', 'Whatever name you gave your database');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', '');

 

I now have the following warnings which I shall now start attacking. :thumbsup:

 

Warning: session_start() [function.session-start]: open(/tmp\sess_fbc47764d7b3465431eddc959e0a5a2e, O_RDWR) failed: No such file or directory (2) in C:\wamp\www\oscom\catalog\includes\functions\sessions.php on line 97

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\wamp\www\oscom\catalog\includes\functions\sessions.php:97) in C:\wamp\www\oscom\catalog\includes\functions\sessions.php on line 97

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\wamp\www\oscom\catalog\includes\functions\sessions.php:97) in C:\wamp\www\oscom\catalog\includes\functions\sessions.php on line 97

 

Warning: session_write_close() [function.session-write-close]: open(/tmp\sess_0b06e6b2ff3573bcdd0d11f0ceef6cf6, O_RDWR) failed: No such file or directory (2) in C:\wamp\www\oscom\catalog\includes\functions\sessions.php on line 136

Warning: session_write_close() [function.session-write-close]: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in C:\wamp\www\oscom\catalog\includes\functions\sessions.php on line 136

 

/tmp doesn't exist in Windoze

 

You need to change admin>configuration>Sessions Session Directory to ...

 

C:/WINDOWS/TEMP

Link to comment
Share on other sites

/tmp doesn't exist in Windoze

 

You need to change admin>configuration>Sessions Session Directory to ...

 

C:/WINDOWS/TEMP

 

So I need to find admin>configuration>Sessions>Session directory, rename it TEMP & move it to C:/WINDOWS?

 

I just looked in the admin directory and it doesn't contain a sub-directory called configuration, so I can't go any further. I must have understood this wrong?

:blush:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...