newbieman Posted March 7, 2007 Posted March 7, 2007 I cannot get the admin page to work in oscommerce. Not only are the login page graphics broken, but logging in give me a 404 error. Can someone explain why the broken pictures have a path of: http://www.ecomm.testsite.com/var/www/ecom...ges/opening.gif The CORRECT path is actually, "http://www.ecomm.testsite.com/admin/images/opening.gif" Although this is the actual physical server path name, no where in either configure.php file is there anything written with "/var/www/ecomm". In the admin, configure.php I have tried this: define('DIR_WS_ADMIN', '/var/www/html/ecomm/admin/'); // absolute path required define('DIR_FS_ADMIN', '/var/www/html/ecomm/admin/'); // absolute path required define('DIR_WS_CATALOG', '/var/www/html/ecomm/'); // absolute path required define('DIR_FS_CATALOG', '/var/www/html/ecomm/'); // absolute path required and this: define('DIR_WS_ADMIN', '/'); // absolute path required define('DIR_FS_ADMIN', '/'); // absolute path required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', '/'); // absolute path required but there was absolutely no change on the website for some reason. Any help is most certainly appreciated. SDC
♥Vger Posted March 8, 2007 Posted March 8, 2007 define('DIR_WS_ADMIN', '/ecomm/admin/'); // absolute path required define('DIR_FS_ADMIN', '/var/www/html/ecomm/admin/'); // absolute path required define('DIR_WS_CATALOG', '/ecomm/'); // absolute path required define('DIR_FS_CATALOG', '/var/www/html/ecomm/'); // absolute path required Don't forget that to be able to overwrite the online admin/includes/configure.php file with the edited file you first have to reset permissions on the file to 644 and then reset them again after the upload. If that still doesn't work then make sure that there are no alternative configure.php files inside the includes/local/ folders. If you do find any in the 'local' folders then either rename or delete them. Vger
newbieman Posted March 8, 2007 Author Posted March 8, 2007 define('DIR_WS_ADMIN', '/ecomm/admin/'); // absolute path requireddefine('DIR_FS_ADMIN', '/var/www/html/ecomm/admin/'); // absolute path required define('DIR_WS_CATALOG', '/ecomm/'); // absolute path required define('DIR_FS_CATALOG', '/var/www/html/ecomm/'); // absolute path required Don't forget that to be able to overwrite the online admin/includes/configure.php file with the edited file you first have to reset permissions on the file to 644 and then reset them again after the upload. If that still doesn't work then make sure that there are no alternative configure.php files inside the includes/local/ folders. If you do find any in the 'local' folders then either rename or delete them. Vger >Don't forget that to be able to overwrite the online admin/includes/configure.php file ha ha... I learned that the hard way the last time. :-) Usually I only need to a mistake once and it is forever remembered. :thumbsup: >no alternative configure.php files inside the includes/local/ folders. This is an interesting idea. I shall check. Thank you.
newbieman Posted March 8, 2007 Author Posted March 8, 2007 I scanned the entire website hierarchy and found only the following files with "configure.php" in their filename: epconfigure.php /admin affiliate_configure.php /includes configure.php /includes configure.php.tst /includes configure.php /pear affiliate_configure.php /admin/includes configure.php /admin/includes configure.php.tst /admin/includes The current configure.php in root/includes (as viewed from the site): <?php /* osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] 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://www.ecomm.testsite.com'); // eg, [url="http://localhost"]http://localhost[/url] - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.ecomm.testsite.com'); // eg, [url="https://localhost"]https://localhost[/url] - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.ecomm.testsite.com'); define('HTTPS_COOKIE_DOMAIN', 'www.ecomm.testsite.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/'); //Added for BTS1.0 define('DIR_WS_TEMPLATES', 'templates/'); define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/'); define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/'); //End BTS1.0 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_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.localdomain'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'removed'); define('DB_SERVER_PASSWORD', 'removed'); define('DB_DATABASE', 'testsite_com_ecomm'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' The current configure.php in root/admin/includes (as viewed from the site): <?php /* osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] 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://www.ecomm.testsite.com'); // eg, [url="http://localhost"]http://localhost[/url] - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.ecomm.testsite.com'); define('HTTPS_CATALOG_SERVER', ''); define('HTTPS_SERVER', 'https://www.ecomm.testsite.com'); // eg, [url="https://localhost"]https://localhost[/url] - should not be empty for productive servers define('HTTPS_ADMIN_SERVER', '/'); define('HTTP_COOKIE_DOMAIN', 'www.ecomm.testsite.com'); define('HTTPS_COOKIE_DOMAIN', '/'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('ENABLE_SSL', 'false'); // secure webserver for checkout procedure? define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_WS_HTTP_ADMIN', '/admin/'); define('DIR_WS_HTTPS_ADMIN', 'admin/'); define('DIR_FS_DOCUMENT_ROOT', '/var/www/html/ecomm/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/admin/'); // absolute path required define('DIR_FS_ADMIN', '/var/www/html/ecomm/admin/'); // absolute path required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', '/var/www/html/ecomm/'); // 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/'); // Added for Templating define('DIR_FS_CATALOG_MAINPAGE_MODULES', DIR_FS_CATALOG_MODULES . 'mainpage_modules/'); define('DIR_WS_TEMPLATES', DIR_WS_CATALOG . 'templates/'); define('DIR_FS_TEMPLATES', DIR_FS_CATALOG . 'templates/'); // define our database connection define('DB_SERVER', 'localhost.localdomain'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'removed'); define('DB_SERVER_PASSWORD', 'removed'); define('DB_DATABASE', 'testsite_com_ecomm'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> BUT I still see broken links on the ecomm.testsite.com/admin/login.php (I cannot login either) The broken links point to www.ecomm.testsite.com/var/www/ecomm/admin/images/picture.gif Why oh why?
newbieman Posted March 9, 2007 Author Posted March 9, 2007 This is so strange! Does oscommerce cache the configure.php files?????? I just commented out both in a vain attempt to understand why it doesn't seem to matter what changes I make, it get the same results when trying to access the admin. This time, I renamed both configure.php's to configure.php-test Not only does my main page work (including database and adding to the cart) but the admin still fails! What is going on. I have also confirmed and double checked, there are no other copies of configure.php anywhere on the server. Arrghh.. help... I need to buy a clue!
newbieman Posted March 9, 2007 Author Posted March 9, 2007 Forget it! I believe I solved the problem. Not as mysterious as I thought.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.