bbcompent1 Posted January 19, 2010 Posted January 19, 2010 Hi everyone, I need a hand here. I'm having the worst time trying to straighten out the correct paths for my images. Here is my configuration for both the catalog and administrator configure.php files. Catalog configure.php file: define('HTTP_SERVER', 'https://localhost/shopping/'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://localhost/shopping/'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', ''); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', ''); define('DIR_WS_HTTPS_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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Admin configure.php file: // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', 'https://localhost/shopping/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'https://localhost/shopping/'); define('HTTPS_CATALOG_SERVER', 'https://localhost/shopping/'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', 'g:/clients/mine/my/shopping'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_WS_ADMIN', 'admin/'); define('DIR_FS_ADMIN', 'g:/clients/mine/my/shopping/admin/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', 'g:/clients/mine/my/shopping/'); 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/'); Any help with the above would be most appreciated. Thank you in advance!
BryceJr Posted January 19, 2010 Posted January 19, 2010 Log in to your osc admin panel >>Tools>>Server info. What is the value of "document root"?
bbcompent1 Posted January 20, 2010 Author Posted January 20, 2010 Log in to your osc admin panel >>Tools>>Server info. What is the value of "document root"? _SERVER["DOCUMENT_ROOT"] G:\Clients\mine\my
BryceJr Posted January 20, 2010 Posted January 20, 2010 Catalog configure.php file: define('HTTP_SERVER', 'http://localhost'); define('HTTPS_SERVER', 'https://localhost'); define('ENABLE_SSL', 'false'); define('HTTP_COOKIE_DOMAIN', '.localhost.'); define('HTTPS_COOKIE_DOMAIN', '.localhost.'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/shopping/'); define('DIR_WS_HTTPS_CATALOG', '/shopping/'); define('DIR_FS_CATALOG', 'g:/clients/mine/my/shopping/'); ... Admin configure.php file: define('HTTP_SERVER', 'http://localhost'); define('HTTP_CATALOG_SERVER', 'http://localhost'); define('HTTPS_CATALOG_SERVER', 'http://localhost'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', 'g:/clients/mine/my/'); define('DIR_WS_ADMIN', '/shopping/admin/'); define('DIR_FS_ADMIN', 'g:/clients/mine/my/shopping/admin/'); define('DIR_WS_CATALOG', '/shopping/'); define('DIR_FS_CATALOG', 'g:/clients/mine/my/shopping/'); ... Usually ssl cert is not available for localhost(except with XAMPP and maybe with WAMP, not certain with IIS), so ssl is disabled. If you're capable of ssl, re-enable ssl in catalog and admin( and change http to https in admin).
bbcompent1 Posted January 20, 2010 Author Posted January 20, 2010 Usually ssl cert is not available for localhost(except with XAMPP and maybe with WAMP, not certain with IIS), so ssl is disabled. If you're capable of ssl, re-enable ssl in catalog and admin( and change http to https in admin). Well, its closer than before. At least now my icons show up. What I need to know is how do I get the cart to use images that are located on my PC via uploading? Do I have to put them into the image directory and then use the actual URL?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.