Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Initial HTTP(s) locations set to dedicated IP. Now I have a domain. Only 1 problem.

Initial HTTP(s) locations set to dedicated IP. Now I have a domain. Only 1 problem.

Locked

Views: 1,670

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
10 Apr 2007, 7:19 PM
#1
askfritzdotcom avatar

askfritzdotcom

New Zenner

Join Date:
Mar 2007
Posts:
24
Plugin Contributions:
0

Initial HTTP(s) locations set to dedicated IP. Now I have a domain. Only 1 problem.

So I used to just run this web site off of a dedicated IP (http://208.109.212.191/) while my domain transfered from the old registrar to the new one. So now I have www.undergroundsmoke.com.

Only one problem. Everywhere the location of the website is referred to, it's to the dedicated IP.

I changed some information in includes/configuration.php to show undergroundsmoke.com instead of the IP, but it still shows the IP.

Then I was wondering what admin/configuration & admin/includes/dist-configuration.php were for?

Thanks!

10 Apr 2007, 9:02 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,608
Plugin Contributions:
0

Re: Initial HTTP(s) locations set to dedicated IP. Now I have a domain. Only 1 problem.

Please post your includes/configure.php without your passwords.

11 Apr 2007, 12:24 AM
#3
askfritzdotcom avatar

askfritzdotcom

New Zenner

Join Date:
Mar 2007
Posts:
24
Plugin Contributions:
0

Re: Initial HTTP(s) locations set to dedicated IP. Now I have a domain. Only 1 problem.

<?php /** * * @package Configuration Settings * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/ /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/ // Define the webserver and path parameters // HTTP_SERVER is your Main webserver: eg, <http://www.yourdomain.com> // HTTPS_SERVER is your Secure webserver: eg, <https://www.yourdomain.com> define('HTTP_SERVER', 'http://www.undergroundsmoke.com'); define('HTTPS_SERVER', 'https://www.undergroundsmoke.com'); // Use secure webserver for checkout procedure? define('ENABLE_SSL', 'true'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); 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', DIR_WS_CATALOG . 'pub/'); define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/'); define('DIR_WS_PHPBB', '/'); // * DIR_FS_* = Filesystem directories (local/physical) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_CATALOG', '/home/content/m/a/r/marwanmorrar/html/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/'); define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', ''); define('DB_SERVER', ''); define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', ''); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'none'); define('DIR_FS_SQL_CACHE', '/home/content/m/a/r/marwanmorrar/html/cache'); ?>
11 Apr 2007, 1:20 AM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,608
Plugin Contributions:
0

Re: Initial HTTP(s) locations set to dedicated IP. Now I have a domain. Only 1 problem.

okay - don't see anything wrong with that one - how about the admin/includes/configure.php - also no passwords

11 Apr 2007, 2:46 AM
#5
askfritzdotcom avatar

askfritzdotcom

New Zenner

Join Date:
Mar 2007
Posts:
24
Plugin Contributions:
0

Re: Initial HTTP(s) locations set to dedicated IP. Now I have a domain. Only 1 problem.

all configuration files for:

Includes
Admin
Admin/includes

have HTTP= http://www.undergroundsmoke.com/
have HTTPS= https://www.undergroundsmoke.com/

ssl=true
admin ssl=true

.... I don't understand why it's still reverting to the IP.

11 Apr 2007, 9:05 AM
#6
masterblaster avatar

masterblaster

Totally Zenned

Join Date:
Aug 2004
Location:
Germany
Posts:
528
Plugin Contributions:
0

Re: Initial HTTP(s) locations set to dedicated IP. Now I have a domain. Only 1 problem.

Since you are using no cache this is really kind of misteriouos!

I suspect that you are not editing the right file. Maybe you think you do, but you don't... You said that you transfered the domain to a new registar and I assume also a new host. . -> Did you change the config files at the new registar or the old one?

Maybe your site hasn't moved yet to your new location. The domain is currently administrated by Godaddy.

Hope the thought help :)

11 Apr 2007, 9:13 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Initial HTTP(s) locations set to dedicated IP. Now I have a domain. Only 1 problem.

Is this correct?

  1. You had a site on your server configured to be accessed via IP address.
  2. Your configure.php files on the server were marked read-only to supress the warnings and to secure the site.
  3. You have a local copy of those files on your PC.
  4. You edited the files on your PC to change the IP address to the domain name.
  5. You attempted to upload your changes via FTP
  6. When testing the site after upload, you discover that the changes haven't taken effect.

Are you sure your uploads were successful? If the files were marked read-only on the server, perhaps you need to make them read-write before uploading. Then make them read-only after the upload is successful.