Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Had to move osCommerce to install SSL - Need HELP


aviscat

Recommended Posts

I went to install the SSL we purchased last week. Found out that because of the hosting we are using I had to change the primary domain. I moved the osCommerce files up one level and then waited for the site to propagate to the new primary domain. I am now getting a 500 Internal Server Error when I try to get into the catalog.

 

I did change both the configure.php files in the admin and catalog includes directory to reflect the current path. What else do I need to do to get this up and running?

Link to comment
Share on other sites

@@Hotclutch

 

I changed the 2 configure files and the .htacess file. I am using a .htpasswd for clients to get into the catalog. I went into the database using phpMyAdmin and removed the folder name in 2 places there as well. I am still getting the internal server error. Do you have any other ideas I can try?

Link to comment
Share on other sites

Sorry, nothing else I can think of. When you move a level up, that's normally all that you have to change. Did your domain name change at all? because then you obviously have to make corresponding edits for those as well.

Link to comment
Share on other sites

...I had to change the primary domain. I moved the osCommerce files up one level and then waited for the site to propagate to the new primary domain. I am now getting a 500 Internal Server Error when I try to get into the catalog.

 

 

What do you mean by "change the primary domain"? If the domain name stayed the same, and you only moved up a level, then there would have been no DNS changes - and no need to wait for propagation.

 

Have you spoken to your host? SSL requires server configuration on the hosts' side, it may be that there is an error there.

Link to comment
Share on other sites

@@Hotclutch

 

The hosting was using a different domain than the osCommerce store. I had use the domain for the shopping cart as the primary domain to install the SSL as this hosting is the older kind. I had to move the files from the original location to the webroot. I had help from hosting support in doing this and then I realized I needed to change the configure files so I did that. The hosting company doesn't deal with scripting problems. The landing page comes up just fine. When you click to get into the shopping cart the 500 Internal Server Error comes up.

Link to comment
Share on other sites

@@Hotclutch

 

includes/configure

 

 define('HTTP_SERVER', 'http://lightsply.com');
  define('HTTPS_SERVER', 'http://lightsply.com');
  define('ENABLE_SSL', false);
  define('HTTP_COOKIE_DOMAIN', '');
  define('HTTPS_COOKIE_DOMAIN', '');
  define('HTTP_COOKIE_PATH', '/store/catalog/');
  define('HTTPS_COOKIE_PATH', '/store/catalog/');
  define('DIR_WS_HTTP_CATALOG', '/store/catalog/');
  define('DIR_WS_HTTPS_CATALOG', '/store/catalog/');
  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_INCLUDES', 'includes/');
  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/content/c/a/n/canyonlighting/html/store/catalog/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
 
 
admin/configure
 
define('HTTP_SERVER', 'http://lightsply.com');
  define('HTTP_CATALOG_SERVER', 'http://lightsply.com');
  define('HTTPS_CATALOG_SERVER', 'http://lightsply.com');
  define('ENABLE_SSL_CATALOG', 'false');
  define('DIR_FS_DOCUMENT_ROOT', '/home/content/c/a/n/canyonlighting/html/store/catalog/');
  define('DIR_WS_ADMIN', '/store/catalog/admin/');
  define('DIR_FS_ADMIN', '/home/content/c/a/n/canyonlighting/html/store/catalog/admin/');
  define('DIR_WS_CATALOG', '/store/catalog/');
  define('DIR_FS_CATALOG', '/home/content/c/a/n/canyonlighting/html/store/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('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
 
 
I checked the database, user, password and hostname and they are all correct.
 
 
Link to comment
Share on other sites

@@Hotclutch

 

.htaccess

 

# $Id$
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
#   AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)
 
# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers
 
#<IfModule mod_setenvif.c>
#  <IfDefine SSL>
#    SetEnvIf User-Agent ".*MSIE.*" \
#             nokeepalive ssl-unclean-shutdown \
#             downgrade-1.0 force-response-1.0
#  </IfDefine>
#</IfModule>
 
# If Search Engine Friendly URLs do not work, try enabling the
# following Apache configuration parameter
 
# AcceptPathInfo On
 
# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)
 
# php_value session.use_trans_sid 0
# php_value register_globals 1
 
AuthType Basic
AuthName "LightSupply Customer Access"
AuthUserFile /home/content/c/a/n/canyonlighting/html/store/catalog/.htpasswd
Require valid-user
Link to comment
Share on other sites

@@Hotclutch

 

I questioned that as well. They said the absolute path name comes from the original login and it was canyonlighting so that should be correct.

 

Compare that line to the one in the root configure - the only difference should be the store/catalog/ appended to the end.

Link to comment
Share on other sites

admin/.htaccess   I did just change it because it also had the original folder in it but it still doesn't work.

 

# $Id$
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
#   AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)
 
# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers
 
#<IfModule mod_setenvif.c>
#  <IfDefine SSL>
#    SetEnvIf User-Agent ".*MSIE.*" \
#             nokeepalive ssl-unclean-shutdown \
#             downgrade-1.0 force-response-1.0
#  </IfDefine>
#</IfModule>
 
# If Search Engine Friendly URLs do not work, try enabling the
# following Apache configuration parameter
 
# AcceptPathInfo On
 
# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)
 
# php_value session.use_trans_sid 0
# php_value register_globals 1
 
AuthType Basic
AuthName "osCommerce Admin Access"
AuthUserFile /home/content/c/a/n/canyonlighting/html/store/catalog/admin/.htpasswd
Require valid-user
Link to comment
Share on other sites

root/.htaccess

 

RewriteEngine On
 
RewriteCond %{ENV:REDIRECT_STATUS} 200
RewriteRule ^ - [L]
RewriteCond %{HTTP_USER_AGENT} (google|yahoo|msn|aol|bing) [OR]
RewriteCond %{HTTP_REFERER} (google|yahoo|msn|aol|bing)
RewriteRule ^([^/]*)/$ creator-dents.php?$1 [L]
Link to comment
Share on other sites

@@aviscat Internal server errors can be caused by many things. On a move like this, it is usually due to a path being wrong, as mentioned, so give this a try. Create a file containing the following - name it path.php and upload it to your store/catalog/ directory. Then goto that page like http:// ... store/catalog/path.php and compare the path shown to what is in the configure files.

<?php
$serverPath = $_SERVER[SCRIPT_FILENAME];
$pos = strrpos($serverPath, '/');
$serverPath = substr($serverPath, 0, $pos);
echo 'path '.$serverPath;

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...