steverifkin Posted July 22, 2006 Posted July 22, 2006 I have installed osCommerce on my local server (Unix, Apache 1.3.3, php5). I am having problems doing the install past step 2. I have read most if not all of the posts pertainng to this. I have tried the following: 1) .htaccess file located in /catalog - added: php_value register_long_arrays on also: php_value register_globals on (initially I had them OFF and YES I did install the patch manually) 2) I have tried to access the php.ini file. All I can find is php.ini.h in the php5 directory. I have tried typing the command directly into terminal (/php5 $ php_flag register_long_arrays on; I don't think I'm doing this correctly) I also tried creating a php.ini file and saving it to the root of this site. I included the same two php value directives that I tried in the .htaccess. I have restarted Apache each time I have made any of these changes and the install is still not moving past step 2. I know that I can bypass the install and set my paths, usename, and password in the 2 configure files, but I'm afaid that if the install doesn't work now, there may be something wrong in the future. 3) Bypassed the install, loaded the oscommerce.sql through phpmyadmin, changed the define ('paths')...I believe that this is a whole different problem. The error returned for both the /catalog and /catalog/admin URL's is "unable to connect to the database sever!" I am assuming one of my values in the 2 configuration files is incorrect. However, I copied over and appropriately changed the initial values from my remote server which has a working copy of osCommerce up and running. Still no luck.... Please help, Steve
Guest Posted July 23, 2006 Posted July 23, 2006 Hi Steven First off, php.ini will be in your /etc directory (i'm on linux so I may be wrong). If that don't work then delete the .htaccess file and chmod the entire tree to 777. Rob
steverifkin Posted July 23, 2006 Author Posted July 23, 2006 Thanks for the suggestion Rob. I must admit that it's pretty much over my head. I understand that I need to change the permissions of the dir to 777, but the chmod doesn't make much sense to me. I think it's a command I would enter from Terminal, but I don't know what5 dir I should be ion before I execute it... You're a timesaver and lifesaver! Steve
Guest Posted July 23, 2006 Posted July 23, 2006 I'll assume your on Linux in which case chmod will work form anywhere so long as your logged in as root (or the owner of the directory) Just chmod 777 <enter the full path here> Example: chmod -R 777 /srv/www/htdocs/dir-name Your right about having to open the terminal
steverifkin Posted July 23, 2006 Author Posted July 23, 2006 It worked !!!! and I can see the catalog with temp database as well as the admin. However there are NO IMAGES in the catalog, and the admin page has these defects: the columns have all caps with link that take me to the osCommerce support site... clicking on anyof the links with the admin gives the reutrn that the file path does not pull up the relating .php file...I know they are on that path. I will go back to the catalog/admin /includes/configure.php file as well as catalog/includes/configure.php to see if any of the path settings that I bypassed in the install are missing.... Any other ideas... Thanks so much, steve
Guest Posted July 23, 2006 Posted July 23, 2006 I had this very same problem (and others that you may face) but lets deal with this 1 first. Can you post your includes/configure.php file taking out the username and password if you need to.
steverifkin Posted July 23, 2006 Author Posted July 23, 2006 let me rephrase some of that.... there are no boxes in the catalog as well as images... as well as no links work... i.e. The requested URL /catalog/index.php was not found on this server. Could this have something to do with the fact that the install stopped on step=2... I guess i didn't fix anything with the 777 on the enitre directory???
steverifkin Posted July 23, 2006 Author Posted July 23, 2006 per your request....remember that i don't know if php.ini is registering the directives that i have told it. I am running PHP5 with rg's OFF as well as LONG_ARRAYS OFF. step 2 in the install wouldn't load so i bypasssed it. <?php /* $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ 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', 'http://10.0.1.3/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://10.0.1.3'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/~stevenrifkin/eleanor_catalog/catalog'); // 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', 'eleanor_catalog/catalog/admin/'); define('DIR_FS_ADMIN', '/~stevenrifkin/eleanor_catalog/catalog/admin/'); define('DIR_WS_CATALOG', 'eleanor_catalog/catalog/'); define('DIR_FS_CATALOG', '/~stevenrifkin/eleanor_catalog/catalog/'); 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'); define('DB_SERVER_USERNAME', '*******'); define('DB_SERVER_PASSWORD', '******'); define('DB_DATABASE', 'eleanorsql'); define('USE_PCONNECT', 'true'); define('STORE_SESSIONS', 'mysql'); ?>
Guest Posted July 23, 2006 Posted July 23, 2006 Don't know much beyond what I have already said but I would change 10.0.1.3 to localhost
steverifkin Posted July 23, 2006 Author Posted July 23, 2006 thanks for all your help so far. I'll try the 'localhost' as well
♥Skittles Posted July 23, 2006 Posted July 23, 2006 steverifkin, I've had a frustrating day of it too, and still don't have my store installed. During the course of tweaking a Fantastico install, though, I found the configure files both had secure servers specified, even though ENABLE_SSL_CATALOG' was set to false. Removing the url completely didn't fix any of my problems, but changing "https" to "http" allowed the file to find both the stylesheet and the images. i.e. this: define('HTTPS_CATALOG_SERVER', 'https://mydomain.com'); to this: define('HTTPS_CATALOG_SERVER', 'http://mydomain.com'); Following mersey01's suggestion, you might try: define('HTTPS_CATALOG_SERVER', 'http://localhost'); // eg, http://localhost or - https://localhost should not be NULL for productive servers I don't know if this info will help, but like chicken soup, "it couldn't hurt". Good luck, -Skittles
Recommended Posts
Archived
This topic is now archived and is closed to further replies.