Forums / Basic Configuration / Where is the Zen Cart™ /admin/ directory?

Where is the Zen Cart™ /admin/ directory?

Locked

Views: 4,875

Results 1 to 18 of 18
This thread is locked. New replies are disabled.
23 Feb 2008, 6:10 AM
#1
mezx avatar

mezx

New Zenner

Join Date:
Feb 2008
Posts:
24
Plugin Contributions:
0

Where is the Zen Cart™ /admin/ directory?

Hello--i'm trying to make my site secure by changing "admin" to something else. i've been following this tutorial line by line:

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

but I'm stuck at Step 2B:

"B - Find your Zen Cart™ /admin/ directory, using your FTP software or your webhost File Manager. Rename the directory to match the settings you just made in step A."

what's driving me crazy is, i can't find the "Zen Cart™ /admin/ " directory anywhere. the step refers to a step A--that's the admin for the site--but where's the zencart admin directory? I can't even find a directory called zencart.

Please help as I can't move forward (I can't even get back into my /admin until i complete the job completely).

Thanks! :blink:

23 Feb 2008, 6:16 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Where is the Zen Cart™ /admin/ directory?

Where did you install Zen Cart?

At the root? or /public_html/

In a folder? /public_html/your_folder_name

Or????

Try posting from your configure.php file the following line that you have

  define('DIR_WS_CATALOG', '/');

Zen-Venom Get Bitten

23 Feb 2008, 6:25 AM
#3
mezx avatar

mezx

New Zenner

Join Date:
Feb 2008
Posts:
24
Plugin Contributions:
0

Re: Where is the Zen Cart™ /admin/ directory?

I already changed "admin" in admin/includes/configure.php

but the instructions say to do it in the zencart admin as well.

i installed zencart on the root or the "/'.

this:

define('DIR_WS_CATALOG', '/');

i see in

admin/includes/configure.php

and that where i changed admin already. but does

define('DIR_WS_CATALOG', '/');

also exist somewhere else other than

admin/includes/configure.php?

23 Feb 2008, 6:40 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Where is the Zen Cart™ /admin/ directory?

i installed zencart on the root or the "/'.
Then your current non-renamed admin folder exists at the root or at /admin and you should see it with your FTP client - might have to refresh your FTP view???
I already changed "admin" in admin/includes/configure.php
If you changed this then you already know where your admin is!!
in admin/includes/configure.php

Zen-Venom Get Bitten

23 Feb 2008, 7:02 AM
#5
mezx avatar

mezx

New Zenner

Join Date:
Feb 2008
Posts:
24
Plugin Contributions:
0

Re: Where is the Zen Cart™ /admin/ directory?

If you changed this then you already know where your admin is!!
in admin/includes/configure.php

that's ONE admin--according to the instructions, there a whole other set....this is driving me crazy--cause the instructions make it sound so simple---just find the admin in your zencart (and not the admin in the site itself...) here's what the instructions say---I did Part A no problem, now i'm stuck on B:

  1. Rename your /admin folder

It is recommended for additional security that you rename your admin directory after installation. This way, it will be significantly harder for hackers to find your admin area or attempt any attack on breaking into it.

(Before making the following changes, make sure to have a current backup of your files and your database.)

A - Open your admin/includes/configure.php, using a simple text editor like notepad. Change all instances of admin to your chosen new admin folder-name. For maximum security, you may want to consider that new folder name should include numbers and a combination of upper and lower case letters. The longer you make this folder's name the more secure it will be. Make sure you leave all the / intact.

Change this section:

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

And this section:

define('DIR_FS_ADMIN', '/home/mystore.com/www/public/admin/');
define('DIR_FS_CATALOG', '/home/mystore.com/www/public/');

You will end up with something that looks like this:

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

And:

define('DIR_FS_ADMIN', '/home/mystore.com/www/public/mysecretadminarea/');
define('DIR_FS_CATALOG', '/home/mystore.com/www/public/');

B - Find your Zen Cart™ /admin/ directory, using your FTP software or your webhost File Manager. Rename the directory to match the settings you just made in step A.

Please help (and thanks for your help thus far!)

23 Feb 2008, 7:07 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Where is the Zen Cart™ /admin/ directory?

just find the admin in your zencart (and not the admin in the site itself...
There is only one!!!

Rename the dir/folder "/admin/" to what you entered in your configure.php files( you did edit both - correct?)

Zen-Venom Get Bitten

23 Feb 2008, 7:22 AM
#7
mezx avatar

mezx

New Zenner

Join Date:
Feb 2008
Posts:
24
Plugin Contributions:
0

Re: Where is the Zen Cart™ /admin/ directory?

hmmm...i figured out why i couldn't get into it---it seems that the changes i made to the configure.php file did not take. when i went to make them again and hit save on my webftp (that's the only php editor i have), it said, 'file could not be saved'. hence it didn't match the name of the folder i made---i changed the dir back to admin and it works fine again....

so--two questions--

  1. how do change the php file so that i'm allowed to make the change OR
  2. is all this necessary anyway????

Thanks!

23 Feb 2008, 7:31 AM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Where is the Zen Cart™ /admin/ directory?

  1. how do change the php file so that i'm allowed to make the change
    You have to be able to upload changed files...might get filezilla FTP client
  1. is all this necessary anyway????
    Only if you want to be more secure...

To alter other things the first item must be addressed

Zen-Venom Get Bitten

23 Feb 2008, 7:34 AM
#9
mezx avatar

mezx

New Zenner

Join Date:
Feb 2008
Posts:
24
Plugin Contributions:
0

Re: Where is the Zen Cart™ /admin/ directory?

Only if you want to be more secure...

To alter other things the first item must be addressed

do most people do this, do you know? i have pretty small store and plan to charge cc numbers manually.

23 Feb 2008, 7:38 AM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Where is the Zen Cart™ /admin/ directory?

do most people do this, do you know?
Only if they are smart!!

But

You have to be able to upload changed files

Zen-Venom Get Bitten

23 Feb 2008, 7:48 AM
#11
mezx avatar

mezx

New Zenner

Join Date:
Feb 2008
Posts:
24
Plugin Contributions:
0

Re: Where is the Zen Cart™ /admin/ directory?

i just downloaded filezilla FTP client but realized--is that a php editor? i already had wsftp and well as webftp from my server--- on webftp i could edit php--and have in the past--but i've noticed on some php files it refuses to let you save.

23 Feb 2008, 8:11 AM
#12
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Where is the Zen Cart™ /admin/ directory?

A double step but bullet proof over a non-reliable solution -

Filezilla for FTP
crimson editor for local file editing

http://www.crimsoneditor.com/

Zen-Venom Get Bitten

23 Feb 2008, 2:07 PM
#13
drbyte avatar

drbyte

Sensei

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

Re: Where is the Zen Cart™ /admin/ directory?

mezx:

hmmm...i figured out why i couldn't get into it---it seems that the changes i made to the configure.php file did not take.

If your configure.php file is set to read-only, then you can't save changes into it. You'll have to make it writable first. Then make your edits. Then put it back to read-only.

.
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.

23 Feb 2008, 3:13 PM
#14
mezx avatar

mezx

New Zenner

Join Date:
Feb 2008
Posts:
24
Plugin Contributions:
0

Re: Where is the Zen Cart™ /admin/ directory?

is this the CHMOD settings? what number should i set it to to make it writeable and then to what number should i change it back? thanks!

23 Feb 2008, 3:33 PM
#15
drbyte avatar

drbyte

Sensei

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

Re: Where is the Zen Cart™ /admin/ directory?

Each server is different, so I can't tell you exactly. But here's some guidance.

About Permissions:
https://www.zen-cart.com/tutorials/index.php?article=148

First, what is it set to NOW? That's what you'll put it back to when you're done.
To make it writable, the first digit needs to be higher than 4.

.
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.

23 Feb 2008, 5:01 PM
#16
mezx avatar

mezx

New Zenner

Join Date:
Feb 2008
Posts:
24
Plugin Contributions:
0

Re: Where is the Zen Cart™ /admin/ directory?

I changed the chmod settings and changed admin, i'm able to save the changes, but i'm still not able to login to the admin--i'm getting a 404 error.

23 Feb 2008, 6:09 PM
#17
mezx avatar

mezx

New Zenner

Join Date:
Feb 2008
Posts:
24
Plugin Contributions:
0

Re: Where is the Zen Cart™ /admin/ directory?

ah--i figured it out -- there was a difference in capitalization between the folder name and name cited in the config. Thanks VERY MUCH for all the help!

23 Feb 2008, 7:19 PM
#18
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,668
Plugin Contributions:
0

Re: Where is the Zen Cart™ /admin/ directory?

:clap::clap:

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.