robdyk Posted June 16, 2004 Share Posted June 16, 2004 Hello all. First problem I encountered is that nobody can see any pictures ! I can see all pictures when I browse the oscommerce site. I have the site on my own server at home. When i look from another PC that resides on the same LAN as my server I can see pages and pictures. When someone from "the outside" visits the web-shop He can't see any pictures, only text. They all see 'x' on the places where the pictures should be. The second problem is that anyone from outside my lan can only see the index.php page. When they hit any link, the browser reports : Document contains no data. It won't show anything. I know for sure the files are in the right directories as they should be. Any idea where to look for ? Link to comment Share on other sites More sharing options...
♥kymation Posted June 17, 2004 Share Posted June 17, 2004 Look in includes/configure.php. You may have a path set that is outside the webserver's root, or otherwise inaccessible from the outside world. If you can't figure it out, please give us the URL and post a copy of the above file for us to look at. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
robdyk Posted June 17, 2004 Author Share Posted June 17, 2004 Okay, I'll post the file. I'm not exactly sure where to look for, although I think the "define HTTP server"is wrong. I used the ip-adress itself instead of the fully qualified domainname. So I think it's a DNS problem The url of the site is: http://www.linuxforme.serverthuis.nl/oscom...-2.2ms2/catalog and this is my /includes/configure.php <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 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://172.16.0.5'); // 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', '172.16.0.5'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/oscommerce-2.2ms2/catalog/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/oscommerce-2.2ms2/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', '/var/www/html/oscommerce-2.2ms2/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', '172.16.0.5'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'root'); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'oscommerce'); define('USE_PCONNECT', 'true'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> Link to comment Share on other sites More sharing options...
♥kymation Posted June 17, 2004 Share Posted June 17, 2004 You are quite right; the IP address is the problem. Addresses in the range 172.16.0.0 - 172.31.255.255 are non-routable. Your IP is effectively invisible to anybody outside your network. Otherwise your settings appear to be correct. I should also mention that running a database server exposed to the internet with no password is very dangerous. I hope that you just removed the password before posting. If not, please secure your servers before you fix the address problem. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.