Zen Cart Logo
Forums / Installing on a Linux/Unix Server / problem with store on IP change

problem with store on IP change

Locked

Views: 3,070

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
24 Feb 2009, 7:56 PM
#1
torapp avatar

torapp

New Zenner

Join Date:
Dec 2007
Location:
Toronto, ON
Posts:
6
Plugin Contributions:
0

problem with store on IP change

My domain host has changed my IP address on my server and now my cart doesn't open. When someone goes to my site it redirects them to http://www.x.com/x/zc_install/index.php instead of running my shoping cart as usual (the x's were used to blank out my site for privacy purposes). Any help would be GREATLY APPRECIATED!
Thank you all for your hard work!

24 Feb 2009, 8:01 PM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: problem with store on IP change

Firstly... WHY is the install folder still there? :shocking:

It should have been deleted after your installation.

Next... I think this is one your host needs to answer as the problem (as you say) is with the host.

24 Feb 2009, 9:17 PM
#3
torapp avatar

torapp

New Zenner

Join Date:
Dec 2007
Location:
Toronto, ON
Posts:
6
Plugin Contributions:
0

Re: problem with store on IP change

fairestcape:

Firstly... WHY is the install folder still there? :shocking:

It should have been deleted after your installation.

funny you should say that, I thought the same thing. However, when I check my file manager, the install directory does NOT exist. For some reason it keeps sending people there when they type the root directory. In addition, the same problem also happens when i try to access my site directly at the directory in which zencart was installed. I am losing my mind, I need my site active! I am losing customers by the hour!:cry:

PLEASE HELP!

24 Feb 2009, 9:30 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: problem with store on IP change

Definitely something your host should be fixing.

25 Feb 2009, 1:40 PM
#5
torapp avatar

torapp

New Zenner

Join Date:
Dec 2007
Location:
Toronto, ON
Posts:
6
Plugin Contributions:
0

Re: problem with store on IP change

My host is saying that there is something in the zencart configuration files that needs to be updated. I am in big trouble. I need this site up and running again. I am going on 3 days downtime now.:frusty:

25 Feb 2009, 7:17 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: problem with store on IP change

Well ... if you're going to throw the blame on Zen Cart, post your /includes/configure.php file here, without the password.

And ... why did the IP address get changed? What else can you explain about what's been changed on the server and why?

25 Feb 2009, 7:54 PM
#7
torapp avatar

torapp

New Zenner

Join Date:
Dec 2007
Location:
Toronto, ON
Posts:
6
Plugin Contributions:
0

Re: problem with store on IP change

I am not blaming zencart, in fact zencart and its fourm has done nothing but good for me. RESPECT TO ALL!

My host is telling me to change anything that would be in the configuration files from the old ip address to the new one. but it looks to me that everything in zencart is directory based. Maybe there is something i am overlooking????

below is my configure.php:

<?php /** * dist-configure.php * * @package initSystem * @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 * @version $Id: dist-configure.php 3071 2006-02-27 23:09:54Z drbyte $ * @private */ // 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.torapp.com'); define('HTTPS_SERVER', 'https://www.torapp.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', '/torappinternational/'); define('DIR_WS_HTTPS_CATALOG', '/torappinternational/'); 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/httpd/vhosts/torapp.com/httpdocs/torappinternational/'); 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', ''); // prefix for database table names define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty define('DB_SERVER_USERNAME', 'XXXXXXXXXXX'); define('DB_SERVER_PASSWORD', 'XXXXXXXXX'); define('DB_DATABASE', 'torapp'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db' or optionally 'mysql' in some cases
25 Feb 2009, 7:57 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: problem with store on IP change

Why is going to torapp.com auto-redirecting to your torappinternational subfolder?

25 Feb 2009, 8:03 PM
#9
torapp avatar

torapp

New Zenner

Join Date:
Dec 2007
Location:
Toronto, ON
Posts:
6
Plugin Contributions:
0

Re: problem with store on IP change

that is where i installed zencart (torapp.com/torappinternational). I had a info page a year ago while i was working on the catalog then redirected it to the sub folder once i was ready to launch.

25 Feb 2009, 8:06 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: problem with store on IP change

okay ... so ... why not pare it back ... remove the redirect first
Then check to see what's happening in general apart from Zen Cart

Then try accessing the Zen Cart folder.
Then try to figure out why it's redirecting to zc_install .... it shouldn't do that unless your configure.php file content is bad.

What version of Zen Cart do you have?

25 Feb 2009, 9:36 PM
#11
torapp avatar

torapp

New Zenner

Join Date:
Dec 2007
Location:
Toronto, ON
Posts:
6
Plugin Contributions:
0

Re: problem with store on IP change

It is zencart vr 1.3.8 i have tried accessing it directly by entering torapp.com/torappinternational/ and still comes up with the same message. Is the configure.php file ok (the one i posted above)?

my host is saying to change the "script" to the proper IP???? what does he mean????

25 Feb 2009, 10:25 PM
#12
drbyte avatar

drbyte

Sensei

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

Re: problem with store on IP change

Well ... Zen Cart is driven solely on the /includes/configure.php settings.

If you have a redirect set up to force everything into the torappinternational folder, like I said before, remove it and see what happens.

As to your host, it sounds like he doesn't know what he's talking about. Zen Cart doesn't use an IP.
Sounds like he messed something up when he changed your domain's IP or something, or doesn't want to spend time supporting you, his customer, to find out what exactly is wrong.
Perhaps you can convince him to tell you exactly what he means and provide evidence of there being something wrong on the software end and proof that it's not something wrong on his end.

26 Feb 2009, 12:32 AM
#13
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: problem with store on IP change

Do as Dr Byte says and remove the redirect.

But why is there a double forward slashing beginning this file pathway?
define('DIR_FS_CATALOG', '//home/httpd/vhosts/torapp.com/httpdocs/torappinternational/');

Vger

26 Feb 2009, 12:37 AM
#14
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: problem with store on IP change

re., what Dr Byte said about your host not knowing what they are doing - this is a dns report of your domain and the server it's on:

ERROR: One or more of your nameservers reports that it is an open DNS server. This usually means that anyone in the world can query it for domains it is not authoritative for (it is possible that the DNS server advertises that it does recursive lookups when it does not, but that shouldn't happen). This can cause an excessive load on your DNS server. Also, it is strongly discouraged to have a DNS server be both authoritative for your domain and be recursive (even if it is not open), due to the potential for cache poisoning (with no recursion, there is no cache, and it is impossible to poison it). Also, the bad guys could use your DNS server as part of an attack, by forging their IP address. Problem record(s) are:

Server 64.15.138.11 reports that it will do recursive lookups.
Server 174.142.7.206 reports that it will do recursive lookups.

Vger