Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

No Need Admin. Password?


marcoarxi

Recommended Posts

I'm testing my online shop using osCommerce.

I found I don't need to give any password when I enter the full path aaa.bbb.ccc/admin/index.php.

plz teach me how to set the admin. password. thanks!!

Link to comment
Share on other sites

If you have CPanel there is a link there to "Password Protect Directories". That is the easiest way.

 

You should also rename your "admin" directory to something less obvious which can also be done via CPanel under "File Manager", then click to the "admin directory and on the right you will see "Rename this folder". After renaming it you will have to revise your admin/configure.php files to reflect the change.

 

define('DIR_WS_ADMIN', '/???????/'); // absolute path required
define('DIR_FS_ADMIN', '?????????'); // absolute pate required

 

Also if you have a robots.txt file in your root or catalog folder do NOT include a line such as;

 

Disallow: /admin

 

as that file is readable in any browser. Instead create another robots.txt file in your admin directory and add;

 

User-agent: *
Disallow: /

 

This will stop robots from indexing your admin. Those steps along will an SSL cert will help protect your admin.

 

HTH

Link to comment
Share on other sites

Thank you so much.

I don't install any extra. module on my osCommerce site.

so, I dont have the Cpanel. Is it free ? where can I get it?

thank you!!

 

 

 

If you have CPanel there is a link there to "Password Protect Directories". That is the easiest way.

 

You should also rename your "admin" directory to something less obvious which can also be done via CPanel under "File Manager", then click to the "admin directory and on the right you will see "Rename this folder". After renaming it you will have to revise your admin/configure.php files to reflect the change.

 

define('DIR_WS_ADMIN', '/???????/'); // absolute path required
define('DIR_FS_ADMIN', '?????????'); // absolute pate required

 

Also if you have a robots.txt file in your root or catalog folder do NOT include a line such as;

 

Disallow: /admin

 

as that file is readable in any browser. Instead create another robots.txt file in your admin directory and add;

 

User-agent: *
Disallow: /

 

This will stop robots from indexing your admin. Those steps along will an SSL cert will help protect your admin.

 

HTH

Link to comment
Share on other sites

thank your reply.

but what if my host server doesn't provide the cpanel.

I have tried these two ways to access the cpanel.

www.my_website_name.com/cpanel/

and

www.my_website_name.com:2082

 

I know I can change the admin folder name.

how can I set the passwork check for my administrator tool ?

 

thank you!

 

 

 

Cpanel is found at your host. It is where you can create databases configure settings etc..
Link to comment
Share on other sites

No, you have a way to sign in to your account at your host. go to their web site, sign in, go to your account and there should be control panel or something similar. check there.

If you do not have one there then you will have to use .htaccess and .htpasswd.

See contribution in my sig. below or goolge for .htaccess and .htpasswd for tutorials

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

Try

 

www.my_website_name.com:2083/frontend/x2/index.html

(If you receive an error let me know, an error other than "page not found")

 

But if they do not offer it, then that way won't work. When you signed up for your hosting account you should have received an email. You can see if there is any reference there to a control panel.

 

If not there are several contributions that will do the same thing easily.

 

http://www.oscommerce.com/community/contributions,5017

http://www.oscommerce.com/community/contributions,3062

http://www.oscommerce.com/community/contributions,3006

http://www.oscommerce.com/community/contributions,1082

http://www.oscommerce.com/community/contributions,1359

http://www.oscommerce.com/community/contributions,2037

 

Make sure you pick one you understand and can also remove if you run into trouble. If you can't uninstall it after setting your password then you might not be able to access your admin. BACKUP and BACKUP again before making any changes.

 

HTH

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...