aviscat Posted September 13, 2015 Share Posted September 13, 2015 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 More sharing options...
Hotclutch Posted September 13, 2015 Share Posted September 13, 2015 Normally you just have to make changes to the 2 configure files. In addition check your .htaccess - any reference to /catalog should be changed to / Link to comment Share on other sites More sharing options...
aviscat Posted September 13, 2015 Author Share Posted September 13, 2015 @@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 More sharing options...
Hotclutch Posted September 13, 2015 Share Posted September 13, 2015 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 More sharing options...
aviscat Posted September 13, 2015 Author Share Posted September 13, 2015 @@Hotclutch No the domain is still the same. Is it possible that the propagation is still going on? Link to comment Share on other sites More sharing options...
Hotclutch Posted September 13, 2015 Share Posted September 13, 2015 ...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 More sharing options...
aviscat Posted September 13, 2015 Author Share Posted September 13, 2015 @@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 More sharing options...
Hotclutch Posted September 13, 2015 Share Posted September 13, 2015 Can you post a link for us? Link to comment Share on other sites More sharing options...
aviscat Posted September 13, 2015 Author Share Posted September 13, 2015 @@Hotclutch http://lightsply.com/store/catalog/ use hotclutch for user and password http://lightsply.com is the landing page Link to comment Share on other sites More sharing options...
Hotclutch Posted September 13, 2015 Share Posted September 13, 2015 The store is meant to be in the root right? You don't want the part after - store/catalog/ ? Link to comment Share on other sites More sharing options...
aviscat Posted September 13, 2015 Author Share Posted September 13, 2015 @@Hotclutch No I want it in /store/catalog Link to comment Share on other sites More sharing options...
Hotclutch Posted September 13, 2015 Share Posted September 13, 2015 Look like a configure problem - you can post the top part of your configure file - don't post your database username and password here, although you need to make sure those are right as well. Link to comment Share on other sites More sharing options...
aviscat Posted September 13, 2015 Author Share Posted September 13, 2015 @@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 More sharing options...
Hotclutch Posted September 13, 2015 Share Posted September 13, 2015 Everything looks ok - just wonder if this is right define('DIR_FS_CATALOG', '/home/content/c/a/n/canyonlighting/html/store/catalog/'); Link to comment Share on other sites More sharing options...
aviscat Posted September 13, 2015 Author Share Posted September 13, 2015 @@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. Link to comment Share on other sites More sharing options...
Hotclutch Posted September 13, 2015 Share Posted September 13, 2015 You are not running SEO URLs - so do you have anything in there (.htaccess) that might be causing a problem? Link to comment Share on other sites More sharing options...
aviscat Posted September 13, 2015 Author Share Posted September 13, 2015 @@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 More sharing options...
Hotclutch Posted September 13, 2015 Share Posted September 13, 2015 @@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 More sharing options...
aviscat Posted September 13, 2015 Author Share Posted September 13, 2015 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 More sharing options...
aviscat Posted September 13, 2015 Author Share Posted September 13, 2015 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 More sharing options...
Hotclutch Posted September 13, 2015 Share Posted September 13, 2015 You can try temporarily disabling that .htaccess in the root and see if it makes a difference. Further to that I can't see where the issue might be, your configure file seems to be correct. Link to comment Share on other sites More sharing options...
aviscat Posted September 13, 2015 Author Share Posted September 13, 2015 @@Hotclutch I just deleted the .htaccess and .htpasswd and the root .htaccess and I am still getting the same thing. I am on hold with the hosting company now. Link to comment Share on other sites More sharing options...
aviscat Posted September 13, 2015 Author Share Posted September 13, 2015 I'm reloading all the software files and hoping this will fix it. Keep your fingers crossed. That didn't change anything. Link to comment Share on other sites More sharing options...
Jack_mcs Posted September 13, 2015 Share Posted September 13, 2015 @@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 More sharing options...
aviscat Posted September 13, 2015 Author Share Posted September 13, 2015 @@Jack_mcs I tried your path.php and still got an internal server error. I guess the next step is to start over and reinstall the whole site. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.