Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL help


mergesort

Recommended Posts

I had the following error when I tried to log in or create a new account:

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

--------------------------------------------------------------------------------

Apache/1.3.29 Server at treasure.globat.com Port 443

 

My webpage is http://www.hellopotato.com and my SSL is at https://treasure.globat.com/~hellopotato.com

 

There're two folders httpdocs and httpsdocs in the root, and I copied everything in httpdocs into httpsdocs.

 

My configuration file looks like:

 

define('HTTP_SERVER', 'http://www.hellopotato.com');

define('HTTPS_SERVER', 'https://treasure.globat.com/~hellopotato.com');

define('ENABLE_SSL', 'true');

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

define('HTTPS_COOKIE_DOMAIN', 'treasure.globat.com/~hellopotato.com');

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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

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

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

 

thank you..

Link to comment
Share on other sites

my god, I read through the posts and tried all possible suggestions, but still didn't get a clue :-(

This line:

 

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

 

should be:

 

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

 

But I helped someone with a globat install a long time ago and I found that it only worked when the FS paths were set explicitly.

 

That's this line:

 

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

 

You can find that in your server control panel or by going to Server Info in the Admin section, under Tools.

 

or...

 

You can run this little script, name it myroot.php and put it in your root folder.

<?php
echo 'Document Root: ' . getenv('DOCUMENT_ROOT');
?>

You'd access that by going to:

 

http://www.hellopotato.com/myroot.php

 

 

So, find out what it is then post back.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

thanks, Alan.

 

I updated the 'HTTP_COOKIE_DOMAIN' and found out the 'DOCUMENT_ROOT' is /usr/local/psa/home/vhosts/hellopotato.com/httpdocs

 

so I changed the line (in file httpdocs/includes/configure.php) to:

 

define ('DIR_FS_CATALOG', '/usr/local/psa/home/vhosts/hellopotato.com/httpdocs');

 

and for the corresponding file in httpsdocs/includes, I tried both

 

define ('DIR_FS_CATALOG', '/usr/local/psa/home/vhosts/hellopotato.com/httpdocs');

and 

define ('DIR_FS_CATALOG', '/usr/local/psa/home/vhosts/hellopotato.com/httpsdocs');

 

but got the same error message :-(

 

 

This line:

 

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

 

should be:

 

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

 

But I helped someone with a globat install a long time ago and I found that it only worked when the FS paths were set explicitly.

 

That's this line:

 

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

 

You can find that in your server control panel or by going to Server Info in the Admin section, under Tools.

 

or...

 

You can run this little script, name it myroot.php and put it in your root folder.

<?php
echo 'Document Root: ' . getenv('DOCUMENT_ROOT');
?>

You'd access that by going to:

 

http://www.hellopotato.com/myroot.php

So, find out what it is then post back.

Link to comment
Share on other sites

Drop a simple little index.html in your root folder, like "Hello World". Let's make sure the secure server set-up is right.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

thanks, alan.

 

I added a simple index.html into both httpdocs and httpsdocs, and renamed the original index.php into indexw.php

 

When I tried either http://www.hellopotato.com or https//treasure.globat.com/~hellopotato.com

 

I had the new index file opened.

 

so I guess the secure server is ok?

 

 

Drop a simple little index.html in your root folder, like "Hello World". Let's make sure the secure server set-up is right.

Link to comment
Share on other sites

Oh, wait a second...

 

I didn't read your post carefully enough.

 

You have:

 

define ('DIR_FS_CATALOG', '/usr/local/psa/home/vhosts/hellopotato.com/httpdocs');

 

oops, you're not using catalog.

 

Make that:

 

define ('DIR_FS_CATALOG', '/usr/local/psa/home/vhosts/hellopotato.com/httpdocs/');

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Was the SSL Certificate purchased for www.yourname.com or http://yourname.com (NO www)

 

You setup looks like:

define('HTTP_SERVER', 'http://www.hellopotato.com');

define('HTTPS_SERVER', 'https://treasure.globat.com/~hellopotato.com');

define('ENABLE_SSL', 'true');

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

Link to comment
Share on other sites

o actually, I moved everything in catalog to the root directory so that there's no catalog folder at all..

 

 

Look up, I caught that.

 

Just add the final /

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...