Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

configuring file paths on my home computer


ausipodskins

Recommended Posts

Posted

I am in the final stages of getting a duplicate of my live shop set up on my home computer. this will be my test-bed for modifications before I install them on the live shop (hosted externally).

 

I have managed to modify the two config files to reflect the local paths and so bring the shop up on my home computer.

 

I am now stuck on the correct file path for the backups folder and file manager module in admin panel. The path I need to replace is

/home/httpd/vhosts/myexternalserver.com/httpdocs/xxx/catalog/

 

for the basic paths to the index pages I have had success by using:

http://127.0.0.1/~pk/shop/

 

what should I have for the 'document root' and 'admin' paths (and any other paths)?

 

Here is what I have at the moment in my config.php file:

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
?define('HTTP_SERVER', 'http://127.0.0.1/~pk/shop/'); // eg, http://localhost - should not be empty for productive servers
?define('HTTP_CATALOG_SERVER', 'http://127.0.0.1/~pk/shop/');
?define('HTTPS_CATALOG_SERVER', '');
?define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
?define('DIR_FS_DOCUMENT_ROOT', 'http://127.0.0.1/~pk/shop/catalog/'); // where the pages are located on the server
?define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
?define('DIR_FS_ADMIN', '/home/httpd/shop/catalog/admin/'); // absolute path required
?define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
?define('DIR_FS_CATALOG', '/catalog/'); // 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/');

Posted

should be able to do it with c:/www/~pk/shop/catalog/

this is assuming that the files are located on the c drive in the directory www but this can be whatever your path is.

I use EASYPHP for development work as it is very easy to setup and run.

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

thanks. I'm actually on a mac rather than windows, so the path doesn't quite work for me. I think I need to provide more detail.

 

Here is an extract from the config.php file on the remote server that handles the my site on the www.

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
?define('HTTP_SERVER', 'http://www.freepgs.com'); // eg, http://localhost - should not be empty for productive servers
?define('HTTP_CATALOG_SERVER', 'http://www.freepgs.com');
?define('HTTPS_CATALOG_SERVER', '');
?define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
?define('DIR_FS_DOCUMENT_ROOT', '/home/httpd/vhosts/freepgs.com/httpdocs/piquet/catalog/'); // where the pages are located on the server
?define('DIR_WS_ADMIN', '/piquet/catalog/admin/'); // absolute path required
?define('DIR_FS_ADMIN', '/home/httpd/vhosts/freepgs.com/httpdocs/piquet/catalog/admin/'); // absolute pate required
?define('DIR_WS_CATALOG', '/piquet/catalog/'); // absolute path required
?define('DIR_FS_CATALOG', '/home/httpd/vhosts/freepgs.com/httpdocs/piquet/catalog/'); // 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/');

And here is what is thrown up when I use my website admin tools to backup the database:

 

screen1.gif

 

Now, here is the same extract from the configure.php file on my home computer that creates a testing platform for my website (note: I have copied all the osC files across from the external server to my home computer):

 

define('HTTP_SERVER', 'http://127.0.0.1/~pk/shop/'); // eg, http://localhost - should not be empty for productive servers
?define('HTTP_CATALOG_SERVER', 'http://127.0.0.1/~pk/shop/');
?define('HTTPS_CATALOG_SERVER', '');
?define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
?define('DIR_FS_DOCUMENT_ROOT', 'http://127.0.0.1/~pk/shop/catalog/'); // where the pages are located on the server
?define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
?define('DIR_FS_ADMIN', 'http://127.0.0.1/~pk/shop/catalog/admin/'); // absolute path required
?define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
?define('DIR_FS_CATALOG', '/catalog/'); // 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/');

And here is a similar snapshot of the page rendered on my home computer:

screen2.gif

 

so what seems to be causing the confusion is the syntax for defining the path for for the filesystem directories for admin, catalog and document root. the webservice paths all work fine so the pages get rendered but I can't access any of the files for backups etc via my admin panel.

 

sorry for the long post. I hope someone can help me understand what is going on here or where I might find some answers.

 

thanks in advance.

 

Piquet

Archived

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

×
×
  • Create New...