Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Localserver help needed


Charene

Recommended Posts

Hi,

 

I'm new to php, and maintaining my own site. After following the forums for a while, I realised that it was possible to have a copy of my site on my pc, for testing purposes.

I've downloaded WampServer, and installed Oscommerce on my pc. The Oscommerce site is working fine, but I can not access my admin area, in order to upload products, or make other admin changes.

 

After I installed OsCommerce, I FTP'd the files from my website to my virtual site. I would really appreciate it if somebody could help me with the following questions:

 

1. Which files need to be altered, in order for the site to work on my localhost site?

2. What changes do I need to make to these?

3. I get the following error:

 

"Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\wamp\www\admin\includes\functions\database.php on line 19

Unable to connect to database server!"

 

How do I fix this?

 

Thanks!

Charene

Charene

Link to comment
Share on other sites

Setting Up osCommerce

http://support.occhosting.com/setting_up_oscommerce.html

 

If your hosting panel looks different than the instructions, start with the "PHP" section.

 

 

IF USING SSL:

BACKUP your current files before editing. Did I mention to BACKUP your current files, first?

 

/catalog/includes/configure.php

  define('HTTP_SERVER', 'https://www.yourdomain.tld'); 
 define('HTTPS_SERVER', 'https://www.yourdomain.tld');
 define('ENABLE_SSL', true); 
 define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.tld');
 define('HTTPS_COOKIE_DOMAIN', 'www.yourdomain.tld');

 

/catalog/admin/includes/configure.php

  define('HTTP_SERVER', 'https://www.yourdomain.tld'); 
 define('HTTP_CATALOG_SERVER', 'https://www.yourdomain.tld');
 define('HTTPS_CATALOG_SERVER', 'https://www.yourdomain.tld');
 define('ENABLE_SSL_CATALOG', 'true'); 
 define('DIR_FS_DOCUMENT_ROOT', '/home/username/public_html'); 
 define('DIR_WS_ADMIN', '/catalog/admin/'); 
 define('DIR_FS_ADMIN', '/home/username/public_html/catalog/admin/'); // 
 define('DIR_WS_CATALOG', '/catalog/'); 
 define('DIR_FS_CATALOG', '/home/username/public_html/catalog/');

 

Notice the S in:

HTTP_SERVER and HTTP_CATALOG_SERVER

BACKUP your current files before editing. Did I mention to BACKUP your current files, first?

 

"I'm not a hero, I'm a firefighter; it is my job to save lives. I'm a Jesus Christ Firefighter saving souls from the flames!"

 

Installed contribs: Almost XP Buttons *** Attribute Sort *** Auto Thumbnail Change *** Column Product Listing (for SPPC v4.0) *** Contact Us Registered *** Country-State Selector 1.3.3J *** CC# Db Mask 1.3 *** Email Order Clickable Link *** Extra Images *** Linkpoint API CVM *** Loginbox Best *** New Spiders *** New Attrib Mgr v.5.0 w/ New Attrib Include *** Multi Product Update *** MySQL Cron *** Pricing per Category *** Product Listing in Columns v2.2 [later upgraded to CPL(SPPC)] *** Product Sort v1.6 *** Seperate Pricing Per Customer v4.15 *** Simple Down for Maintenance [Gokou] *** Ultimate_SEO_URLs_v2.2.2 *** UPS Worldship Export 1.3 *** Welcome Email username & password

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...