gareth123456 Posted March 4, 2004 Posted March 4, 2004 I have searched high and low for a solution for this but failed to find a suitable solution: When I log in to Admin under ssl, and click on Catolog, I get the following error message at the top of my screen: Error: Catalog images directory does not exist: /home/b/o/bookseducation/public_html/images/books/ I just know it is something to do with my admin config.php code, but what? Here is my code: define('HTTP_SERVER', 'https://www1.secureserver.co.uk/mysite/'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.mysite.com'); define('HTTPS_CATALOG_SERVER', 'https://www1.secureserver.co.uk/mysite/'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/m/s/mysite/public_html/'); // where the pages are located on the server define('DIR_WS_ADMIN', 'admin/'); // absolute path required define('DIR_FS_ADMIN', DIR_FS_DOCUMENT-ROOT . DIR-WS-ADMIN); // absolute pate required define('DIR_WS_CATALOG', ''); // absolute path required define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_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/books/'); 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', 'server20'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'myusername); define('DB_SERVER_PASSWORD', 'mypassword'); define('DB_DATABASE', 'mydatabase'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' My image files are all set to CHMOD 777, my product images are stored in images/books/ I have tried setting 'DIR_FS_DOCUMENT_ROOT' to '/home/m/s/mysite/public_html/ as above, and 'https://www1.secureserver.co.uk/mysite/' both to no avail. What can I do? Many thanks Gareth
gareth123456 Posted March 5, 2004 Author Posted March 5, 2004 I am still really stuck! Everything else works fine, just the catalog images not showing in Admin..... Any help would make me very happy.
antonbartolo Posted March 5, 2004 Posted March 5, 2004 Having similar trouble except that I don't get the error message at the top. I just get the x's instead of the images and the wrong address pointing to the images! I tried changing my configuration file around but did not solve the problem. I will let you know if I find the bug! Anton
horus Posted March 7, 2004 Posted March 7, 2004 Same problem here. If this helps any, the admin script tries to pull the images from www.horusandisis.com even though I set my site root url to www.horusandisis.com/~username/oscommerce. It's cutting the image url off after .com , so the url is www.horusandisis.com/images... instead of what it should be: www.horusandisis.com/~username/oscommerce My shop worked perfectly, but i made a new install in a different directory with a different database using the fresh SEC install (thats where my problem is. everything in configure.php matches the old one as much as possible). I don't know php or mysql, so it's dificult for me to help any further than explaining these details. I hope this helps, but I hope someone smarter can contribute to this topic. :)
rogeriomo Posted March 8, 2004 Posted March 8, 2004 i'm having a similar issue.. But when i add the ssl to the admin, all my modules desapear.. Per example after instaling ths ssl any way of payment was showing... any ideas what can it be?
241 Posted March 8, 2004 Posted March 8, 2004 define('HTTP_SERVER', 'http://www.mysite.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.mysite.com'); define('HTTPS_CATALOG_SERVER', 'https://www1.secureserver.co.uk'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/m/s/mysite/public_html/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/m/s/mysite/public_html/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', '/home/m/s/mysite/public_html/'); // 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/books/'); 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', 'server20'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'myusername); define('DB_SERVER_PASSWORD', 'mypassword'); define('DB_DATABASE', 'mydatabase'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' 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! Is your Osc dated try Phoenix raising oscommerce from the ashes.
antonbartolo Posted March 9, 2004 Posted March 9, 2004 I finally got some time to spend on this and solved it for my site! 241 suggested a solution for gareth123456. I will try to give an explanation of what was my problem using the following example and hopefully everyone can solve their own problem themselves! Secure server: https://ssl.secureserver.com Website: http://www.mywebsite.com Catalog: http://www.mywebsite.com/shop/ Admin: https://ssl.secureserver.com/mywebsite/dir1/admin/ Link to secure shop: https://ssl.secureserver.com/mywebsite/shop -> http://www.mywebsite.com/shop DIR_FS_DOCUMENT_ROOT:/usr/www/users/mywebsite/shop/ DIR_FS_ADMIN:/usr/wwws/users/mywebsite/dir1/admin/ DIR_FS_CATALOG:/usr/www/users/mywebsite/shop/ Above link in FS format:/usr/wwws/users/mywebsite/shop -> /usr/www/users/mywebsite/shop/ Solution: define('HTTP_SERVER', 'https://ssl.secureserver.com');define('HTTP_CATALOG_SERVER', 'http://www.mywebsite.com'); define('HTTPS_CATALOG_SERVER', 'https://ssl.secureserver.com'); define('DIR_WS_ADMIN', '/mywebsite/dir1/admin/'); define('DIR_WS_CATALOG', '/mywebsite/shop/'); The problem with this configuration is that in: \admin\includes\functions\html_output.php the line: $link = HTTP_CATALOG_SERVER . DIR_WS_CATALOG; gives: http://www.mywebsite.com/mywebsite/shop/ which is wrong (/mywebsite is extra). To solve this I had to add this to the configure.php file: define('DIR_WS_HTTP_CATALOG', '/shop/'); and change the two instances of the above in html_output.php to: $link = HTTP_CATALOG_SERVER . DIR_WS_HTTP_CATALOG; Now this gives the correct: http://www.mywebsite.com/shop/ cheers! Anton
horus Posted March 9, 2004 Posted March 9, 2004 :) I just made both http and https as SSL urls. I also typed the directory and subdirectory as part of the url, and for the catalog directory, I used '/' Everything is working perfect: The Working Store The admin area works good too. Here is the code from /catalog/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', 'https://svr52.ehostpros.com/~horusa52/secosc'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://svr52.ehostpros.com/~horusa52/secosc'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'svr52.ehostpros.com'); define('HTTPS_COOKIE_DOMAIN', 'svr52.ehostpros.com'); 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', '/home/horusa52/public_html/secosc/'); 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', '*************'); define('DB_SERVER_PASSWORD', '***************************'); define('DB_DATABASE', '*************'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> I used only SSL. I look at it this way: It's just making it safer for the clients who visit, and any other browser that doesn't support 128-bit SSL shouldn't be exchanging sensitive informtion, so it's good to use only SSL connections. The code from /admin/icludes/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', 'https://svr52.ehostpros.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'https://svr52.ehostpros.com'); define('HTTPS_CATALOG_SERVER', 'https://svr52.ehostpros.com'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/horusa52/public_html/secosc/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/~horusa52/secosc/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/horusa52/public_html/secosc/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/~horusa52/secosc/'); // absolute path required define('DIR_FS_CATALOG', '/home/horusa52/public_html/secosc/'); // 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', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> I hope this helps. It's not the most intelligent solution, but it works. :huh:
horus Posted March 9, 2004 Posted March 9, 2004 OOPS. I was in a hurry and I posted this without reading the newest replies. I guess this one's been solved already. Nice solution Anton. Thats the real way to fix this problem. (much better than my suggestion) lol I think it also fixes the problem with the "top" link on the navigation bar linking the the base URL www.site.com. So this may be a good fix to shared SSL hosting.
antonbartolo Posted March 14, 2004 Posted March 14, 2004 I am under the impression that SSL is slower than non-SSL due to the encryption process. So I try to avoid SSL unless it is necessary i.e. unless there is sensitive info being exchanged. Anton
Recommended Posts
Archived
This topic is now archived and is closed to further replies.