Zen Cart Logo
Forums / General Questions / Admin Not Accessible after SSL & Dedicated IP

Admin Not Accessible after SSL & Dedicated IP

Views: 1,496

Results 1 to 20 of 20
20 Apr 2011, 5:01 AM
#1
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Admin Not Accessible after SSL & Dedicated IP

Hi - I purchased an SSL certificate and Dedicated IP for my site on Sunday. Site is hoopclothes dot com. We had begun using Paypal Pro so this was necessary.
After the purchase I edited the config.php files as stated in the tutorial (though the admin/includes/config.php didn't match the directions). I then discovered that the site wasn't coming up, but I had put it in maintenance mode prior and figured it'd be up in 24 hours once everything 're-propagated'.
The next day I find out it is going to take up to a week for the SSL to be installed. I attempt to get to admin thinking I could turn off maintenance mode, turn off paypal pro and turn off SSL again in the config files. But I get this note in the browser trying to get to admin:

"You are seeing this page for one or more reasons:

This is your first time using Zen Cart™ and you haven't yet completed the normal Installation procedure.
If this is the case for you, you will need to upload the "zc_install" folder using your FTP program, and then run zc_install/index.php via your browser (or reload this page to see a link to it).

Your /includes/configure.php and/or /admin/includes/configure.php file contains invalid path information and/or invalid database-connection information.
If you recently edited your configure.php files for any reason, or maybe moved your site to a different folder or different server, then you'll need to review and update all your settings to the correct values for your server.
See the Online FAQ and Tutorials area on the Zen Cart™ website for assistance."

Obviously it is not the first time I've used the zencart since I've had the site up almost a year. I looked at the config files and turned the SSL off and re-loaded them.
I still get the same message as above. I called the host (hostmonster) to check if this was something on their end and they said no. I did need to change my IP to get FTP access once I got the dedicated IP.
The config files read like this now:
includes/config.php

define('HTTP_SERVER', 'http://www.hoopclothes.com');
define('HTTPS_SERVER', 'https://www.hoopclothes.com');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'false');

and admin/includes/config.php
define('HTTP_SERVER', 'http://hoopclothes.com');
define('HTTPS_SERVER', 'https://hoopclothes.com');
define('HTTP_CATALOG_SERVER', 'http://hoopclothes.com');
define('HTTPS_CATALOG_SERVER', 'https://hoopclothes.com');

// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'false');
define('ENABLE_SSL_ADMIN', 'false');

I have tried adding www. to the domain names in the list above and it didn't make any difference.

Does anyone have any idea what is wrong? Why I can't get to my admin? Help!

20 Apr 2011, 5:49 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Admin Not Accessible after SSL & Dedicated IP

yeah!:

I edited the config.php files as stated in the tutorial (though the admin/includes/config.php didn't match the directions).If the file didn't match the directions, then it sounds like you might be editing the wrong file.

And, the filename is "configure.php", not "config.php". If you're using the wrong filename, then you're most certainly going to be having problems.

yeah!:

But I get this note in the browser trying to get to admin:

"You are seeing this page for one or more reasons:

This is your first time using Zen Cart™ and you haven't yet completed the normal Installation procedure.
If this is the case for you, you will need to upload the "zc_install" folder using your FTP program, and then run zc_install/index.php via your browser (or reload this page to see a link to it).

Your /includes/configure.php and/or /admin/includes/configure.php file contains invalid path information and/or invalid database-connection information.
If you recently edited your configure.php files for any reason, or maybe moved your site to a different folder or different server, then you'll need to review and update all your settings to the correct values for your server.
See the Online FAQ and Tutorials area on the Zen Cart™ website for assistance."That message appears when your configure.php file(s) is/are missing, or has too-low permissions such that it's unreadable by Apache/PHP, or if the file contains mangled or invalid contents.

yeah!:

The config files read like this now:
includes/config.php

define('HTTP_SERVER', 'http://www.hoopclothes.com');
define('HTTPS_SERVER', 'https://www.hoopclothes.com');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'false');

and admin/includes/config.php
define('HTTP_SERVER', 'http://hoopclothes.com');
define('HTTPS_SERVER', 'https://hoopclothes.com');
define('HTTP_CATALOG_SERVER', 'http://hoopclothes.com');
define('HTTPS_CATALOG_SERVER', 'https://hoopclothes.com');

// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'false');
define('ENABLE_SSL_ADMIN', 'false');Again the note about filenames.
And if that's all you've got in those files, then you're going to have all manner of problems, because all the rest of the regular content is still needed.
yeah!:

I have tried adding www. to the domain names in the list above and it didn't make any difference.
Not surprising. It really should be set to include www. if your storefront does though.

20 Apr 2011, 7:07 AM
#3
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Admin Not Accessible after SSL & Dedicated IP

Hi - Thanks. Yes sorry the file names are configure.com I typed it wrong in my post. The permissions are set at 444. That was not all my configure.php files contained. Those were the only parts I edited. I will post the entire files below.

includes>configure.php:

define('HTTP_SERVER', 'http://www.hoopclothes.com');
define('HTTPS_SERVER', 'https://www.hoopclothes.com');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'false');

// 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', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

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', '/home2/hoopclot/public_html/');

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', 'znc_');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'XXX');
define('DB_SERVER_PASSWORD', 'XXX');
define('DB_DATABASE', 'XXX');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');
// for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'file');
define('DIR_FS_SQL_CACHE', '/home2/hoopclot/public_html/cache');

// EOF

admin>includes>configure.php:

define('HTTP_SERVER', 'http://hoopclothes.com');
define('HTTPS_SERVER', 'https://hoopclothes.com');
define('HTTP_CATALOG_SERVER', 'http://hoopclothes.com');
define('HTTPS_CATALOG_SERVER', 'https://hoopclothes.com');

// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'false');
define('ENABLE_SSL_ADMIN', 'false');

// 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_ADMIN', '/XXX/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/XXX/');
define('DIR_WS_HTTPS_CATALOG', '/');

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/');

// * 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_ADMIN', '/home2/hoopclot/public_html/XXX/');
define('DIR_FS_CATALOG', '/home2/hoopclot/public_html/');

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 our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', 'znc_');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'XXX');
define('DB_SERVER_PASSWORD', 'XXX');
define('DB_DATABASE', 'hoopclot_znc1');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');
// for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'file');
define('DIR_FS_SQL_CACHE', '/home2/hoopclot/public_html/cache');

// EOF

See anything that would be causing this?

20 Apr 2011, 1:32 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Admin Not Accessible after SSL & Dedicated IP

Your Catalog uses the www in the URLs but your Admin does not ...

You should really change them to match ...

20 Apr 2011, 3:41 PM
#5
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Admin Not Accessible after SSL & Dedicated IP

Hi - Thanks. I have changed the admin>includes>configure.php file to match with the www as suggested. It makes no difference. I still can't get to the admin pages.
See anything else?

20 Apr 2011, 4:21 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Admin Not Accessible after SSL & Dedicated IP

Try removing the file:
/your_secret_admin/includes/configure.php

from the server and then load a fresh copy ...

20 Apr 2011, 5:21 PM
#7
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Admin Not Accessible after SSL & Dedicated IP

If I do that it will delete the .htaccess doc since i can't download it.

is that a problem?

20 Apr 2011, 5:30 PM
#8
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Admin Not Accessible after SSL & Dedicated IP

Is it possible this issue has to do with the shift to a different server?
Hostmonster says this should not change any of the paths, but maybe there is something somewhere that needs updating?

This is so frustrating!! help...

20 Apr 2011, 5:36 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Admin Not Accessible after SSL & Dedicated IP

I just want you to remove 1 file on the server:
/your_secret_admin/includes/configure.php

and re-load the file to the server to ensure it has the changes you are looking at in the file on your computer ...

20 Apr 2011, 5:51 PM
#10
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Admin Not Accessible after SSL & Dedicated IP

Oh, I have done that at least 10 times. Just did it again. No difference. :(

20 Apr 2011, 5:56 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Admin Not Accessible after SSL & Dedicated IP

What currently happens when you try to login to your Admin? :unsure:

20 Apr 2011, 6:08 PM
#12
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Admin Not Accessible after SSL & Dedicated IP

I can't get to the log in page. I get a screen that says:
Hello. Thank you for loading Zen Cart™.
You are seeing this page for one or more reasons:

This is your first time using Zen Cart™ and you haven't yet completed the normal Installation procedure.
If this is the case for you, you will need to upload the "zc_install" folder using your FTP program, and then run zc_install/index.php via your browser (or reload this page to see a link to it).

Your /includes/configure.php and/or /admin/includes/configure.php file contains invalid path information and/or invalid database-connection information.
If you recently edited your configure.php files for any reason, or maybe moved your site to a different folder or different server, then you'll need to review and update all your settings to the correct values for your server.
See the Online FAQ and Tutorials area on the Zen Cart™ website for assistance.

To begin installation ...

The Installation Documentation can be read by clicking here: Documentation
You will need to upload the "zc_install" folder using your FTP program, and then run zc_install/index.php via your browser (or reload this page to see a link to it).
The Online FAQ and Tutorials area on the Zen Cart™ website will also be of value if you run into difficulties.

Sigh...

20 Apr 2011, 6:39 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Admin Not Accessible after SSL & Dedicated IP

Look with your FTP program and check the spelling of your current /admin directory name and make sure that it is correct in your file:
/your_secret_admin/includes/configure.php

that is on the server ...

It is case sensative and should not contain any spaces or special characters ...

20 Apr 2011, 6:55 PM
#14
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Admin Not Accessible after SSL & Dedicated IP

Its the same according to the info I can see in the cPanel and what I see in the FTP program.
You wanna look? I'm perfectly willing to secret message you access. I'm losing my mind over here.

20 Apr 2011, 6:57 PM
#15
ajeh avatar

ajeh

Oba-san

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

Re: Admin Not Accessible after SSL & Dedicated IP

Why don't you do that and let me see what I can see ... :smile:

20 Apr 2011, 7:35 PM
#16
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Admin Not Accessible after SSL & Dedicated IP

ok access sent. thanks!!

21 Apr 2011, 8:01 PM
#17
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Admin Not Accessible after SSL & Dedicated IP

Does no one have any further ideas on this? I still can't get the admin up. There are orders in there awaiting processing. :(

21 Apr 2011, 10:15 PM
#18
drbyte avatar

drbyte

Sensei

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

Re: Admin Not Accessible after SSL & Dedicated IP

As for "further" ideas, the answer is: the cause of your problem is the same ... missing or invalid information in your /admin/includes/configure.php file.

21 Apr 2011, 10:24 PM
#19
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Admin Not Accessible after SSL & Dedicated IP

Ok! well dear experts, I am sure you will believe this, but I can't believe I missed it for 5 freaking days!!
One of the configure.php files was spelled configure .php...
Yes the extra space I did not see! Sigh, anyway all fixed now! Thanks so much!!

21 Apr 2011, 10:27 PM
#20
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,179
Plugin Contributions:
0

Re: Admin Not Accessible after SSL & Dedicated IP

Take a look at this thread... > http://www.zen-cart.com/forum/showthread.php?t=170628

Great all is fixed....
Dang those little type error...
You just have to love it...