Zen Cart Logo
Forums / General Questions / How does index.php know if install has been run or not?

How does index.php know if install has been run or not?

Locked

Views: 1,557

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
9 May 2007, 1:12 AM
#1
mtoboll avatar

mtoboll

New Zenner

Join Date:
Apr 2004
Posts:
9
Plugin Contributions:
0

How does index.php know if install has been run or not?

I'm moving a working cart (v1.3.7) from one server to another.

I copied all files from the working store to a new server. I did a MySQL dump and restored to a new DB on the new server.

When I go to that store, it immediately tries to redirect to the zc_install directory, which of course is not there. So It just gets a 404.

My question is how does it know if the install has been performed or not?

Does it look at permissions on a certain file, or check the DB, or what?

I dont' think I need to run the install at all, I just need to make sure it is satisfying whatever checks for that and let it run right where it left off...

Thanks,

  • Mark
9 May 2007, 1:45 AM
#2
Kim avatar

Kim

Obaa-san

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

Re: How does index.php know if install has been run or not?

Did you update your includes/configure.php ? Not being able to read or find this file signals the install

9 May 2007, 1:51 AM
#3
mtoboll avatar

mtoboll

New Zenner

Join Date:
Apr 2004
Posts:
9
Plugin Contributions:
0

Re: How does index.php know if install has been run or not?

Yes, both configure.php files are in place, and modified to match the new server...

I just CHMODed them to 777 to see if it was a permissions problem, but that didn't help. It still want to run install..

9 May 2007, 2:02 AM
#4
mtoboll avatar

mtoboll

New Zenner

Join Date:
Apr 2004
Posts:
9
Plugin Contributions:
0

Re: How does index.php know if install has been run or not?

Never mind! Found it!

It was the configure.php. The one under /includes - I missed a line that needed editing. I had the wrong path from the old server.

All better now.

Thanks!