Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Install problem admin works but not store.

Install problem admin works but not store.

Locked

Views: 3,161

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
6 Dec 2008, 12:30 AM
#1
chrisw avatar

chrisw

New Zenner

Join Date:
Dec 2008
Posts:
5
Plugin Contributions:
0

Install problem admin works but not store.

Okay I am a little stumped I installed zencart on a test server and everything seem to have gone well. However I can only get to the admin pages the store itself just displays the started need to install this page.

This is running on a hosted linux server running apache. I have gone through trying to compare directory. Also I have been digging in the documention but haven't found anything helpful as per yet. If anybody could nudge me in the proper direction that would be greatly appreciated.

6 Dec 2008, 3:15 AM
#2
qdixon avatar

qdixon

Support Team

Join Date:
Feb 2004
Location:
Simcoe, Ontario, Canada
Posts:
1,906
Plugin Contributions:
1

Re: Install problem admin works but not store.

url please and what version of zencart are you using?

6 Dec 2008, 3:23 AM
#3
chrisw avatar

chrisw

New Zenner

Join Date:
Dec 2008
Posts:
5
Plugin Contributions:
0

Re: Install problem admin works but not store.

http://www.shadowwolves.org/zencart/ and 1.3.8

Would it help if I pasted the config files?

6 Dec 2008, 5:16 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: Install problem admin works but not store.

That page normally only appears when the config settings in your /includes/configure.php file are pointing to either invalid database details or invalid path details.
While the admin version of the file is different from the non-admin version, a comparison of the database settings and the path settings often reveals where the errors lie.

6 Dec 2008, 1:29 PM
#5
chrisw avatar

chrisw

New Zenner

Join Date:
Dec 2008
Posts:
5
Plugin Contributions:
0

Re: Install problem admin works but not store.

That is what has me confused compairing them the paths seem identical same with the database info.

6 Dec 2008, 1:41 PM
#6
chrisw avatar

chrisw

New Zenner

Join Date:
Dec 2008
Posts:
5
Plugin Contributions:
0

Re: Install problem admin works but not store.

Admin config

define('DIR_WS_ADMIN', '/zencart/admin/');
define('DIR_WS_CATALOG', '/zencart/');
define('DIR_WS_HTTPS_ADMIN', '/zencart/admin/');
define('DIR_WS_HTTPS_CATALOG', '/zencart/');

define('DIR_FS_ADMIN', './../admin/');
define('DIR_FS_CATALOG', './../');

define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', '192.168.0.1');
define('DB_SERVER_USERNAME', 'zencart');
define('DB_SERVER_PASSWORD', 'zencart');
define('DB_DATABASE', 'zencart');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');

catalog config

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

define('DIR_FS_CATALOG', './../');

define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', '192.168.0.1');
define('DB_SERVER_USERNAME', 'zencart');
define('DB_SERVER_PASSWORD', 'zencart');
define('DB_DATABASE', 'zencart');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');

The actual info for connecting to the database I changed just because it's a public forum. But they were both identical to begin with.

6 Dec 2008, 2:28 PM
#7
drbyte avatar

drbyte

Sensei

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

Re: Install problem admin works but not store.

chrisw:

define('DIR_FS_ADMIN', './../admin/');
define('DIR_FS_CATALOG', './../');

define('DIR_FS_CATALOG', './../');

I recommend using actual paths from the root of your drive, rather than relative paths.

8 Dec 2008, 11:32 PM
#8
chrisw avatar

chrisw

New Zenner

Join Date:
Dec 2008
Posts:
5
Plugin Contributions:
0

Re: Install problem admin works but not store.

Thanks that seems to have fixed things for me.

8 Dec 2008, 11:55 PM
#9
munchie75 avatar

munchie75

New Zenner

Join Date:
Nov 2008
Posts:
12
Plugin Contributions:
0

Re: Install problem admin works but not store.

I have a similar problem.

Have transferred my site today and usually transfers have gone fine in the past.

The possible difference with this one is that it's the first site to include the following modules:

Module manager
Simple SEO

So they may be the cause.

Anyway i can log into the backend with no problems.

However on the frontend the system is displaying some kind of test page i have never seen before...and can't find referece to it anywhere.

It refers to a 'Matrix Linux' page, almost like a setup page.

The url is http://www.unlockinglocking.co.uk/lamberts_health/ if you would like to look at it.

It's latest version of ZC....

Have you seen this page before ??

Config files all appear ok...although i will obviosuly check them again.. as is often the cause of the problem.
And ran fix_cache_key too, for the updates of the sessions.

Hope it's not to tricky to get fixed.

Andy

9 Dec 2008, 12:29 PM
#10
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Install problem admin works but not store.

I'd expect to see that placeholder page if the index.php file in your Zencart root directory was missing or corrupt.

9 Dec 2008, 5:36 PM
#11
munchie75 avatar

munchie75

New Zenner

Join Date:
Nov 2008
Posts:
12
Plugin Contributions:
0

Re: Install problem admin works but not store.

stevesh:

I'd expect to see that placeholder page if the index.php file in your Zencart root directory was missing or corrupt.

Yes that defintely is the page i was referring to, as tried removing the index.php file on a site which was working, and i get the same result.

So as for working out if the file is corrupted i wouldn't know where to start.

I've tried trasnferring a duplicate of the original file by FTP again, but still get the same problem, even tho that index.php file works on the existing live site, albeit on a different server.

I'm trying to make a duplicate copy of my site, so i can use it as a base for a new cart with an identical setup on a different server, selling different products with different branding.

So any advice would be welcomed.

Riht i'm back to play around and see what else i can try !

9 Dec 2008, 6:03 PM
#12
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Install problem admin works but not store.

There aren't any redirects set up on that site, are there?

9 Dec 2008, 10:37 PM
#13
munchie75 avatar

munchie75

New Zenner

Join Date:
Nov 2008
Posts:
12
Plugin Contributions:
0

Re: Install problem admin works but not store.

Not that i'm aware of..

Just for clarity:
I presume a redirect would mean to redirect to https://www.xyz.com when you click on https://www.abc.com ??