Forums / General Questions / Making Zen Cart my home page

Making Zen Cart my home page

Locked

Started by asdweb on 16 Jul 2008, 1:47 AM · Views: 2,799

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
16 Jul 2008, 1:47 AM
#1
asdweb avatar

asdweb

New Zenner

Join Date:
Dec 2007
Posts:
26
Plugin Contributions:
0

Making Zen Cart my home page

I've stumbled on several threads that explain how to move the /store folder into the root of the domain (public_html, etc.).

Basically everything from the /store folder is moved.

THEN

2 configure.php files need to be modified.

It all seems simple... in the example below... remove /shop, but what about ..._CATALOG? Is it supposed to be '/' ?

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

ALSO... I have a question.

What is the benefit of making the Zen Cart my homepage instead of creating a new index.html page in Dreamweaver using the code copied from View Source?

Thanks in advanced.

16 Jul 2008, 2:20 AM
#2
0be1 avatar

0be1

Totally Zenned

Join Date:
Sep 2004
Location:
Murfreesboro, TN
Posts:
479
Plugin Contributions:
0

Re: Making Zen Cart my home page

asdweb;

I also replied to your other post.

Your answer to this one is yes, your new path at a root directory that is the public level top is '/'

Not sure how to answer your second question on what you are trying to accomplish. Also be careful with dreamweaver as I have had some blank spaces creep in on me making troubleshooting the site harder,

Sincerely,

0be1

"Give me one hundred preachers who fear nothing but sin and desire nothing but God, and I care not whether they be clergymen or laymen, they alone will shake the gates of Hell and set up the kingdom of Heaven upon Earth." - John Wesley

16 Jul 2008, 10:39 AM
#3
stevesh avatar

stevesh

Black Belt

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

Re: Making Zen Cart my home page

asdweb:

What is the benefit of making the Zen Cart my homepage instead of creating a new index.html page in Dreamweaver using the code copied from View Source?

If you mean that you're going to copy the source from the Zencart main page and use it to create a fake main page in the root when your cart is in /shop, that won't work.

If you mean just create a 'jump' page in root that links to Zencart in /shop - you can do that, but you'll really tick off customers like me who hate having to click for no reason. Zencart belongs in the root directory.

16 Jul 2008, 2:26 PM
#4
asdweb avatar

asdweb

New Zenner

Join Date:
Dec 2007
Posts:
26
Plugin Contributions:
0

Re: Making Zen Cart my home page

0be1:

asdweb;
Your answer to this one is yes, your new path at a root directory that is the public level top is '/'

Okay I did that, removed /shop from the two configure.php files and was greeted both times with "[a fatal error or timeout occurred while processing this directive]" when I saved the file. ?!?!?

Now when I go to the site, it is all messed up and zc_install/index.php is followed after my domain name.

WHAT DID I DO?????

(fortunately I downloaded the original files!)

16 Jul 2008, 2:35 PM
#5
0be1 avatar

0be1

Totally Zenned

Join Date:
Sep 2004
Location:
Murfreesboro, TN
Posts:
479
Plugin Contributions:
0

Re: Making Zen Cart my home page

What is the URL to take a peek please.

0be1

"Give me one hundred preachers who fear nothing but sin and desire nothing but God, and I care not whether they be clergymen or laymen, they alone will shake the gates of Hell and set up the kingdom of Heaven upon Earth." - John Wesley

16 Jul 2008, 2:55 PM
#6
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Making Zen Cart my home page

Old configure.php contents:

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

Are the new configure.php contents as below?

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

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

16 Jul 2008, 3:27 PM
#7
asdweb avatar

asdweb

New Zenner

Join Date:
Dec 2007
Posts:
26
Plugin Contributions:
0

Re: Making Zen Cart my home page

I did that PLUS I removed /shop from the very last line in the configure.php files from between public_html and cache.

was I not supposed to do that?

define('DIR_FS_SQL_CACHE', '/home/mypassword/public_html/cache');

I redid the configure files and now the site is up now with this error message on the top...

"Warning: I am able to write to the configuration file: %s. This is a potential security risk - please set the right user permissions on this file (read-only, CHMOD 644 or 444 are typical). You may need to use your webhost control panel/file-manager to change the permissions effectively. Contact your webhost for assistance."

When I checked the permissions for the configure.php files they are set at 644.

?!?!

16 Jul 2008, 3:29 PM
#8
stevesh avatar

stevesh

Black Belt

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

Re: Making Zen Cart my home page

Site's up - that's good.

Did you try changing the permissions via your control panel's file manager rather than your FTP client? Sometimes that's the only way, for some reason.

16 Jul 2008, 3:41 PM
#9
asdweb avatar

asdweb

New Zenner

Join Date:
Dec 2007
Posts:
26
Plugin Contributions:
0

Re: Making Zen Cart my home page

very good. whew!

I don't know what permissions I am supposed to change. I checked the configure.php files and they are set at 644.

?!?!

16 Jul 2008, 4:06 PM
#10
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Making Zen Cart my home page

What the permission needs to be can depend on your hosting service. Try changing the permission to 444 and see what happens.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

16 Jul 2008, 5:50 PM
#11
asdweb avatar

asdweb

New Zenner

Join Date:
Dec 2007
Posts:
26
Plugin Contributions:
0

Re: Making Zen Cart my home page

Yup. That worked changing both configure.php files to 444!!

Terrific! Thank you!