Guest Posted April 28, 2006 Posted April 28, 2006 I have recently installed OSC on my server and I have been setting things up when I came across a little problem. I don?t have any payment options. When I go into Payments>Modules all I have is the following Module Directory: /catalog/includes/modules/payment/ then the install button If I look in that directory on the server there is a list of php files but they are not showing up in the list. Am I doing something wrong. The same applies to shipping and order total. I have searched on the forum for days and just can?t find the fix. Please Help
kgt Posted April 28, 2006 Posted April 28, 2006 Go to Tools > Server Info in your admin section. Scroll almost all the way to the bottom, you will see two entries about 15 lines apart: _SERVER["DOCUMENT_ROOT"] _SERVER["SCRIPT_FILENAME"] If the path for SCRIPT_FILENAME is NOT the same as DOCUMENT_ROOT, then you need to edit admin/includes/configure.php and change the DIR_FS_DOCUMENT_ROOT constant to be the same directory as SCRIPT_FILENAME (without the "/server_info.php" on the end). Contributions Discount Coupon Codes Donations
Guest Posted April 28, 2006 Posted April 28, 2006 Go to Tools > Server Info in your admin section. Scroll almost all the way to the bottom, you will see two entries about 15 lines apart: _SERVER["DOCUMENT_ROOT"] _SERVER["SCRIPT_FILENAME"] If the path for SCRIPT_FILENAME is NOT the same as DOCUMENT_ROOT, then you need to edit admin/includes/configure.php and change the DIR_FS_DOCUMENT_ROOT constant to be the same directory as SCRIPT_FILENAME (without the "/server_info.php" on the end). I have searched the entire listing and I dont have _SERVER["DOCUMENT_ROOT"] _SERVER["SCRIPT_FILENAME"] The only one that comes close to it is _SERVER["SCRIPT_NAME"]
kgt Posted April 28, 2006 Posted April 28, 2006 What about in the ENV array? Or, just ask your host what your true, exact document root is. Contributions Discount Coupon Codes Donations
Guest Posted April 28, 2006 Posted April 28, 2006 What about in the ENV array? Or, just ask your host what your true, exact document root is. No luck :( I tried a find in firefox and nothing is listed under the headings above. this is just driving me nuts.
kgt Posted April 28, 2006 Posted April 28, 2006 Ask your host what your document root is. Contributions Discount Coupon Codes Donations
Guest Posted May 1, 2006 Posted May 1, 2006 Ask your host what your document root is. I finaly got the Doc Root from my provider. I then went in to the configure.php in Admin and Catalog and made the changes. I still have no Payment modules showing up. Only Module Directory: /catalog/includes/modules/payment/
kgt Posted May 1, 2006 Posted May 1, 2006 Looks like either your host did not give you the correct DOCUMENT_ROOT, or you didn't get it change in includes/conifgure.php. I doubt your doc root is /. Remember if you have your permissions set to 444, your FTP program or your host's File Manager might not warn you that it cannot save your new configure.php. You have to change permissions, make your changes, save, and change permissions again. Contributions Discount Coupon Codes Donations
Guest Posted May 1, 2006 Posted May 1, 2006 Im' not sure I know what you mean about I doubt your doc root is / the directory i was given is: D:/hshome/username/domain.com When I put this in I could still see the catalog and the admin section. If I change just one part of it I get an error. Would I be right in saying it must be the correct path?? Its just so confusing when your only learning that you need it spelt out for it to make any sence. I even followed the instalation instructions and got nowhere. Am I missing the obvious!!!!!
Guest Posted May 1, 2006 Posted May 1, 2006 Here are the configure.php files: Some changes for security. catalog/includes/configure.php <?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://www.domain.com'); // 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', 'www.domain.com'); 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_CATALOG', '/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/hshome/username/domain.com/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', '00.000.000.000'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'username'); define('DB_SERVER_PASSWORD', 'password'); define('DB_DATABASE', 'dbname'); define('USE_PCONNECT', 'true'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> admin/includes/configure.php <?php/* $Id: configure.php,v 1.3 2003/09/30 16:13:41 serg Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2002 osCommerce Released under the GNU General Public License */ // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', ''); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/hshome/username/domain.com' ); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/hshome/username/domain.com'); 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', ''); define('DB_SERVER_USERNAME', 'mysql'); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'osCommerce'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', ''); ?>
kgt Posted May 2, 2006 Posted May 2, 2006 If the directory you're given is D:/hshome/username/domain.com Then that is EXACTLY what you need to put in the DIR_FS_DOCUMENT_ROOT constant in admin/includes/configure.php. When you see directories without a drive letter like C: or D:, those are Unix/Linux directories. For those style operating systems, to specify the root of the directory structure (C:) you use just a slash (/). define('DIR_FS_DOCUMENT_ROOT', 'D:/hshome/username/domain.com' ); Contributions Discount Coupon Codes Donations
Guest Posted May 2, 2006 Posted May 2, 2006 Still not working. The version I have installed is put in by my hosting company via a control panel. I think the best thing to do is remove it and install it myself from a download of the OS Commerce website. I think the problems are with the service provider.
kgt Posted May 2, 2006 Posted May 2, 2006 I think the best thing to do is remove it and install it myself from a download of the OS Commerce website. That's the Microsoft way, and though it *might* help, it probably won't. The other thing you can do, if you haven't entered anything in your database (like products, etc) is drop the database, recreate it, and run the oscommerce.sql script in the install directory. It's also possible that you have some duplicate or messed up entired in the configuration table. I highly suspect, however, that this truly is a path problem, and will not be solved by reinstalling (especially if you don't use their installer - keep in mind they may have already altered some things to make it work on their server). Contributions Discount Coupon Codes Donations
Guest Posted May 2, 2006 Posted May 2, 2006 Rather then remove OS Commerce from my server and reinstall it. I decided to install it to a clean server that never had OS Commerce on it before. I installed it as per the instructions and noted down the directory root as it was displayed to me. When the installation was complete I opened the admin section and everything worked as it should. All the payment and shipping modules are there and I can pick and choose the ones I wish to use. I?m not sure if this is related but I also noticed that I can browse the catalog much faster then on the other server. As it has worked on a different server with the exact same settings (win server) I am going to delete the old database and os commerce and install it again using this technique. Thanks for all your help. Regards Alan
Recommended Posts
Archived
This topic is now archived and is closed to further replies.