Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Urgent help on such a simple thing....


Guest

Recommended Posts

Hey forum,

 

Thanks for checking the post out. My store is almost ready to launch, except for the major fact my admin folder has yet to be secured!

 

I've looked at the million other posts on this, but I couldn't find any concise, simple, instructions.

 

If anyone could help me out or point me in the right direction, I'll buy you a cyber-beer!

 

Thanks in advance,

 

Tom

Link to comment
Share on other sites

Go to your catalog/admin/includes/configure.php, and set the SSL to "true", such as this:

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'http://www.yoursite.com');

define('HTTP_CATALOG_SERVER', 'http://www.yoursite.com');

define('HTTPS_CATALOG_SERVER', 'https://www.yoursite.com');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

 

Then your admin is secure. Cool?

 

J

Jason

 

Simple 1-2-3 Intructions on how to get, install and configure SSL

 

The Google Sandbox explained

 

Simple to follow instructions on how to change the look of your OSC

 

How To Make A Horrible OSC Website

 

my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP

 

my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...

Link to comment
Share on other sites

Hey forum,

 

Thanks for checking the post out. My store is almost ready to launch, except for the major fact my admin folder has yet to be secured!

 

I've looked at the million other posts on this, but I couldn't find any concise, simple, instructions.

 

If anyone could help me out or point me in the right direction, I'll buy you a cyber-beer!

 

Thanks in advance,

 

Tom

 

Hey Tom there are other eaiser ways to secrue your site as I believe it was assumed above that you have an ssl certificate.

 

Look in the contributions area for Admin Login - Logout. Very easy to install and does not require an ssl cert.

Link to comment
Share on other sites

Even easier would be to use "Password Protect Directories" in CPanel. An SSL cert is also a good idea as well as renaming the admin directory to something more obscure.

Link to comment
Share on other sites

Even easier would be to use "Password Protect Directories" in CPanel. An SSL cert is also a good idea as well as renaming the admin directory to something more obscure.

 

If you rename the admin directory does this mean you also need to find any reference to paths in other php files or is it just a case of changing it and bingo!

I don't bother doing backups. I love the thrill of screwing it all up!

Link to comment
Share on other sites

When you say secure your admin folder I think you are talking about password-protecting it. If that is the case - disregard athe SSL advice above - SSL encrytption of data is not "securing" your admin folder.

 

To secure your admin folder - open up your web hosting control panel. Click the "Password Protect" icon/link. Enter a username and password into the form fields and press ok.

 

Browse to your admin folder in a browser. You will be prompted for the username and password you just created.

Link to comment
Share on other sites

When you say secure your admin folder I think you are talking about password-protecting it. If that is the case - disregard athe SSL advice above - SSL encrytption of data is not "securing" your admin folder.

 

To secure your admin folder - open up your web hosting control panel. Click the "Password Protect" icon/link. Enter a username and password into the form fields and press ok.

 

Browse to your admin folder in a browser. You will be prompted for the username and password you just created.

Thank you very much. I will contact my ISP and ask where in control panel that kind of link is and i'll do as you said. But i'd like to rename the admin directory as well. Do you know how to do it or any link where it is explained?

Thank you.

Link to comment
Share on other sites

Use FTP to change the folder name (you should have been using this anyway to upload files to your web server...?)

Yes i did that but if i just change the directory name than the links don't work. I don't know how to update all the links

Link to comment
Share on other sites

well of course not - you have to tell OSC about the change. This is done in /catalog/admin/includes/configure.php.

 

Change all path references of /admin/ to your newly named directory.

 

Thank you so much! I?ve changed all path references (2) in catalog/admin/includes/configure.php and it works now. Thank you.

 

 

I also have added new topic: How do I add <A HREF> link to the ?button_confirm_order? button? It is here: http://www.oscommerce.com/forums/index.php?showtopic=223383

If anybody can help me with this topic, please go to the link specified to the topic. Thanks

Link to comment
Share on other sites

After you rename your admin directory open;

catalog/admin/includes/configure.php and change the lines to reflect the new name

 

define('DIR_WS_ADMIN', '/new_admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/xxxxxx/public_html/new_admin/'); // absolute pate required

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...