Hi everyone, Trying to work out some challenges here. I would like to be able to edit my pages, most specifically the style sheets with a WYSIWYG editor like DreamWeaver but cannot get a copy on my localhost to work.
The initial installation was done by my hosting company and overall appears to be working online with the exception of the "Tell a friend" button. I have turned it on in the admin panel but it does not appear anywhere on any page.
As for getting things to work locally, after reading the installation and setup pages I am assuming i need to modify the php.ini and configure.php on my local server to match that on my hosting server?
Are there other files that need to be edited?
I am running the server natively and not using any emulators such as XAMP(?) or what-have-you and it appears to be working correctly. The installation by the hosting company is setup like /mydomain.org/oscommerce/catalog I am assuming I can just drag catalog to /mydomainorg/catalog ? I have a couple of other basic sites that work locally and the local directory is user/sites/site folders There are three different sites each on their own folder/directories along with an index.html. Is this part of my problem as well?
Thanks
Rich
Latest News: (loading..)
Getting a public install to work locally
Started by Dorothy's Ride, Feb 10 2012, 14:38
3 replies to this topic
#1
Posted 10 February 2012, 14:38
#2
Posted 10 February 2012, 15:04
Okay, well I couldn't find an edit button for the original post but it appears that I need to create a configure.php and put it in .../catalog/includes/local
I am assuming I could just copy the one in the /catalog/includes and modify the http server info and comment out the define('HTTPS_COOKIE_DOMAIN', ''); ?
Do I need to change the DB_SERVER as well, and where if at all would that have been downloaded to?
I am using Mac OS X 6.8 and using filezilla for an ftp client.
Thanks
Rich
I am assuming I could just copy the one in the /catalog/includes and modify the http server info and comment out the define('HTTPS_COOKIE_DOMAIN', ''); ?
Do I need to change the DB_SERVER as well, and where if at all would that have been downloaded to?
I am using Mac OS X 6.8 and using filezilla for an ftp client.
Thanks
Rich
#3
Posted 10 February 2012, 16:04
Hello Richard,
It sounds like you just want to build the site on your local computer / server, then upload it back to your host for the public.. correct?
If so, here is what you need to do.
Download the same version of Oscommerce (2.3.1)
Install it to your local server Oscommerce will auto install provided you have every permission set correctly (this has never been an issue for me).
-You will have to have a server of some sort, my experience is only with Apache servers so I can't help with IIS servers.
-There are directions with the download.
Once installed, feel free to build your site, mods whatever.
Once completed you'll simply move it to your host's server.
You'll need to import your database and files over.
You'll also have to edit the configuration files those are located in 2 places:
catalog/includes/configure.php and
admin/includes/configure.php
You'll need to change database user name and Password and DIR_FS_CATALOG as well as your HTTP / S Domain paths. Here are 2 configuration files you may reference:
Running on my Local Computer Via Xammp
catalog/includes/configure.php
Here is the same site running on my host's server:
Remember you'll also need to edit the admin/includes/configure.php but those are similar enough you should see what needs done with the above examples.
After uploading the files and making the appropriate changes you'll also need to import your database. There are several ways to do that, some host have very nice Cpanels with phpMyAdmin that will allow you to do it, but I rather like using BigDump myself.
Provided you have no problems with database and file uploads, you have successfully migrated your site to your server (or vice versa).
Hope that helps.
It sounds like you just want to build the site on your local computer / server, then upload it back to your host for the public.. correct?
If so, here is what you need to do.
Download the same version of Oscommerce (2.3.1)
Install it to your local server Oscommerce will auto install provided you have every permission set correctly (this has never been an issue for me).
-You will have to have a server of some sort, my experience is only with Apache servers so I can't help with IIS servers.
-There are directions with the download.
Once installed, feel free to build your site, mods whatever.
Once completed you'll simply move it to your host's server.
You'll need to import your database and files over.
You'll also have to edit the configuration files those are located in 2 places:
catalog/includes/configure.php and
admin/includes/configure.php
You'll need to change database user name and Password and DIR_FS_CATALOG as well as your HTTP / S Domain paths. Here are 2 configuration files you may reference:
Running on my Local Computer Via Xammp
catalog/includes/configure.php
<?php
define('HTTP_SERVER', 'http://localhost');
define('HTTPS_SERVER', 'https://localhost');
define('ENABLE_SSL', true);
define('HTTP_COOKIE_DOMAIN', 'localhost');
define('HTTPS_COOKIE_DOMAIN', 'localhost');
define('HTTP_COOKIE_PATH', '/catalog/');
define('HTTPS_COOKIE_PATH', '/catalog/');
define('DIR_WS_HTTP_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/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', 'C:/xampp/htdocs/catalog/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'root');
define('DB_SERVER_PASSWORD', '');
define('DB_DATABASE', 'osc1');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'mysql');
?>
Here is the same site running on my host's server:
<?php
define('HTTP_SERVER', 'http://www.rubberstore.com');
define('HTTPS_SERVER', 'http://www.rubberstore.com');
define('ENABLE_SSL', false);
define('HTTP_COOKIE_DOMAIN', '');
define('HTTPS_COOKIE_DOMAIN', '');
define('HTTP_COOKIE_PATH', '/catalog/');
define('HTTPS_COOKIE_PATH', '/catalog/');
define('DIR_WS_HTTP_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/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/columb22/public_html/catalog/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'xxxxxxxx');
define('DB_SERVER_PASSWORD', 'xxxxxxx');
define('DB_DATABASE', 'xxxxxxxxx');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'mysql');
?>
Remember you'll also need to edit the admin/includes/configure.php but those are similar enough you should see what needs done with the above examples.
After uploading the files and making the appropriate changes you'll also need to import your database. There are several ways to do that, some host have very nice Cpanels with phpMyAdmin that will allow you to do it, but I rather like using BigDump myself.
Provided you have no problems with database and file uploads, you have successfully migrated your site to your server (or vice versa).
Hope that helps.
#4
Posted 10 February 2012, 16:56
Hi Don,
Thank you-!!
Huge help. I had gone through the install pocedure last night and it appears that I should be able to use what I have by modifying these files locally.
I downloaded BigDump although I am hoping I won't need to mess with the DB as all I really want to do locally is modify the look. I had found another thread that covered the topic but only showed what the changes should look like and not what was originally on their local server.
I am going to try to see if I can get the .../catalog/includes/local to work as it appears osCom is set up or can be to run on a local and remote server simultaneously. I am hoping that s the case as when I am done I will be handing the administration over to someone else. However the only "instructions" I have found on the subject is
"This directory contains local configuration information. It also must contain a file named configure.php that can be used to override the defaults set in application_top.php Remember to execute PHP commands the file needs to start with"
I am really a novice with php but the application_top appears to override the main configure file if it finds something here first.
Thanks again for your help.
Thank you-!!
Huge help. I had gone through the install pocedure last night and it appears that I should be able to use what I have by modifying these files locally.
I downloaded BigDump although I am hoping I won't need to mess with the DB as all I really want to do locally is modify the look. I had found another thread that covered the topic but only showed what the changes should look like and not what was originally on their local server.
I am going to try to see if I can get the .../catalog/includes/local to work as it appears osCom is set up or can be to run on a local and remote server simultaneously. I am hoping that s the case as when I am done I will be handing the administration over to someone else. However the only "instructions" I have found on the subject is
"This directory contains local configuration information. It also must contain a file named configure.php that can be used to override the defaults set in application_top.php Remember to execute PHP commands the file needs to start with"
I am really a novice with php but the application_top appears to override the main configure file if it finds something here first.
Thanks again for your help.














