Guest Posted December 12, 2006 Posted December 12, 2006 So I thought I'd get smart and test my mods on a local Apache server before overwriting my live application on the remote server. I have a SuSE Linux box with Apache, PHP, and MySQL installed. I'm using FileZilla to access it through my LAN. The IP address for the SuSE box is 10.0.0.150. The path to the catalog is then 10.0.0.150/www/divemates.com/catalog. I changed the settings in the catalog/includes/configure.php to reflect that and now I'm having problems. If I open a browser to 10.0.0.150/www/divemates.com/catalog I can get the catalog/index.php, but the links to the stylesheet.css, the images and eevrything else are broken. I can tell that it's finding the catalog/includes/application_top.php, but I think that's because of the require statement in index.php. Thanks in advance for any help you can provide! Here's the code in my configure.php; you can see that I comented out the remote server paths and added the local tess server paths: // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) // define('HTTP_SERVER', 'http://www.divemates.com'); // For Remote Server // define('HTTPS_SERVER', 'https://www.divemates.com'); // For Remote Server // define('ENABLE_SSL', true); // For Remote Server // define('HTTP_COOKIE_DOMAIN', 'www.divemates.com'); // For Remote Server // define('HTTPS_COOKIE_DOMAIN', 'www.divemates.com'); // For Remote Server define('HTTP_SERVER', 'http://10.0.0.150/www/divemates.com'); // For local Test Server define('HTTPS_SERVER', 'http://10.0.0.150/www/divemates.com'); // For local Test Server define('ENABLE_SSL', false); // For local Test Server define('HTTP_COOKIE_DOMAIN', 'divemates.com'); // For local Test Server define('HTTPS_COOKIE_DOMAIN', 'divemates.com'); // For local Test Server 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/content/d/i/v/divemate/html/catalog/'); // For Remote Server define('DIR_FS_CATALOG', 'http://10.0.0.150/www/divemates.com/catalog/'); // For local Test Server define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection // define('DB_SERVER', 'mysql229.secureserver.net'); // For Remote Server // define('DB_SERVER_USERNAME', '*****'); // For Remote Server // define('DB_SERVER_PASSWORD', '*****'); // For Remote Server define('DB_SERVER', 'localhost'); // For local Test Server define('DB_SERVER_USERNAME', '*****'); // For local Test Server define('DB_SERVER_PASSWORD', '*****'); // For local Test Server define('DB_DATABASE', 'divemate'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?>
rusty1001 Posted December 12, 2006 Posted December 12, 2006 So I thought I'd get smart and test my mods on a local Apache server before overwriting my live application on the remote server. I have a SuSE Linux box with Apache, PHP, and MySQL installed. I'm using FileZilla to access it through my LAN. The IP address for the SuSE box is 10.0.0.150. The path to the catalog is then 10.0.0.150/www/divemates.com/catalog. I changed the settings in the catalog/includes/configure.php to reflect that and now I'm having problems. If I open a browser to 10.0.0.150/www/divemates.com/catalog I can get the catalog/index.php, but the links to the stylesheet.css, the images and eevrything else are broken. I can tell that it's finding the catalog/includes/application_top.php, but I think that's because of the require statement in index.php. Thanks in advance for any help you can provide! Here's the code in my configure.php; you can see that I comented out the remote server paths and added the local tess server paths: // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) // define('HTTP_SERVER', 'http://www.divemates.com'); // For Remote Server // define('HTTPS_SERVER', 'https://www.divemates.com'); // For Remote Server // define('ENABLE_SSL', true); // For Remote Server // define('HTTP_COOKIE_DOMAIN', 'www.divemates.com'); // For Remote Server // define('HTTPS_COOKIE_DOMAIN', 'www.divemates.com'); // For Remote Server define('HTTP_SERVER', 'http://www/divemates.com'); // For local Test Server define('HTTPS_SERVER', 'http://www/divemates.com'); // For local Test Server define('ENABLE_SSL', false); // For local Test Server define('HTTP_COOKIE_DOMAIN', 'divemates.com'); // For local Test Server define('HTTPS_COOKIE_DOMAIN', 'divemates.com'); // For local Test Server 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/content/d/i/v/divemate/html/catalog/'); // For Remote Server define('DIR_FS_CATALOG', 'http://www/divemates.com/catalog/'); // For local Test Server define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection // define('DB_SERVER', 'mysql229.secureserver.net'); // For Remote Server // define('DB_SERVER_USERNAME', '*****'); // For Remote Server // define('DB_SERVER_PASSWORD', '*****'); // For Remote Server define('DB_SERVER', 'localhost'); // For local Test Server define('DB_SERVER_USERNAME', '*****'); // For local Test Server define('DB_SERVER_PASSWORD', '*****'); // For local Test Server define('DB_DATABASE', 'divemate'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> I have adjusted to what I think you need, but if everything is in catalog folder offline then that is what it should be online, cheers Rusty -------------------------------------------
Guest Posted December 12, 2006 Posted December 12, 2006 Thanks for the effort, rusty1001, but I still have the same problem. It works fine on the remote server, just not on the local server with adjusted paths. You can go to my store at www.divemates.com/catalog and see that it's up and running. That's the remote server. I copied all of the files to the local server, changed the paths in the configure.php, and it quit running.
rusty1001 Posted December 12, 2006 Posted December 12, 2006 Thanks for the effort, rusty1001, but I still have the same problem. It works fine on the remote server, just not on the local server with adjusted paths. You can go to my store at www.divemates.com/catalog and see that it's up and running. That's the remote server. I copied all of the files to the local server, changed the paths in the configure.php, and it quit running. admin conffig // 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'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://127.0.0.1'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', 'C:/wamp/www/catalog/'); // where the pages are located on the server //define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required define('DIR_FS_ADMIN', 'C:/wamp/www/catalog/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_FS_CATALOG', 'C:/wamp/www/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/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', '***'); define('DB_SERVER_PASSWORD', '****'); define('DB_DATABASE', '******'); define('USE_PCONNECT', 'true'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> root config // 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'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', '127.0.0.1'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/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', 'C:/wamp/www/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', 'r***'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', '******'); define('USE_PCONNECT', 'true'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> Sorry I read it the other way I am using WAMP as local machine server... but check my config. to yours change where needed it should be the fine ,,, if this does not work it may be the version mysql or php that your are running locallyby the way I see that some of your lines are commented out at the top ?? why? cheers Rusty -------------------------------------------
Guest Posted December 12, 2006 Posted December 12, 2006 I see that some of your lines are commented out at the top ?? why? cheers What I did was comment out the lines that were made for the remote server. i then duplicated the lines and edited the setting for the local server test machine. It doesn't work
rusty1001 Posted December 12, 2006 Posted December 12, 2006 What I did was comment out the lines that were made for the remote server. i then duplicated the lines and edited the setting for the local server test machine. It doesn't work Go back the orginal config...install with your local server you dont need to edit this file much ,, this is edited as needed in the install ... cheers Rusty -------------------------------------------
jfrey Posted December 13, 2006 Posted December 13, 2006 define('HTTP_SERVER', 'http://10.0.0.150/www/divemates.com'); // For local Test Server define('HTTPS_SERVER', 'http://10.0.0.150/www/divemates.com'); // For local Test Server define('ENABLE_SSL', false); // For local Test Server define('HTTP_COOKIE_DOMAIN', 'divemates.com'); // For local Test Server define('HTTPS_COOKIE_DOMAIN', 'divemates.com'); // For local Test Server ?> Change "define('HTTP_SERVER', 'http://10.0.0.150/www/divemates.com'); // For local Test Server define('HTTPS_SERVER', 'http://10.0.0.150/www/divemates.com')" To: "define('HTTP_SERVER', 'http://localhost'); define('HTTPS_SERVER', 'http://localhost')" Change the cookie domains to localhost, etc. Saludos, Jim
Recommended Posts
Archived
This topic is now archived and is closed to further replies.