If this is your first visit, check our documentation. To post, register or login.
Forums / Installing on a Linux/Unix Server / Reinstall - can't get past database setup

Reinstall - can't get past database setup

Started by gizmo_girl on 12 Apr 2021, 1:41 AM · Views: 4,015

Results 1 to 16 of 16
12 Apr 2021, 1:41 AM
#1
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Reinstall - can't get past database setup

I am using ZC version 1.5.1. I had to do a reinstall of my site and I can't get past the database set up portion of the install. (https://www.personalizedpetid.com)

There's this warning at the bottom of the window:
***NOTE:
If you are Upgrading, be sure to choose "Database Upgrade" below to keep your data.

If you choose "Install", you will erase all the contents of your database.***

The options below this warning are: Install; Upgrade Cfg files; Database Upgrade; Re-check

I have tried all of the options except Install because I don't want to lose my database. If I click upgrade, this is what I get in the next window:
Database Information -- Upgrade Sniffer predicts: *** No upgrade required ***
Database Type = mysql

*Database Security
Your Administrator username/password (the one that you use to access your shop Admin area) are required in order to make database changes. (This is NOT your MySQL password) more info...

Admin Username (from Zen Cart® Admin area)
Password*

I have also tried to enter what I had set as my admin user name and password at the bottom of that set up screen, but I can't get any further than this. The options after that are: Update Database Now; Done with updates; Re-check. Update and Re-check don't do anything and if I say done with updates, it tells me installation is complete, but it's clearly NOT complete, because it keeps circling me back to this install. I'm stuck and getting VERY aggravated. Please help! I cannot find my way out of this vicious circle...

Thanks in advance!

12 Apr 2021, 3:06 AM
#3
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Reinstall - can't get past database setup

mc12345678:

Lot's of reasons to actually do an upgrade instead, but take a look at the actions to do after installation: https://docs.zen-cart.com/user/first_steps/how_do_i_install/#g-after-installation

I have tried this but I can’t get past the database setup portion. I need help getting beyond that point. I don’t get the option for store set up or anything else after the database questions. I’m just stuck in this vicious circle of being stuck in the same area of the database set up.

12 Apr 2021, 4:07 AM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Reinstall - can't get past database setup

gizmo_girl:

I have tried this but I can’t get past the database setup portion. I need help getting beyond that point. I don’t get the option for store set up or anything else after the database questions. I’m just stuck in this vicious circle of being stuck in the same area of the database set up.
Well, I'm a little confused because of this portion of the OP:

Done with updates; Re-check. Update and Re-check don't do anything and if I say done with updates, it tells me installation is complete, but it's clearly NOT complete, because it keeps circling me back to this install. I'm stuck and getting VERY aggravated. Please help! I cannot find my way out of this vicious circle...

That made it sound like the process "completed", but if you followed links that were provided (before doing the actions in the suggested link) that you would be sent back to the "installation" process. If the options were as described and the actions expected to be taken after install are not done, then what you described was pretty much expected... further, if the zc_install directory were moved/removed and you ended up being thrown into the zc_install process, then there is/was something seriously wrong...

The real question here is what is expected to be done by running the update process on what sounds like a database that already was at the database level being attempted? Meaning, why is an update being performed on a ZC 1.5.1 database to upgrade it to ZC 1.5.1 and what is the expected result?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

12 Apr 2021, 4:08 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: Reinstall - can't get past database setup

Wait. You said you did a re-install of your site. You didn't say here "why".
(Okay, well, I assume that means you "copied the Zen Cart files to your server", but you didn't say whether you did more than that, nor which "files" you copied (eg: original Zen Cart, or all your customized files), etc).

If you already have a database that you're using for this site, then you don't really need to run zc_install.
Running zc_install serves only two purposes: a) generate missing configure.php files and b) populate a new database or perform an upgrade on an older-version database.

So, why are you running zc_install?

I guess the answer is really in the "why did you do this in the first place?"

Edit: ya, what @mc12345678 said

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Apr 2021, 11:11 AM
#6
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Reinstall - can't get past database setup

DrByte:

Wait. You said you did a re-install of your site. You didn't say here "why".
(Okay, well, I assume that means you "copied the Zen Cart files to your server", but you didn't say whether you did more than that, nor which "files" you copied (eg: original Zen Cart, or all your customized files), etc).

If you already have a database that you're using for this site, then you don't really need to run zc_install.
Running zc_install serves only two purposes: a) generate missing configure.php files and b) populate a new database or perform an upgrade on an older-version database.

So, why are you running zc_install?

I guess the answer is really in the "why did you do this in the first place?"

Edit: ya, what @mc12345678 said
Answer to why I did this to begin with. This domain was my secondary domain on my hosting account. I wanted to get rid of the primary domain name I was using and have this one as the sole domain name. Host said I had to delete this one from the hosting, then re-add it. Once it came back up and was showing as the primary, I simply moved the files out of the folder to the root directory. I had backups of all the files, including my database. After moving all the files, I got the zen cart message that I needed to install zen cart. So here I am and I’m completely stuck.

12 Apr 2021, 12:36 PM
#7
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: Reinstall - can't get past database setup

I would take a look at the two configure.php files and make sure everything is correctly pointing to the right location. If you did not change them after the move, then ZC would not find the files needed to run without requesting an install.

Also looks like the DNS may not have fully propagated.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

12 Apr 2021, 1:31 PM
#8
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Reinstall - can't get past database setup

dbltoe:

I would take a look at the two configure.php files and make sure everything is correctly pointing to the right location. If you did not change them after the move, then ZC would not find the files needed to run without requesting an install.

Also looks like the DNS may not have fully propagated.

Ok, I think I found it. The attached is a screen shot of the admin/includes/configure.php file
All of the paths and database information appear to be correct, but my admin folder is not defined. It looks like there are two places. How to I enter that correctly for the entire lines for both define WS admin and define FS admin?
Attachment 19512

12 Apr 2021, 3:17 PM
#9
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: Reinstall - can't get past database setup

Doesn't match any configure.php that I recall. Should be located at YOUR_ADMIN/includes/configure.php

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

12 Apr 2021, 3:24 PM
#10
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Reinstall - can't get past database setup

gizmo_girl:

Ok, I think I found it. The attached is a screen shot of the admin/includes/configure.php file
All of the paths and database information appear to be correct, but my admin folder is not defined. It looks like there are two places. How to I enter that correctly for the entire lines for both define WS admin and define FS admin?
Attachment 19512
As of Zen Cart 1.5.1 (the version being used), the admin directory path is auto-determined by the line(s) below the red text. In this way, the admin directory never needs to be hard coded in the file and the admin directory can be renamed on a whim without further revision of the file. However, there may be an .htaccess file that has been manually generated in a parent directory of that folder which may need to be updated to properly reference that directory.

The question right now would be what issue is being experienced when attempting to access the admin directory? If receiving some sort of message about installing, please be sure to include information that is towards the bottom of the message indiciating the reason(s) the message is being provided. May still be experiencing DNS issues as I have not been able to access that site using the domain provided in the first post of this thread.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

12 Apr 2021, 3:53 PM
#11
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Reinstall - can't get past database setup

dbltoe:

Doesn't match any configure.php that I recall. Should be located at YOUR_ADMIN/includes/configure.php
"Original" version of the admin/includes/configure.php for ZC 1.5.1 can be seen here: https://github.com/zencart/zencart/blob/v151/admin/includes/dist-configure.php

While the image includes text wrapped around, it appears that the two are relatively similar. (haven't done a line for line compare, but does look familiar to the old way that it was formatted.)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

12 Apr 2021, 8:21 PM
#12
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Reinstall - can't get past database setup

mc12345678:

As of Zen Cart 1.5.1 (the version being used), the admin directory path is auto-determined by the line(s) below the red text. In this way, the admin directory never needs to be hard coded in the file and the admin directory can be renamed on a whim without further revision of the file. However, there may be an .htaccess file that has been manually generated in a parent directory of that folder which may need to be updated to properly reference that directory.

The question right now would be what issue is being experienced when attempting to access the admin directory? If receiving some sort of message about installing, please be sure to include information that is towards the bottom of the message indiciating the reason(s) the message is being provided. May still be experiencing DNS issues as I have not been able to access that site using the domain provided in the first post of this thread.

Interesting. I just tried on my phone to access my admin page and it says server not found. From a computer it says 504 DNS look up failed. I’m not even getting the install notifications. I’ll cal my host. In the meantime, is there a specific .htaccess file I need to look at? I didn’t change any files. I just pulled them out of the folder and put them in the root directory.

12 Apr 2021, 11:36 PM
#13
drbyte avatar

drbyte

Sensei

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

Re: Reinstall - can't get past database setup

If your old configure.php files are no longer valid (evidenced by invalid paths in them, especially if you've switched hosts/servers/etc), you can build new configure.php files.

In such a case I would:

  • create a new separate temporary database that you will discard in a few minutes
  • run zc_install and treat it as a new install, providing that new temporary database when it asks you for database details
  • this will also generate updated configure.php files suitable for this server.
  • then delete the temporary database
  • then update both configure.php files with the correct "real" database name, and user credentials, so that it displays real data.
  • (if you were actually upgrading from an older version now you could re-run zc_install and choose Database Upgrade) -- but you seem to be using the same version in your situation so this last step isn't relevant.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

13 Apr 2021, 1:26 AM
#14
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Reinstall - can't get past database setup

Hey everybody - thanks for your help and suggestions! I was able to get it done with completely wiping/reinstalling the database. I'm missing some images and stylesheet settings, but I'll figure out where to make those changes again. I'm getting there!

13 Apr 2021, 3:02 AM
#15
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Reinstall - can't get past database setup

Ok I thought I had this all figured out. However, if I go to https://www.personalizedpetid.com the page won’t load. If I just type personalizedpetid.com the site loads. How do I fix this?

13 Apr 2021, 3:46 AM
#16
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: Reinstall - can't get past database setup

Looks like a bad or missing 301 redirect. Since your SSL does not include www, I would use the following in your .htaccess```

Needed before any rewritingRewriteEngine On

Built using the .htaccess 301 Redirect Generator from Web Site Advantage

https://websiteadvantage.com.au/HtAccess-301-Redirect-Generator

Place after 'RewriteEngine On' and before any CMS specific rewrite rules

Redirect HTTP with www to HTTPS without www

RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
RewriteRule .* https://%1%{REQUEST_URI} [R=301,L]

Redirect HTTP without www to HTTPS without www

RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Redirect HTTPS with www to HTTPS without www

RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
RewriteRule .* https://%1%{REQUEST_URI} [R=301,L]

301 Redirects

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com