Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shared SSL install problem - please help


Recommended Posts

I have tried and tried to figure this out but just can't get this to work! I think that if i explain what i've done so far it'll be alot easier to understand!

 

I need to install my website with ssl and fasthosts (my hosting provider) only supply shared ssl space.

So i followed fasthosts instructions to achieve all this by installing oscommerce on both my standard web space and my shared SSL space.

 

Then they tell you to upload register_globals which i did and then add this line of text at the end of the includes\configure.php file:-

 

define('WARN_CONFIG_WRITEABLE','false');

 

So all this is done and when i enter my site and click on the 'Account' link, im redirected to my shared space but it shows up this :-

 

Warning: session_save_path() [function.session-save-path]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (e:\sslroot;c:\winnt\temp;) in e:\sslroot\mysecuredspace\includes\functions\sessions.php on line 252

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at e:\sslroot\mysecuredspace\includes\functions\sessions.php:252) in e:\sslroot\mysecuredspace\includes\functions\sessions.php on line 98

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at e:\sslroot\mysecuredspace\includes\functions\sessions.php:252) in e:\sslroot\mysecuredspace\includes\functions\sessions.php on line 98

 

Warning: Cannot modify header information - headers already sent by (output started at e:\sslroot\mysecuredspace\includes\functions\sessions.php:252) in e:\sslroot\mysecuredspace\includes\functions\general.php on line 33

 

 

This is where im really confused and havn't got a clue what to do!! Please can someone help as im going out my mind trying to figure it out!

 

Thanks in advance

 

Steve

Link to comment
Share on other sites

Hi Steve,

 

I am having the exact same errors and I am also with Fasthosts. Did you ever get this resolved, if so could you PLEASE post the fix.

 

Thanks - Belinda

Link to comment
Share on other sites

I'm not sure what the error is saying. It might mean it can't find the /tmp.

 

If you have some oscommerce files on a different server that means your paths would change. Did you change your /includes/configure.php to the new server paths?

 

It might help you to store sessions in the database.

 

/includes/configure.php:

define('STORE_SESSIONS', 'mysql');

Other great Open Source (Free) programs: (Free as in free speech not free beer)

The Gimp - An image program. | Firefox - All you have to do is add the Web Developer add-on to make this web browser complete. | FileZilla - An ftp program. | Inkscape - A good program to create images with. | Thunderbird - An email program. | Openoffice.org - An office suite that is compatible with MS Office. | Abiword - Another office suite. | Audacity - A sound recording tool. | ddp's Picks | Wordpress - An easy to use blogging software. | Joomla - An easy to use CMS that has ecommerce plug-ins. | Drupal - Another CMS

How do I find these programs? Google Search!

Link to comment
Share on other sites

Hi,

 

I already have that, please see my /includes/configure.php you may see something, I would appreciate it. I have reverted back to the original configure file so as not to have the errors on the site.

 

Thanks - Belinda

 

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

define('HTTPS_SERVER', 'https://vault2.secured-url.com/supercanvas'); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', 'www.supercanvas.com');

define('HTTPS_COOKIE_DOMAIN', 'https://vault2.secured-url.com/supercanvas');

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

 

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

define('DIR_FS_CATALOG', '/home/nas03l/s/supercanvas.com/user/htdocs/');

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

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

 

// define our database connection

define('DB_SERVER', '*********'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', '*******');

define('DB_SERVER_PASSWORD', '********');

define('DB_DATABASE', '********');

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

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

define('WARN_CONFIG_WRITEABLE','false');

?>

 

 

 

 

 

 

 

 

 

I'm not sure what the error is saying. It might mean it can't find the /tmp.

 

If you have some oscommerce files on a different server that means your paths would change. Did you change your /includes/configure.php to the new server paths?

 

It might help you to store sessions in the database.

 

/includes/configure.php:

Link to comment
Share on other sites

  • 2 weeks later...

I have finally figured out the solution for installing shared ssl correctly on fasthosts!

 

1. create ssl space on your fasthosts account

 

2. install you osc store on both your web space and shared ssl space

(YOU MUST INSTALL YOUR STORE WITH-IN THE 'CATALOG' FOLDER. NOTE: THE FOLDER DOESN'T HAVE TO BE CALLED 'CATALOG' E.G. CAN BE NAMED ANYTHING, STORE, SHOP... JUST AS LONG AS YOU UPLOAD YOUR ENTIRE OSC STORE WITH-IN THIS FOLDER YOU SHOULDN'T HAVE ANY PROBLEMS)

 

3. install the contribution register globals on just your shared ssl install - this can be found here - http://www.oscommerce.com/community/contri...egister+globals

 

4. After you've gone through the install process of your main store, your includes/configure.php should look like this-

 

 

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

define('HTTPS_SERVER', 'https://vault2.secured-url.com'); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', 'www.yourwebsiteurl.co.uk');

define('HTTPS_COOKIE_DOMAIN', 'vault2.secured-url.com/yoursharedsslfolder');

define('HTTP_COOKIE_PATH', '/shop/');

define('HTTPS_COOKIE_PATH', '/shop/');

define('DIR_WS_HTTP_CATALOG', '/shop/');

define('DIR_WS_HTTPS_CATALOG', '/yoursharedsslfolder/shop/');

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', '/home/fhlinux190/s/yourwebsiteurl.co.uk/user/htdocs/shop/');

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

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

 

// define our database connection

define('DB_SERVER', 'your.db.ip.address'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'yourdbusername');

define('DB_SERVER_PASSWORD', 'yourdbpassword');

define('DB_DATABASE', 'yourdbname');

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

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

define('WARN_CONFIG_WRITEABLE','false');

?>

 

and your admin/includes/configure.php should look like this-

 

 

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

define('HTTP_CATALOG_SERVER', 'http://www.yourwebsiteurl.co.uk');

define('HTTPS_CATALOG_SERVER', 'https://vault2.secured-url.com');

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

define('DIR_FS_DOCUMENT_ROOT', '/home/fhlinux190/s/yourwebsiteurl.co.uk/user/htdocs/shop/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', '/home/fhlinux190/s/yourwebsiteurl.co.uk/user/htdocs/shop/admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', '/home/fhlinux190/s/yourwebsiteurl.co.uk/user/htdocs/shop/'); // 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', 'your.db.ip.address'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'yourdbusername');

define('DB_SERVER_PASSWORD', 'yourdbpassword');

define('DB_DATABASE', 'yourdbname');

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

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

?>

 

The configure files need to be the same on both your main web space and shared ssl space.

 

That is it! If you follow these instructions exactly you shouldn't have any problems!

 

If you get stuck you can email me here - [email protected] as it has caused me alot of frustration trying to figure it out successfully and know alot of people have had alot of trouble with this!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...