NOTE: no need to download the zip file. it just contains a copy of this description inside.
This is a solution for securing your site with .htaccess and .htpasswd_oscommerce when using resellerspanel.com and supremecenter23.com hosting.
when installing oscommerce 2.3.1 with resellerspanel.com and supremecenter23.com hosting, the provided location given is
/home/www/domain.com/
however if you change the location to the full path,
/home/users2/domain/www/domain.com/admin/
than oscommerce wont work anymore. Here's the solution which worked for me.
My configure.php files used the provided folder as mentioned above. (/home/www/domain.com/).
The site works correctly in this format, however when someone wants to secure their admin directory using .htaccess via the "Administrators page" they get a internal error 500.
So to solve this issue, heres what i did.
First, in /admin/includes/configure.php
find:
define('DIR_FS_ADMIN', '/home/www/domain.com/admin/');
replace with:
define('DIR_FS_ADMIN_FULL', '/home/users2/domain/www/domain.com/admin/');
next in the file /admin/administrators.php
Find (approx line 21):
'AuthUserFile ' . DIR_FS_ADMIN . '.htpasswd_oscommerce',
replaced with:
'AuthUserFile ' . DIR_FS_ADMIN_FULL . '.htpasswd_oscommerce',
and now when it writes to the .htaccess, it uses the full directory and leaves the configure.php files the way it should be.
hope this was helpful for someone!
NOTE: no need to download the zip file. it just contains a copy of this description inside.
More...





LinkBack URL
About LinkBacks








Reply With Quote
Bookmarks