Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL error with catalog setup


Kip

Recommended Posts

Posted

I am having some problems with the SSL portion of my configuration. I have tried several setups and still get error messages. I am checking with my server to see if I am not putting in the proper https info. One thing still baffles me...

 

I am getting the following error:

 

Fatal error: Failed opening required 'includes/configure.php' (include_path='') in /home/www/~myusername/catalog/includes/application_top.php on line 34

 

when I change the config line to:

 

define('HTTP_SERVER', 'http://www.my site '); // eg, http://localhost - should not be NULL for productive servers

define('HTTPS_SERVER', 'https://secure.westhost.net/~myusername'); // eg, https://localhost - should not be NULL for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

 

Any help would be greatly appreciated, Thanks.

Posted

OK,

Checked with the server and the https: info is all correct.

I have tried inserting the https: line into the define('HTTP_SERVER',..it seems that no matter what I do the following error shows up:

 

Fatal error: Failed opening required 'includes/configure.php' (include_path='') in /home/www/~myusername/catalog/includes/application_top.php on line 34

 

So, it seems that the problem is in the application_top file.

I have attempted to put the enire file path into each and all of the the three places that call for includes/configure.php and includes/local/configure.php:

 

// Set the local configuration parameters - mainly for developers

if (file_exists('includes/local/configure.php')) include('includes/local/configure.php');

 

// include server parameters

require('includes/configure.php');

 

but I keep getting the very same error message.

I've tried to make this as detailed as possible, if I need to include more info to get some help, please let me know.

 

Thanks,

 

Kip

  • 1 year later...
Posted

I'm also using WESTHOST. I'm gonna put what i did here for archival purposes.

 

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'https://ssl4.westserver.net/'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://ssl4.westserver.net/'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'http://www.reitmanracing.com');

define('HTTPS_COOKIE_DOMAIN', 'ssl4.westserver.net');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', 'ssl4.westserver.net');

define('DIR_WS_HTTP_CATALOG', 'reitmanracing.com/');

define('DIR_WS_HTTPS_CATALOG', 'reitmanracing.com/');

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/html/');

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', 'blabla');

define('DB_SERVER_PASSWORD', 'blabla');

define('DB_DATABASE', 'oscommerce');

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

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

?>

 

 

Now, this works, and allows you to get the shared SSL working, however, i get the feeling that it is slower to do it this way. But it's the only workaround i could figure out. I believe there was a fix for this someone floating around, about images causing it to not show the secure lock.

 

Now to answer your specific question althought late, it appears maybe i file has moved, check your configure.php file and make sure these files are there;

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/var/www/html/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

now these are my locations your's may be different.

 

-Brendan

Archived

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

×
×
  • Create New...