Forums / Installing on a Linux/Unix Server / Is the path wrong?

Is the path wrong?

Started by ivanna on 7 Feb 2012, 2:42 PM · Views: 2,220

Results 1 to 13 of 13
7 Feb 2012, 2:42 PM
#1
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Is the path wrong?

I have a question regarding installation.

When I installed zen cart I think perhaps I installed it one level too deep. At install, I named my folder catalog and uploaded it to public_html so now my path to is /public_html/catalog/includes/
Should the includes be directly under /public_html ?

The reason for my question is this. I am working on a site where DNS is still pointing to the current site so my address is ipaddress/~user/catalog/ instead of https://www.domain.com. I thought when I switched the site would become https://www.domain.com but now I think it will become https://www.domain.com/catalog/, which is not good.

My second reason is because I tried to install a slideshow and found I needed to change the path from ../images/imagename.jpg" to ../catalog/images/imagename.jpg"

I think my assumption is correct but I need to be clarified.

If my assumption is correct, would it be possible to clear the directories from the server and reload one level higher, for instance remove the catalog folder and have the path like this /public_html/includes/

If this is what I must do, will I need to make configuration changes?

thank you
Ivanna

7 Feb 2012, 3:39 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: Is the path wrong?

It doesn't matter if your Zencart installation is in a subdirectory or not, but if you want it in the root directory (public_html) there are some simple instructions here:

https://www.zen-cart.com/tutorials/index.php?article=122

7 Feb 2012, 3:46 PM
#3
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Is the path wrong?

Yes, you would need to have all Zen Cart files uploaded to /public_html/ as right now they are in a sub-directory called 'catalog'.

Not sure what you mean by this: " I am working on a site where DNS is still pointing to the current site"

Is the "current site" is on the same Hosting account as where Zen Cart is to be installed?

The learning is in the doing.

Potent Products

7 Feb 2012, 4:19 PM
#4
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: Is the path wrong?

Steve,
thank you. You have saved my life once more. I will work on this.

Rob,
thank you for your reply. What I mean is my client already has a website https://www.domain.com to which DNS servers are already looking. The site is with a different host, on a different shopping cart. I am redesigning with zen cart and moving it to a new host server.

Setting up the client on the host, I gave the same name https://www.domain.com but without pointing DNS to the new host. That is why my address (for now) is ipaddress/~user/catalog/ instead of https://www.domain.com. When the site is ready all I do is change DNS server. Does my explanation make sense for you?

thank you
Ivanna

8 Feb 2012, 1:44 AM
#5
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Is the path wrong?

For future reference, it's much easier to build using the dedicated IP address. Assuming you have one, which you should since it's needed for a dedicated SSL cert.

The best way to learn is to try stuff. But, back it up first.

8 Feb 2012, 4:01 AM
#6
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Is the path wrong?

Ivanna, as mentioned by Resco, use your Dedicated IP address within the Zen Cart config files in place of a domain name. Zen Cart will be fully functional allowing to set it up the way you want. Once you change Nameservers to point to the new hosting account you can replace the IP address with the actual domain name. Don't use "/~user/" at all as that is bad for many reasons. I'm surprized actually that it works as most Hosters disable "/~user/" for security reasons.

The learning is in the doing.

Potent Products

8 Feb 2012, 3:56 PM
#7
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: Is the path wrong?

Resco and Rob,
I have a WHM from Hostgator. I have three sites that I am building, WP and ZC for me and one for a client. When I create an account, I am sent details and also one time when I could not get to a cPanel, I call Hostgator and they say use ipaddress:/~userid, so I do that. Now you say I am wrong?

So now I look at WHM List Accounts, two accounts have the same ip address, the other is different on the last octet. I think they are shared. I must contact Hostgator and find how to dedicate them.

Thank you for telling me this.

Steve,
I used the tutorial last night and it was very easy to change the path.

Thank you all
Ivanna

8 Feb 2012, 5:18 PM
#8
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: Is the path wrong?

I have found that the dedicated ip comes with the SSL purchase. I did not realise that a user could have more than one SSL.

How do others by pass this situation? do you buy the ssl before you begin the site or use some other means such as sub domain. I would like to learn from you.

thank you
Ivanna

8 Feb 2012, 6:23 PM
#9
stevesh avatar

stevesh

Black Belt

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

Re: Is the path wrong?

Generally, an SSL certificate is issued for one domain. There are certificates that can be used by multiple domains, but they are sufficiently expensive that it usually makes more sense to buy one for each domain, especially since you have only three.

8 Feb 2012, 6:42 PM
#10
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: Is the path wrong?

Yes, it must be one for each separate domain. Hopefully, I will have more than three sites but each must pay for itself. :smile:

Ivanna

11 Feb 2012, 6:39 AM
#11
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Is the path wrong?

Dedicated IPs you need to get from your Hoster. They can also explain how is setup and used with an SSL Cert.

The learning is in the doing.

Potent Products

17 Feb 2012, 5:44 PM
#12
ivanna avatar

ivanna

Zen Follower

Join Date:
Jan 2011
Location:
Texas, USA
Posts:
171
Plugin Contributions:
0

Re: Is the path wrong?

I now have a dedicated ip address and I made a change in config.php to change from the old ip address to the new one.

I have more issue. I go to the site using the ip address. That is not a problem but when I go to other internal links such as categories, it is still pointing to the old ip address.

How do I correct this please?

19 Feb 2012, 5:33 PM
#13
lk188 avatar

lk188

New Zenner

Join Date:
Feb 2012
Posts:
3
Plugin Contributions:
0

Re: Is the path wrong?

you can move your website from /public_html/catalog/ to /public_html/ and reinstall it