osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

default.php help

This is a discussion on default.php help within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; I have just installed oscommerce and am going thru the security steps. One of the steps says: Next, add 'default.php' ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Installation Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-30-2002, 06:46 PM
New Member
 
Join Date: Dec 2002
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
talon
Default default.php help

I have just installed oscommerce and am going thru the security steps. One of the steps says:
Quote:
Next, add 'default.php' to your directory index listing in the httpd.conf file for apache.
Like most people I go through a hosting service and do not have root access. It says I can set this using .htaccess. Please provide details on how to go about using this method.[/quote]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 12-30-2002, 08:42 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,071
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Read this:

http://oscdox.com/modules.php?op=mod...tid=118#pid618
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 12-31-2002, 04:49 PM
New Member
 
Join Date: Dec 2002
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
talon
Default

Ok so here's my uneducated guess of how to write this file.
Code:
AuthName "My Super Secure Directory"
AuthType Basic
AuthUserFile /etc/httpd/conf/htpass.conf
require valid-user
DirectoryIndex default.php default.html default.htm index.html index.htm index.php
Is that right? If not could someone post the code. I was aware there is a way to do it, but have no experience writing these files.

Also not sure what the currect path in that file should be.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 01-01-2003, 12:09 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,071
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Ok, the path to AuthUserFile can be wherever you want it, usually in your home directory on shared hosting, above your web accessable directories. Looks good, this is what I use:

Code:
AuthType Basic
AuthName "Locked Area"
AuthUserFile /home/youraccount/.htpasswds/admin/passwd
require valid-user
DirectoryIndex default.php default.html default.htm index.html index.htm index.php
Sometimes your host will have a .htaccess script that you can use right from your control panel. Makes the whole process easy (at least the password protection) You will also need to create the .htpasswds file. This contains encrypted user data.

You can use this site to auto generate your files:
http://www.kelv.net/programming/htaccess/

Makes it really easy!
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 01-22-2003, 07:30 PM
New Member
 
Join Date: Dec 2002
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
talon
Default

But doesn't that make the directory password protected? I'm a bit confused on how to do this where the directory will not require a password or login, but will recognise default.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 01-22-2003, 08:51 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,071
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Well, if you dont want password protection, leave all the password code out. Make your .htaccess with only this line:

Quote:
DirectoryIndex default.php default.html default.htm index.html index.htm
You don't need anything else in it.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 01-23-2003, 09:03 AM
New Member
 
Join Date: Dec 2002
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
talon
Default

Thanx. I ended up just changing the filename from default.php to index.php. Seems to work. Please let me know if anyone has had problems from doing that.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 01-23-2003, 05:14 PM
New Member
 
Join Date: Dec 2002
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
DenverDave
Default

I think when I tried changing the file to index.php that some of the links did not work. I ended up changing it back to default.php and calling it by filename from my menu choice (OsCommerce is not the home page on my site.). Maybe earlier version issue or I did not follow it through properly, but I changed back to default.php and moved on.

Dave
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Default country USA kmazumdar osCMax v1.7 Installation 2 09-12-2005 02:38 AM
default everything americamba osCommerce 2.2 Modification Help 2 01-01-2004 11:19 AM
Images in Default.php? pwog osCommerce 2.2 Modification Help 4 09-11-2003 06:48 PM
Default.php or index.php? Dr_Evil osCommerce 2.2 Installation Help 2 04-17-2003 05:56 PM
default.php Antonio osCommerce 2.2 Installation Help 1 01-21-2003 04:24 PM


All times are GMT -8. The time now is 06:26 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax