Zen Cart Logo
Forums / Upgrading from 1.3.x to 1.3.9 / Security question

Security question

Locked

Views: 1,732

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
25 Jul 2009, 7:52 PM
#1
music_man avatar

music_man

Zen Follower

Join Date:
Apr 2009
Posts:
188
Plugin Contributions:
0

Security question

In the ZC site security recommendations I saw the following:

"/cache
..... The BEST security protection for this is to move it to a folder "above" the webroot (public_html or htdocs or www) area, so that it's not accessible via a browser. (Requires changes to DIR_FS_SQL_CACHE setting in configure.php files as well as Admin > Configuration > Sessions > Session Directory.)"

I ran this by my host and got the following response....

"You can move that folder to your home directory (the folder in which public_html lives). You wouldn't have an address(URL) for that directory once moved out of your web root, but you would have a filesystem path......... "

Two questions come to mind:

  1. By doing what the host says am I placing /cache folder on the same level or "above" the webroot? It sounds like I'm "above" but just wanted to check my understanding with someone else who is familiar with ZC.....

  2. How many configure.php files need changing?

Thanks for looking.....

MM

25 Jul 2009, 8:24 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Security question

  1. Yes.
  2. Two
25 Jul 2009, 8:51 PM
#3
music_man avatar

music_man

Zen Follower

Join Date:
Apr 2009
Posts:
188
Plugin Contributions:
0

Re: Security question

Yes to "above" or same level in question #1?

Thanks

MM

25 Jul 2009, 9:06 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Security question

Your server probably has the following folder structure:

/home/username/public_html

The "webroot" in that example is the "public_html" part.

So, if you move your cache folder to /home/username/cache then that puts the cache folder outside the webroot. Whether you want to be semantic and call it 'above' or 'beside' doesn't matter. In the "industry" being "outside" the webroot is also affectionately called "above" the webroot too.

26 Jul 2009, 4:31 AM
#5
music_man avatar

music_man

Zen Follower

Join Date:
Apr 2009
Posts:
188
Plugin Contributions:
0

Re: Security question

Ahh...I think I've got it now....

Thanks for the help...

MM