Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

2nd Problem


Guest

Recommended Posts

Posted

Follow the link below:

 

http://www.theictworkshop.com/catalog/

 

The installation went fine so why am I getting this error message?

 

In the control panel of my web hosting this is what it says about the MySql database:

 

Connection Information: Server: mysql.vault5.net (not "localhost")

 

During the install I entered: mysql.vault5.net in the database server text box. Is this correct? Should I reinstall and try entering localhost as the database server? or will that cause more problems?

 

Thanks.

Posted

When I look at the error, I see a space after the host name, which isn't so obvious when viewed by my browser because of the variable-width font.

 

Open includes/configure.php with a text editor, and make sure there's no space before the closing quote:

define('DB_SERVER', 'mysql.vault5.net ');  //BAD
define('DB_SERVER', 'mysql.vault5.net');  //GOOD

Contributions

 

Discount Coupon Codes

Donations

Posted

Doh! Thanks for that. :blush:

 

I can now view my shop but now I have a new error, something about the session directory/file not existing. I looked and there is a file called session.php. Any idea what could be wrong with it?

 

Thanks.

Posted
I can now view my shop but now I have a new error, something about the session directory/file not existing. I looked and there is a file called session.php. Any idea what could be wrong with it?

The error message is telling you that it cannot write to the file:

/tmp\sess_f961dc1b46a242d4ae784a221385cdc7

Now, since you're on windows, notice anything wrong with that?

 

In Admin > Configuration > Sessions, you would need to set an appropriate directory (Such as C:\temp). Or, the easier and generally better way:

 

Edit includes/configure.php and admin/includes/configure.php, and make sure your store is set to use the database to handle session data:

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

Contributions

 

Discount Coupon Codes

Donations

Posted
The error message is telling you that it cannot write to the file:

/tmp\sess_f961dc1b46a242d4ae784a221385cdc7

Now, since you're on windows, notice anything wrong with that?

 

In Admin > Configuration > Sessions, you would need to set an appropriate directory (Such as C:\temp).  Or, the easier and generally better way:

 

Edit includes/configure.php and admin/includes/configure.php, and make sure your store is set to use the database to handle session data:

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

 

 

Thanks kgt that bit of code worked a treat. :thumbsup:

 

One more question. Because I am on a windows server I understand that I can't change file permissions myself. So if I now contact my web hosting people and tell them to set the permissions to includes/configure.php so it get rid of the message on the top of the page, does this mean that I can't carry out certain tasks. Basically I'm looking at creating site with the same structure to this one:

 

http://www.printerclub.co.uk

 

Will I still be able to create the box with the logos, the page with a list of printers etc, if the file permissions of the includes/configure.php file are changed? Or will I have to contact the hosting people every time I want to change something like that?

 

Thanks.

Posted
Thanks kgt that bit of code worked a treat.  :thumbsup:

 

One more question. Because I am on a windows server I understand that I can't change file permissions myself. So if I now contact my web hosting people and tell them to set the permissions to includes/configure.php so it get rid of the message on the top of the page, does this mean that I can't carry out certain tasks. Basically I'm looking at creating site with the same structure to this one:

 

http://www.printerclub.co.uk

 

Will I still be able to create the box with the logos, the page with a list of printers etc, if the file permissions of the includes/configure.php file are changed? Or will I have to contact the hosting people every time I want to change something like that?

 

Thanks.

 

Generally once you have the configuration set, you do not need it edit it again.

 

That being said, I assume your web host allows you ftp access so that you can upload your files. Or, they may have something like cpanel, which is an online control panel for your site. Either way, you should be able to set file permissions yourself. The FTP programs all have a slightly different menu, but it'll involve right-clicking the file you wish to set permissions on.

 

I am assuming your host is on a linux machine.

Contributions

 

Discount Coupon Codes

Donations

Posted
I am assuming your host is on a linux machine.
Because I am on a windows server I understand that I can't change file permissions myself

 

You can't change file permissions via FTP on Windows server, but you should be able to do it using the File Manager in you web hosting control panel.

 

Vger

Archived

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

×
×
  • Create New...