Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Trouble Staying Live


asajay

Recommended Posts

System info:

 

OS = Linux Fedora Core 4, shared hosting using Plesk

PHP = 5.0.4 with Zend engine 2.0.4-dev

Apache web server

mySQL database

HTTP site = www.udderwheynatural.com

install dir = . . . /httpdocs/catalog

register_globals = On (in /etc/php.ini)

safe_mode = Off (in /etc/php.ini)

 

Download tgz file via wget directly to server, un-tarred, moved to host directory

osCommerce version: oscommerce-2.2ms2-060817

Changed register_globals to On in php.ini file, restarted Apache

 

Using Plesk interface, created a database for the store

 

Performed web install at www.udderwheynatural.com/catalog/install

All appears to go well, with success message at the end.

Click on either catalog or admin and get a blank page.

Manually query the db to install the default oscommerce.sql file

Click on either catalog or admin and I now get a page, but now it becomes hit or miss if I'll get any more pages.

 

Example: Go to Catalog and get a page, register account and get a blank page, going back, continue to get blank pages (special note, I did receive an email telling me I had been registered)

Example: Go to Admin and get the menu, click on an item and get a blank page, go back and continue to get blank pages.

 

Two items appear to solve this temporarily (for one page and then blanks again):

- If I re-install the db, it works for a page or two then goes blank all over again.

- If I delete all cookies, cache and offline content, it works for a page or two and then goes blank all over again.

 

I have changed permissions as suggested by the install procedures, to those specific directories and/or files needing it.

 

The following is my /catalogs/includes/configure.php file:

 

<?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.udderwheynatural.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', '.udderwheynatural.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_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/var/www/vhosts/udderwheynatural.com/httpdocs/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', 'www.udderwheynatural.com'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'xxxxxxxx');

define('DB_SERVER_PASSWORD', 'xxxxxxxx');

define('DB_DATABASE', 'xxxxxxxx');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

 

============================================================

The following is my /catalog/admin/includes/configure.php file:

 

<?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.udderwheynatural.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.udderwheynatural.com');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/var/www/vhosts/udderwheynatural.com/httpdocs/catalog/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/var/www/vhosts/udderwheynatural.com/httpdocs/catalog/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

define('DIR_FS_CATALOG', '/var/www/vhosts/udderwheynatural.com/httpdocs/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/');

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', 'www.udderwheynatural.com'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'xxxxxxxx');

define('DB_SERVER_PASSWORD', 'xxxxxxxx');

define('DB_DATABASE', 'xxxxxxxx');

define('USE_PCONNECT', 'false'); // use persisstent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

===================================================================

 

I am at my wits end to understand what else I am missing. Is php5 a problem? What about Zend? What else is wrong? I need some intelligent questions to be forwarded to me so I can try to narrow this down. I would sincerely appreciate whatever help you can give.

 

Thank you,

Asa Jay

Link to comment
Share on other sites

Nevermind.

 

Went here:

http://www.zen-cart.com/

 

Started fresh using this:

http://tutorials.zen-cart.com/index.php?article=107

 

and had no troubles.

 

So much for osCommerce. If osCommerce suffered from any configuration that was highlighted in the ZenCart install, who would know, because the osCommerce install and documentation appear to be slightly deficient in that area. So after almost 40 hours of screwing around with osCommerce and it's forums, and finding not nearly enough clues to fix the problem. ZenCart solved it all in about 20 minutes.

 

Regards,

Asa Jay

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...