Forums / Installing on a Windows Server / I can't Log In to Admin after install/move to a new server

I can't Log In to Admin after install/move to a new server

Locked

Started by uni on 6 Aug 2006, 9:11 PM · Views: 6,641

Results 1 to 20 of 20
This thread is locked. New replies are disabled.
6 Aug 2006, 9:11 PM
#1
uni avatar

uni

New Zenner

Join Date:
Aug 2006
Location:
England
Posts:
11
Plugin Contributions:
0

I can't Log In to Admin after install/move to a new server

After installed the software on the server (dreamhost.com) (FTP).

I can't see how to go to Admin session to manage the webpage, but I can do so from the link they provided.

https://www.unisupport.co.uk/admin

But when I tryed to log in it doesn't. So, I've tryed many times to log in to Admin by asking many times for a new password I still can't log in to Admin.

On FTP I've added 777 on admin/includes/configure, and haven't worked either.

I just don't know what to do.

Can you help me please?

Sidney

6 Aug 2006, 9:19 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: I can't Log In to Admin after install/move to a new server

A search in the upper left search box for: Admin password reset

would provide you with quite a few posts on fixing this ...

one such as:
http://www.zen-cart.com/forum/showthread.php?t=36258&highlight=Admin+password+reset

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

6 Aug 2006, 10:53 PM
#3
uni avatar

uni

New Zenner

Join Date:
Aug 2006
Location:
England
Posts:
11
Plugin Contributions:
0

Re: I can't Log In to Admin after install/move to a new server

Ajeh:

A search in the upper left search box for: Admin password reset

would provide you with quite a few posts on fixing this ...

one such as:
http://www.zen-cart.com/forum/showthread.php?t=36258&highlight=Admin+password+reset

Hi there, where can I run the info 'codes' you gave me?

Where can I Create a table adimin on?

By the way, I am on Windows. (I have ubuntu as well)

First run this to remove and reset the structure:
Code:

DROP TABLE IF EXISTS admin; CREATE TABLE admin ( admin_id int(11) NOT NULL auto_increment, admin_name varchar(32) NOT NULL default '', admin_email varchar(96) NOT NULL default '', admin_pass varchar(40) NOT NULL default '', admin_level tinyint(1) NOT NULL default '1', PRIMARY KEY (admin_id), KEY idx_admin_name_zen (admin_name) ) TYPE=MyISAM;

Next run this to set the login to Admin admin:
Code:

INSERT INTO admin VALUES (1, 'Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);

WARNING: be sure to reset the Admin login as soon as you have access for the Admin password and email address ...


Linda McGrath

Thank you.

Sid

7 Aug 2006, 7:19 PM
#4
uni avatar

uni

New Zenner

Join Date:
Aug 2006
Location:
England
Posts:
11
Plugin Contributions:
0

Re: I can't Log In to Admin after install/move to a new server

Ajeh:

You could rebuild the Admin table with the default settings via phpMyAdmin ...

First run this to remove and reset the structure:

DROP TABLE IF EXISTS admin;
CREATE TABLE admin (

admin_id int(11) NOT NULL auto_increment,

admin_name varchar(32) NOT NULL default '',

admin_email varchar(96) NOT NULL default '',

admin_pass varchar(40) NOT NULL default '',

admin_level tinyint(1) NOT NULL default '1',

PRIMARY KEY (admin_id),

KEY idx_admin_name_zen (admin_name)

) TYPE=MyISAM;

> 
> Next run this to set the login to Admin admin:
> ```
INSERT INTO admin VALUES (1, 'Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);

Can you please, explain each of this lane for me? I know it can work but I don't know how to apply. PLEASE!!! (I also know that it is going to be an extra work for you, but please!

WARNING: be sure to reset the Admin login as soon as you have access for the Admin password and email address ...

where is the phpMyAdmin? to remove and reset the structure?
what is it DROP TABEL IT EXIXTS admin?
where to CREATE TABLE admin to save where? (w'd it be text editor? if so save with what namne?)
what is admin VALUES? And how to apply the VALUES?

SORRY FOR BEING SO STUPED, I JUST DON'T KNOW?

I just want to be able to log in into Admin.

RGDS.

UNI

7 Aug 2006, 10:11 PM
#5
uni avatar

uni

New Zenner

Join Date:
Aug 2006
Location:
England
Posts:
11
Plugin Contributions:
0

Re: I can't Log In to Admin after install/move to a new server

Hi there

You don't need to explain every thing know more about phpMyAdmin.

The only thing I don't know is the procedute to create and save.
because when I tryed to save, whate ever I put, a warning came up "this is not a number".

So I still need your help,please.

uni

7 Aug 2006, 11:08 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: I can't Log In to Admin after install/move to a new server

  1. Open phpMyAdmin
  2. Select your Zen Cart database from the pulldown list
  3. Click on the SQL tab in the top center
  4. In the query box, paste the commands suggested earlier, and click Go.
  5. Your password information will be wiped and reset to Admin->admin

.
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.

8 Aug 2006, 11:20 PM
#7
uni avatar

uni

New Zenner

Join Date:
Aug 2006
Location:
England
Posts:
11
Plugin Contributions:
0

Re: I can't Log In to Admin after install/move to a new server

DrByte:

  1. Open phpMyAdmin
  2. Select your Zen Cart database from the pulldown list
  3. Click on the SQL tab in the top center
  4. In the query box, paste the commands suggested earlier, and click Go.
  5. Your password information will be wiped and reset to Admin->admin

Thank you. I can log in now.

Can you please tell me where can I go, in admin, to change the pictures. Because I've chosen zen pre-done, but there are pictures of products that I will no sell.

So I need to upload my pictures and add others coments,

Where can I go?

Uni.

9 Aug 2006, 3:46 AM
#8
drbyte avatar

drbyte

Sensei

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

Re: I can't Log In to Admin after install/move to a new server

.
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.

3 Oct 2006, 4:21 PM
#9
lighterboy_crew avatar

lighterboy_crew

New Zenner

Join Date:
Jun 2006
Posts:
10
Plugin Contributions:
0

Re: I can't Log In to Admin after install/move to a new server

uni:

Originally Posted by DrByte

  1. Open phpMyAdmin
  2. Select your Zen Cart database from the pulldown list
  3. Click on the SQL tab in the top center
  4. In the query box, paste the commands suggested earlier, and click Go.
  5. Your password information will be wiped and reset to Admin->admin.

Dr..yes i paste the code in the box..but it have two code . and where this box need to be put??

Next run this to set the login to Admin admin:..where is this??
code:
INSERT INTO admin VALUES (1, 'Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);

i always repeat this thing. and when i put Admin as username and admin as password..ot cant works..how?

Azhar

World Top Class Lighter Brands at Whosale Price
Best Support, Limited Edition Lighter, Your Satisfaction Guaranteed
http://www.lighterboy.com

2 Oct 2008, 5:25 AM
#10
thylow avatar

thylow

New Zenner

Join Date:
May 2005
Posts:
23
Plugin Contributions:
0

Re: I can't Log In to Admin after install/move to a new server

I've ran that script and reset the user to Admin and pass admin several times. It doesn't seem to be working for me.

http://www.hienquoc.com/domains/runningonthyme/admin

I know its a huge vulnerability but can someone log-in? I'll reset everything later. I'm just transfering the website to a different server and we're not really using it for business at the moment.

This is what I see when I upload the sql commands from a text file
Import has been successfully finished, 2 queries executed.
SQL query: DROP TABLE IF EXISTS admin;# MySQL returned an empty result set (i.e. zero rows).
CREATE TABLE admin(
admin_id int( 11 ) NOT NULL AUTO_INCREMENT ,
admin_name varchar( 32 ) NOT NULL default '',
admin_email varchar( 96 ) NOT NULL default '',
admin_pass varchar( 40 ) NOT NULL default '',
admin_level tinyint( 1 ) NOT NULL default '1',
PRIMARY KEY ( admin_id ) ,
KEY idx_admin_name_zen( admin_name )
) TYPE = MYISAM ;# MySQL returned an empty result set (i.e. zero rows).

----------------------------- And then I see below when I set the "Admin" user and "admin" password

Inserted rows: 1 (Query took 0.0004 sec)
SQL query: INSERT INTO admin
VALUES ( 1, 'Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1 ) ;

thanks,

2 Oct 2008, 5:41 AM
#11
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: I can't Log In to Admin after install/move to a new server

I know its a huge vulnerability but can someone log-in? I'll reset everything later. I'm just transfering the website to a different server and we're not really using it for business at the moment.
Will try with pleasure for you but NOT without admin name and password??
:wink:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

2 Oct 2008, 5:42 AM
#12
thylow avatar

thylow

New Zenner

Join Date:
May 2005
Posts:
23
Plugin Contributions:
0

Re: I can't Log In to Admin after install/move to a new server

isn't suppose to be default zencart password

User: Admin
pass: admin

I know it's tempting but please try not to mess with it if you get in ;)
?

2 Oct 2008, 5:45 AM
#13
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: I can't Log In to Admin after install/move to a new server

Visited, tried using that info..failed...
which version of zencart have you installed?

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

2 Oct 2008, 5:46 AM
#14
thylow avatar

thylow

New Zenner

Join Date:
May 2005
Posts:
23
Plugin Contributions:
0

Re: I can't Log In to Admin after install/move to a new server

The latest and greatest version. I couldnt' find which version I originally installed it on. I just dropped my old files and overwrote the new ones. I also dropped the database and replace it with my old one

2 Oct 2008, 5:49 AM
#15
thylow avatar

thylow

New Zenner

Join Date:
May 2005
Posts:
23
Plugin Contributions:
0

Re: I can't Log In to Admin after install/move to a new server

I noticed my admin table doesn't have the prefix like all my other tables in the database. Could this have something to do with it? I put the prefix that it uses in the admin/includes/config.php

would it be trying to look for the admin table with the prefix in front of it?

2 Oct 2008, 5:51 AM
#16
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: I can't Log In to Admin after install/move to a new server

The latest and greatest version. I couldnt' find which version I originally installed it on. I just dropped my old files and overwrote the new ones. I also dropped the database and replace it with my old one
Not sure this was good idea, especially as you cannot remember which version of zencart you are overwriting and are then using its database...
ADVICE...start from scratch and install brand new version
of zencart..

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

2 Oct 2008, 5:54 AM
#17
thylow avatar

thylow

New Zenner

Join Date:
May 2005
Posts:
23
Plugin Contributions:
0

Re: I can't Log In to Admin after install/move to a new server

That is what I basically did. i started with a fresh install. I had everything working. Then i dropped my old files to overwrite it except the config.php files and replaced my database with the backup version

2 Oct 2008, 6:33 AM
#19
thylow avatar

thylow

New Zenner

Join Date:
May 2005
Posts:
23
Plugin Contributions:
0

Re: I can't Log In to Admin after install/move to a new server

alright thanks people... it was a prefix deal. It had two tables admin and one with my prefix and admin. So it was using the prefix admin table and not the admin table by itself.

I also used the old password I had on it and that worked. So using the script to reset the wrong table doesn't help when your using the wrong admin table. Hope someone checks that too when they have problems.

2 Oct 2008, 6:37 AM
#20
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: I can't Log In to Admin after install/move to a new server

thylow:

alright thanks people... it was a prefix deal. It had two tables admin and one with my prefix and admin. So it was using the prefix admin table and not the admin table by itself.

I also used the old password I had on it and that worked. So using the script to reset the wrong table doesn't help when your using the wrong admin table. Hope someone checks that too when they have problems.
Pleased to hear problem sorted..well done!!
:clap:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others