If this is your first visit, check our documentation. To post, register or login.

tutorial update

Started by keneso on 26 Nov 2018, 2:56 PM · Views: 92

Results 1 to 5 of 5
26 Nov 2018, 2:56 PM
#1
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

tutorial update

Hi

In the process of moving from a sub-directory to root I checked the tutorial:
https://www.zen-cart.com/content.php?160

At point 4 it reads

Your /includes/configure.php and /admin/includes/configure.php files are used to point Zen Cart® to the right folders. In that file, you need to update several entries to match the new path information:

DIR_WS_CATALOG
DIR_WS_HTTPS_CATALOG
DIR_FS_CATALOG
DIR_FS_LOGS (since v1.5.0)
DIR_FS_SQL_CACHE

Whereas in the 1.55 version
DIR_FS_LOGS (since v1.5.0)
DIR_FS_SQL_CACHE
are commented, and therefore not needed to be updated.

Also at point 1 in the admin > configuration > sessions the sessions directory read the same as the subfolder installation, after I moved the files to root, to be clear in the sub-directory installation it displayed

/home/user/public_html/cache
which is the same I found after moving to root

Is this an auto update, or shall I do some editing?

Thank you

26 Nov 2018, 4:11 PM
#2
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: tutorial update

Apologies for the double post, not intended, experimented a wierd behaviour while previewing post before submitting, perhaps that caused it?

27 Nov 2018, 9:00 AM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: tutorial update

I'm not sure how much of the above is provided as a recommendation to make a change, to ask a question about the guidance or to simply make statements.

Regarding the sessions information, it has been a few versions since the change, but as I recall, the session directory is updated auto-matically if it's existing configuration is no longer valid. So in the case of the sub-directory becoming the root, it does seem like the path provided existed while the sub-directory was setup and continued to exist while the store moved to the root (or up one).

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

27 Nov 2018, 4:23 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: tutorial update

keneso:

At point 4 it reads

Your /includes/configure.php and /admin/includes/configure.php files are used to point Zen Cart® to the right folders. In that file, you need to update several entries to match the new path information:

DIR_WS_CATALOG
DIR_WS_HTTPS_CATALOG
DIR_FS_CATALOG
DIR_FS_LOGS (since v1.5.0)
DIR_FS_SQL_CACHE

Whereas in the 1.55 version
DIR_FS_LOGS (since v1.5.0)
DIR_FS_SQL_CACHE
are commented, and therefore not needed to be updated.You are correct. Unless you are intentionally trying to push the cache or logs folders to some other location, you don't need to set them as they will be auto-defined/detected. Will update the tutorial to reflect the small changes since v1.5.5

keneso:

Also at point 1 in the admin > configuration > sessions the sessions directory read the same as the subfolder installation, after I moved the files to root, to be clear in the sub-directory installation it displayed

/home/user/public_html/cache
which is the same I found after moving to root

Is this an auto update, or shall I do some editing?
I'm not sure I fully understand all the "moving" you've been doing. If your shop is in a subdirectory and your cache directory is inside that subdirectory then you should point the session dir to that correct cache dir in the subdirectory. The tutorial article is correct.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Nov 2018, 12:00 AM
#5
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: tutorial update

Thank you.

I'm not sure I fully understand all the "moving" you've been doing. If your shop is in a subdirectory and your cache directory is inside that subdirectory then you should point the session dir to that correct cache dir in the subdirectory. The tutorial article is correct.
I meant to say I had it previously on sub (i.e. mysite.com/zencart-155), and in the configuration > session it was
/home/user/public_html/cache
Then I moved it to root (mysite.com) and in the configuration > session it is
/home/user/public_html/cache

As long as you confirm /home/user/public_html/cache in the new (root) location is correct I am fine, don't need to have special path for the cache.

Hope I have been bit more clear.