electroman00 Posted April 9, 2004 Posted April 9, 2004 Hi all Installed osC and all went well except there is no graphics when catalog is accessed from the web.....however osC works fine locally when cat opened. I have STF and will continue to. Sys info: Linux SME server. All other soft works fine. Thanks in advanced for your help Have a good day
Guest Posted April 10, 2004 Posted April 10, 2004 most likely a configure.php file error, something is wrong in there
electroman00 Posted April 10, 2004 Author Posted April 10, 2004 I surely don't see a problem..... But I could be staring at it. // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://xxxxxx1'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://xxxxxx1'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'xxxxxx1'); define('HTTPS_COOKIE_DOMAIN', 'xxxxxx1'); define('HTTP_COOKIE_PATH', '/oscommerce01/catalog/'); define('HTTPS_COOKIE_PATH', '/oscommerce01/catalog/'); define('DIR_WS_HTTP_CATALOG', '/oscommerce01/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/oscommerce01/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/e-smith/files/ibays/oscommerce01/html/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'xxxxx'); define('DB_SERVER_PASSWORD', 'xxxxx'); define('DB_DATABASE', 'catalog'); define('USE_PCONNECT', 'true'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> Thanks
brewbeer Posted April 10, 2004 Posted April 10, 2004 well after a night of working things out i found out the problem. Basically i recopied the install directory to htdocs and reinstalled the config. It came out to be the server host names used. If you don't have a real web site and just using local host, make sure that the web address is set to the external ip and not localhost or 127.0.0.1 .use the dynamic or preferred static ip the network see you as! So basically if you already have a data base and such back it up and copy out of htdocs. recopy the install directory or the entire oscommerce site to htdocs and run localhost/install/. rename the backup sql to oscommerce.sql and put it in the directory that the install screens tell you. For the database logins use localhost as the database server but when it asks about web addresses enter the external ip address. Worked fine for me! Im sure there is a .php file stached somewhere that has the web address line in it. its not in php.ini or apache conf files. "Chooca ma blah blah"
brewbeer Posted April 10, 2004 Posted April 10, 2004 open admin/includes/configure.php . This is mine. When you reinstall it recreates this file. probably for http server you have localhost or 127.0.0.1. Change it to your external ip. also the http catalog server value. <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://192.168.1.105'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://192.168.1.105'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', 'c:/apache/apache/htdocs/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/admin/'); // absolute path required define('DIR_FS_ADMIN', 'c:/apache/apache/htdocs/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', 'c:/apache/apache/htdocs/'); // 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/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'Default'); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'marxweb'); define('USE_PCONNECT', 'true'); // use persisstent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> "Chooca ma blah blah"
Recommended Posts
Archived
This topic is now archived and is closed to further replies.