Forums / Installing on a Linux/Unix Server / Problem accessing Admin Login after sucessful install

Problem accessing Admin Login after sucessful install

Views: 8,845

Results 1 to 18 of 18
7 Oct 2006, 5:55 PM
#1
integritye avatar

integritye

New Zenner

Join Date:
Oct 2006
Posts:
3
Plugin Contributions:
0

Problem accessing Admin Login after sucessful install

This is my first Zen cart install, and it was much easier than I expected! I was extremely surprised at the vast number of features offered by the program.

After the install, I changed the configuration.php file to 444 and also the configure/php file to read-only as well. When I go to the the admin login screen I get a "unable to connect" message in my firefox window (I get a similar message with IE).

Here is a little information about the site I am working on.
-Hosting service: 1and1.com
-Hosting plan: Linux developer
-Dedicated SSL to my specified domain

When I installed zencart, I frist installed it w SSL, but had not set up my certificate yet. I then re-installed w/o SSL. Neither time could I connect after entering in my login information. Each time I was able to connect to: http://www.integrity-electronics.com/zencart/admin/login.php but was unable to connect to any https connection on my server.

When I would submitted my login information (on the http://), it would always re-direct me to the https:// site and I would get the "unable to connect" error there.

I have tried deleting every folder related to zencart, both install folders and the process folder.

I am not sure if this is an install issue or a issue with my server. When I viewed my demo cart after install it looked pretty good, so it seemed that it was working alright.

Any suggestions are greatly appreciated! Thanks for any help you can provide!

7 Oct 2006, 6:12 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Problem accessing Admin Login after sucessful install

  1. /admin/configuration.php should NOT be set to 444. It should be set to 644 similar to other files. You should never have to touch this file.

  2. /admin/includes/configure.php contains the settings for accessing the URL for your admin area
    and
    /includes/configure.php contains the settings for your "store" or "catalog" area.

Both of these "configure.php" files should be set to read-only ... ie: 444 on some hosts.

Chances are that your problem may be related to your hosting setup. However, if you can post the contents of the 2 configure.php files here, without password, then it may be easier to help narrow things down.

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

7 Oct 2006, 6:27 PM
#3
integritye avatar

integritye

New Zenner

Join Date:
Oct 2006
Posts:
3
Plugin Contributions:
0

Re: Problem accessing Admin Login after sucessful install

I noticed that I changed the /admin/configuration.php file by mistake. I went back and changed that.

I have the 2 configure.php files to read-only now, as well as the zen_install folder renamed.

I still get the error when logging in! Do you think it could be something with the server?

The domain is registered at yahoo and I changed the nameserver and the mx records to use 1&1's, so it is now using the 1&1 hosting service as an external domain. Could this be effecting it?

7 Oct 2006, 7:54 PM
#4
integritye avatar

integritye

New Zenner

Join Date:
Oct 2006
Posts:
3
Plugin Contributions:
0

Re: Problem accessing Admin Login after sucessful install

I cleared the cookies my site and it seems to be working now! Is that a normal issue?

14 Oct 2006, 8:46 AM
#5
vfcoup70 avatar

vfcoup70

New Zenner

Join Date:
Jul 2006
Posts:
17
Plugin Contributions:
0

Re: Problem accessing Admin Login after sucessful install

Hi everyone.

  1. THE PROBLEM - zen wont let me log back into Admin
    Heres what happens:
    when I log out of the Admin area, I cannot log back in. The only way i can get back in is by either:
  • Dropping then rebuilding the admin_table
  • Creating a fresh new install and running zc_install

COULD IT BE THE SERVER SETUP?

My ISP has a public facing db server that hosts the db for my site. I initially had the site running at Hostname: 203.96.16.7, and then was asked to load it on a different server hostname 10.50.21... which is located behind a firewall and accesses the same public facing db server and therefore uses the same db that was setup when I was hosting on 203.96.16.7. The files are still sitting in 203.96.16.7.

14 Oct 2006, 12:47 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Problem accessing Admin Login after sucessful install

Close all browser windows

Clear your cache and cookies

Go into phpMyAdmin and EMPTY the tables for:
db_cache
sessions
whos_online

Reset the admin table with:

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),
  KEY idx_admin_email_zen (admin_email)
) TYPE=MyISAM;
INSERT INTO admin VALUES (1, 'Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);

This will set the login to: Admin with the password admin

Go to Tools ... Admin Settings ...

Change your login, password and email address ...

See if this fixes the problem ...

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!

11 Nov 2008, 5:34 PM
#7
dereknunez avatar

dereknunez

New Zenner

Join Date:
Nov 2007
Posts:
10
Plugin Contributions:
0

Re: Problem accessing Admin Login after sucessful install

Fixed, fixed, fixed!!! I cleared out my browser and it corrected my Admin login fails after working with the configure.php problem!

I spent three hours looking over and over my configure.php files this morning. When I finally gave up, I did a Google and luckly found post #6 above. Clearing out the browser (IE7) was too easy and fixed it, Thanks. I also threw in a reboot of the Windows XP OS. Did not have to do any of the other steps in post #6.

Zen cart v1.3.8a

:clap::clap::clap:

11 Nov 2008, 5:54 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Problem accessing Admin Login after sucessful install

Thanks for the update that you are able to login to the Zen Cart Admin now ...

and especially for posting the solution that worked for you in this particular circumstance ... :smile:

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!

10 Jun 2010, 12:53 AM
#9
pudnik avatar

pudnik

New Zenner

Join Date:
Jun 2010
Posts:
16
Plugin Contributions:
0

Re: Problem accessing Admin Login after sucessful install

...I am having the same problem. But post #6 did not fix it.
Every freakin' time I try to enter the SSL admin URL:

https://wish8888.securesites.com/

it just redirects to an incorrect url:

http://wish8888.securesites.com

my non-ssl domain is:

http://www.threewishesfoundation.org

my SSL domain is:

https://wish8888.securesites.com/

...what can I do to fix the configure.php file so it will work? After following a detailed installation step-by-step, noo customizations except those required for the Verio Unix servers, are there ANY additional file or folder permissions settings that I have to change for it to work? Is there a special MySQL database collation that I have to use? Does the app have to be MySQL root for it to work? I'm at wits' end...

Thanx in advance to anybody who replies...
:cry::cry:

10 Jun 2010, 2:59 AM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Problem accessing Admin Login after sucessful install

If you could post, from the server, without your username and password, the configuration files from:
/includes/configure.php
/admin/includes/configure.php

we can look to see if there is an error ...

NOTE: if you renamed your /admin to something else, mask that too as it is a secret ...

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!

10 Jun 2010, 7:53 PM
#11
pudnik avatar

pudnik

New Zenner

Join Date:
Jun 2010
Posts:
16
Plugin Contributions:
0

Re: Problem accessing Admin Login after sucessful install

// Configuration File - Admin
// ==========================

// webroot .HTACCESS file: missing

// permissions on zencart folder: drwxr-x---
// .HTACCESS file permissions: -rwxr-x---
// .HTACCESS contents: RewriteEngine On RewriteCond %{HTTPS} on RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}

// permissions on zencart/includes folder: drwxr-xr-x
// .HTACCESS file permissions: -rw-r--r--

/*

zencart/includes/.HTACCESS file contents:

deny everything

<FilesMatch ".*">
Order Allow,Deny
Deny from all
</FilesMatch>

but now allow just certain necessary files:

<FilesMatch ".*.(js|JS|css|CSS|jpg|JPG|gif|GIF|png|PNG|swf|SWF)$">
Order Allow,Deny
Allow from all
</FilesMatch>

IndexIgnore /

*/

// permissions of the Admin folder: drwxr-xr-x

// permissions of the .HTACCESS file in the Admin folder: -rw-r--r--

/*
.HTACCESS file in the Admin folder contents (removed commented-out lines):

DirectoryIndex index.php

deny everything

<FilesMatch "...">
Order Allow,Deny
Deny from all
</FilesMatch>

but now allow just certain necessary files:

<FilesMatch "(^$|^favicon.ico$|.*.(php|js|css|jpg|gif|png)$)">
Order Allow,Deny
Allow from all
</FilesMatch>

IndexIgnore /

The following makes adjustments to the SSL protocol for Internet Explorer browsers

<IfModule mod_setenvif.c> <IfDefine SSL> SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 </IfDefine> </IfModule>

*/

// permissions on this file: -r--r--r--

// contents of this file:

define('HTTP_SERVER', 'http://threewishesfoundation.org');
define('HTTPS_SERVER', 'https://wish8888.securesites.com');
define('HTTP_CATALOG_SERVER', 'http://threewishesfoundation.org');
define('HTTPS_CATALOG_SERVER', 'https://wish8888.securesites.com');

define('ENABLE_SSL_CATALOG', 'false');
define('ENABLE_SSL_ADMIN', 'true');

define('DIR_WS_ADMIN', 'need correct path here');
define('DIR_WS_CATALOG', 'need correct path here');
define('DIR_WS_HTTPS_ADMIN', 'need correct path here');
define('DIR_WS_HTTPS_CATALOG', 'need correct path here');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
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_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_ADMIN', '$webroot/NeedCorrectPathHere');
define('DIR_FS_CATALOG', '$webroot/NeedCorrectPathHere');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DB_TYPE', 'mysql');
define('DB_PREFIX', 'zen_');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'RootUseridOfTheMySQLserver');
define('DB_SERVER_PASSWORD', 'RootPasswordOfTheMySQLserver');
define('DB_DATABASE', 'zencart');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');

define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '$webroot/zencart/cache');

:blink:

10 Jun 2010, 8:07 PM
#12
pudnik avatar

pudnik

New Zenner

Join Date:
Jun 2010
Posts:
16
Plugin Contributions:
0

Re: Problem accessing Admin Login after sucessful install

// Configuration File - Store
// ==========================

define('HTTP_SERVER', 'http://threewishesfoundation.org');
define('HTTPS_SERVER', 'https://wish8888.securesites.com');

define('ENABLE_SSL', 'true');

define('DIR_WS_CATALOG', '/zencart/');
define('DIR_WS_HTTPS_CATALOG', '/zencart/');

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', '$webroot/phpbb/');

define('DIR_FS_CATALOG', '$webroot/zencart/');

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('DB_TYPE', 'mysql');
define('DB_PREFIX', 'zen_');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'rootmysqlid');
define('DB_SERVER_PASSWORD', 'rootmysqlpw');
define('DB_DATABASE', 'zencart');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');

define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '$webroot/zencart/cache');

:blush:

10 Jun 2010, 8:41 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Problem accessing Admin Login after sucessful install

Something odd to note on your site ...

Although your configure.php files appear to be using the secure pages for the Catalog ... you will notice that if you mouse over the link for Login you see the secure page URL ...

However, if you click it, you are not secure ... :blink:

See if your re-writes are causing issues or something else on your server ...

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!

13 Jun 2010, 2:54 PM
#14
yoz8225 avatar

yoz8225

New Zenner

Join Date:
Feb 2007
Posts:
22
Plugin Contributions:
0

Re: Problem accessing Admin Login after sucessful install

Where, specifically, in the admin db should the proposed php code in post #6 get changed? I get into the admin area of the db but don't know where/ how to make the code modifications you suggested. :shocking:

13 Jun 2010, 3:18 PM
#15
yoz8225 avatar

yoz8225

New Zenner

Join Date:
Feb 2007
Posts:
22
Plugin Contributions:
0

Re: Problem accessing Admin Login after sucessful install

I figured out where/ how to place the php code... once you get into phpMyAdmin, do the following:

  1. click on the admin tab/link in the left menu
  2. click on the SQL tab
  3. paste the code and run the queries (2 separate queries)

It worked like a charm, and I can now access my Admin again! Many thanks once again to Ajeh!!! :D

13 Jun 2010, 3:20 PM
#16
ajeh avatar

ajeh

Oba-san

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

Re: Problem accessing Admin Login after sucessful install

Post #6 holds the SQL statements needed to drop the admin table and recreate it with the login for:
Admin User: Admin
Admin Password: admin

In phpMyAdmin, make sure you are in your database and then click on the SQL at the top of the page and you will see the input box where you can past the code from post #6 ...

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!

2 Jun 2011, 5:53 AM
#17
pricediscrimination avatar

pricediscrimination

Zen Follower

Join Date:
May 2008
Posts:
401
Plugin Contributions:
0

Re: Problem accessing Admin Login after sucessful install

Pardon me for digging up a new post, but what in the world makes this happen?

2 Jun 2011, 1:18 PM
#18
ajeh avatar

ajeh

Oba-san

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

Re: Problem accessing Admin Login after sucessful install

The extra parameter is not available in the older version of php ...

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!