root directory

Locked
Results 1 to 20 of 24
This thread is locked. New replies are disabled.
30 Mar 2009, 13:49
#1
shiningfaery avatar

shiningfaery

New Zenner

Join Date:
Mar 2009
Posts:
72
Plugin Contributions:
0

root directory

I am getting ready to move my zen cart from its current location to the root directory I have tutorial 122 so no need to post it.

My question is how do I know which folder to put it to?

my ftp shows a folder just named ... this is what i suspect is the root i am just making sure I have the right folder before I start.
30 Mar 2009, 13:51
#2
shiningfaery avatar

shiningfaery

New Zenner

Join Date:
Mar 2009
Posts:
72
Plugin Contributions:
0

Re: root directory

oh I meant to add as well I have located zen cart in 3 different locations on my ftp I have been customising the one in public_html again is this the one I should move?
30 Mar 2009, 13:53
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: root directory

That depends on your hosting arrangement and how your FTP account has been set up.

FTP accounts don't necessarily point to your site root folder. Indeed the default one often points to a higher level so that you can store files outside the webroot.

Your webroot can have a wide variety of different names depending upon how your server is configured. public_html and httpdocs are common, but I must have seen at least a dozen variations.

So, this is sounding like a question for your webhost.

Additional note: our posts crossed ... the site in your public_html file is probably already in your site's root.
30 Mar 2009, 13:56
#4
shiningfaery avatar

shiningfaery

New Zenner

Join Date:
Mar 2009
Posts:
72
Plugin Contributions:
0

Re: root directory

I was afraid of that, my hosting technical help are useless and I am being nice!! I will give them a try and see if they can answer my question....
30 Mar 2009, 14:21
#5
shiningfaery avatar

shiningfaery

New Zenner

Join Date:
Mar 2009
Posts:
72
Plugin Contributions:
0

Re: root directory

According to my host zen cart should be in public_html folder which it is and to be shown on my site as I want it should have the index.htm file in the folder which is doesnt I have located this file in a folder named web documents and all it has is the index.htm file so do I put zc in web documents or do I move it the other way round or do I ignore this completly??
30 Mar 2009, 14:25
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: root directory

Zen Cart is a dynamic php application which is run from index.php, not index.htm or index.html (which are for static HTML sites). Although there are some .html files dotted around Zen Cart, they're there to stop people from browsing your directories and their purpose is solely defensive - ifnore them.

It sounds as though your site is already in the right place ... but you've never quite told us why you're not happy with it as it is now.
30 Mar 2009, 15:10
#8
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: root directory

I'm afraid that this a back to your host issue.

From the public side of your server I can see that the URL I would expect to use to access your Zen Cart dynamically in your site's root (http://delightfullyxquisite.com/index.php) doesn't, and the static location to which sites redirect when there's a problem (http://www.delightfullyxquisite.com/nddbc.html) isn't there either.

This could mean that:
  1. public_html isn't your site root (unlikely)
  2. that your site isn't in public_html (but you've already told us it is)
  3. there is some redirection and/or URL re-writing going on in the site root
Unfortunately, although 3. is the most likely scenario, we can't see what's happening from the public side of your site (which from a security perspective, is a good thing).
30 Mar 2009, 15:51
#9
shiningfaery avatar

shiningfaery

New Zenner

Join Date:
Mar 2009
Posts:
72
Plugin Contributions:
0

Re: root directory

Ok so what would be the way to approach this or find out because when I have my shop the way I want it which is soon I will be wanting it to show up on www.delightfullyxquisite.com
the page that shows up there is in a folder called rvsitebuiler not in public html but in same folder thats it is in side by side, if that makes sense so in simplistic terms if I delete rvsitebuilder will zen cart show up?
30 Mar 2009, 16:38
#10
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: root directory

This is more evidence suggesting the presence of redirection in your hosting account. You will need to turn that off to achieve what you're after, but how is not something that I can tell from looking at your site form the outside.

However, I can be reasonably confident that deleting the destination to which your account is re-directed is unlikely to help.
30 Mar 2009, 16:42
#11
shiningfaery avatar

shiningfaery

New Zenner

Join Date:
Mar 2009
Posts:
72
Plugin Contributions:
0

Re: root directory

Ok Kuroni I will take what you have said back to them and see if it sheds any light on the matter...here is hoping....
08 Jun 2009, 13:58
#12
greengreetings avatar

greengreetings

Zen Follower

Join Date:
May 2009
Posts:
90
Plugin Contributions:
0

Re: root directory

I deleted my old HTML site and now am trying to run strictly from Zen Cart, but now my domain (janaygreen.com) just shows the dir folder "catalog". I don't know how to get it to just go to the catalog without changing the home page to janaygreen.com/catalog.

It was working before just going to janaygreen.com. Any suggestions?
08 Jun 2009, 14:14
#13
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Posts:
6,800
Plugin Contributions:
0

Re: root directory

Move all the folders and files from /catalog to the root directory (usually public_html) and follow the directions in https://www.zen-cart.com/tutorials/index.php?article=122
01 Jul 2009, 13:31
#14
sdpamperin avatar

sdpamperin

New Zenner

Join Date:
Jun 2009
Posts:
4
Plugin Contributions:
0

Re: root directory

I am a brand new zenner. Can you tell me what is the root directory...as in which file. I have been trying to figure it out all morning. Thanks.
01 Jul 2009, 13:37
#15
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: root directory

"root" directory can be used in two different ways. The first is the root directory for you hosting account, which usually refers to the place that your web host tells you to put your publicly viewable files.

The other root directory is the one for your Zen Cart. This is the directory into which you have installed your Zen Cart with all its sub directories.

The two roots are often the same, though will be different if you have installed your Zen Cart in a sub directory.
15 Jul 2009, 17:16
#16
greengreetings avatar

greengreetings

Zen Follower

Join Date:
May 2009
Posts:
90
Plugin Contributions:
0

Re: root directory

Ok, I'm working with my host to move my shop into the directory "shop" and it has been done, but now everything shows up without any graphics and all of the links bring up 404 statuses. When I go to old links to my site, they show up, but only in text without any graphics or styling.

I'm so angry because in order to have multiple shops I needed to have multiple directories, but now I've just messed everything up and I don't know what to do. While I'm emailing my host, does anyone have any suggestions or has this happened to anyone else where the old links work, but the new ones don't.

I've cleared my browser's cache. Maybe someone else views my site differently: http://www.janaygreen.com.
15 Jul 2009, 17:22
#17
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: root directory

Unfortunately we can't see how your site is being re-directed down to the shop folder, which limits the advice we can give. However in principle this looks like an inconsistency between however that redirection is being effected and what you includes/configure.php file has been set to.
15 Jul 2009, 17:51
#18
greengreetings avatar

greengreetings

Zen Follower

Join Date:
May 2009
Posts:
90
Plugin Contributions:
0

Re: root directory

If this helps, here are the changes to my configure files:



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

  define('DIR_WS_CATALOG', '/shop/');
  define('DIR_WS_HTTPS_CATALOG', '/shop/');
  define('DIR_FS_CATALOG', '/usr/www/users/jgreen23/shop/');
  define('DIR_FS_SQL_CACHE', '/usr/www/users/jgreen23/shop/cache');



and:


define('HTTP_SERVER', 'http://www.janaygreen.com');
  define('HTTPS_SERVER', 'https://www.janaygreen.com');
  define('HTTP_CATALOG_SERVER', 'http://www.janaygreen.com');
  define('HTTPS_CATALOG_SERVER', 'https://www.janaygreen.com');
  define('DIR_WS_ADMIN', '/shop/xxxxxxx/');
  define('DIR_WS_CATALOG', '/shop/');
  define('DIR_WS_HTTPS_ADMIN', '/shop/xxxxxxx/');
  define('DIR_WS_HTTPS_CATALOG', '/shop/');
  define('DIR_FS_ADMIN', '/usr/www/users/jgreen23/shop/xxxxxxx/');
  define('DIR_FS_CATALOG', '/usr/www/users/jgreen23/shop/');
  define('DIR_FS_SQL_CACHE', '/usr/www/users/jgreen23/shop/cache');


with the "xxxxxxx" being my admin name. Any suggestions?
15 Jul 2009, 17:56
#19
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: root directory

My best guess based on the information available is that your URLs are being re-written behind the scenes to point into the shop directory. That would explain why your main URL starts to display your Zen Cart even though it's actually in a directory called shop.

By also adding shop to the stores internal URLs, you may be trying to send to shop/shop. Try removing the references to shop from DIR_WS_CATALOG and DIR_WS_HTTPS_CATALOG, but *not* from DIR_FS_CATALOG and DIR_FS_SQL_CACHE.
15 Jul 2009, 18:05
#20
greengreetings avatar

greengreetings

Zen Follower

Join Date:
May 2009
Posts:
90
Plugin Contributions:
0

Re: root directory

Oh, my God. You are ******* brilliant.
I love you. <3
In other words:
It worked!. :clap: