Re: Change admin folder name
Posted: Fri Sep 23, 2011 11:04 am
thanx for answ i love this community!
hm, i will actually try to use both methods...
hm, i will actually try to use both methods...
OpenCart Community Forum - Discuss shopping cart and e-commerce solutions.
https://forum.opencart.com/
This doesn't work - I get an error (it appears in the front area skin) "The page you requested cannot be found!"iHandler wrote:I think you can set "Password Protected" area for the admin login. You can do it in cPanel.
1st Login - Password Protected area
*Username & Password can be saved so next time you entry the site.
2nd Login - http://www.yoursite.com/store/admin/index.php
Personally, I like this way since you don't need to rename the original folder, even if you rename to another folder, the "hacker" can use "scan script" to scan which one the admin folder is.
This works,babaloo wrote:to change the admin name go to config.php in admin and change the name "admin":
// HTTP
define('HTTP_SERVER', 'http://localhost/upload129/HERE/');
define('HTTP_CATALOG', 'http://localhost/upload129/');
define('HTTP_IMAGE', 'http://localhost/upload129/image/');
// HTTPS
define('HTTPS_SERVER', '');
define('HTTPS_IMAGE', '');
// DIR
define('DIR_APPLICATION', 'C:\wamp\www\upload129/HERE/');
define('DIR_SYSTEM', 'C:\wamp\www\upload129/system/');
define('DIR_DATABASE', 'C:\wamp\www\upload129/system/database/');
define('DIR_LANGUAGE', 'C:\wamp\www\upload129/HERE/language/');
define('DIR_TEMPLATE', 'C:\wamp\www\upload129/HERE/view/template/');
define('DIR_CONFIG', 'C:\wamp\www\upload129/system/config/');
define('DIR_IMAGE', 'C:\wamp\www\upload129/image/');
define('DIR_CACHE', 'C:\wamp\www\upload129/cache/');
define('DIR_DOWNLOAD', 'C:\wamp\www\upload129/download/');
define('DIR_CATALOG', 'C:\wamp\www\upload129/catalog/');
and if you want you can still change the .htaccess
Just a heads up, it is no longer necessary to edit each of your vQmod files to replace all occurrences of 'admin'.thysm00 wrote:Another quick tip, if you have vQmod extensions, don't forget to change all of the occurences of admin to the new name otherwise they won't show up.
Code: Select all
// START REPLACES //
$replaces[] = array('~^admin\b~', 'admin123');
// END REPLACES //
I don't see any mention of the admin folder in either config file. Am I missing something or is this documentation simply incorrect?Changing the name of the admin folder to another name is important for improving an online shop's security. The config.php file needs to be edited to indicate the correct file path and location.
And what about these 3 (admin/config.php):cdpritchard wrote:I'm new to OpenCart and saw in the documentation to change the admin folder name ( http://docs.opencart.com/display/openca ... +interface ). It states:
I don't see any mention of the admin folder in either config file. Am I missing something or is this documentation simply incorrect?Changing the name of the admin folder to another name is important for improving an online shop's security. The config.php file needs to be edited to indicate the correct file path and location.
Code: Select all
define('HTTP_SERVER', 'http://yourshop/admin/');
define('HTTP_CATALOG', 'http://yourshop');
// HTTPS
define('HTTPS_SERVER', 'http://yourshop/admin/');
define('HTTPS_CATALOG', 'http://yourshop');
// DIR
define('DIR_APPLICATION', 'some/root/admin/');
How can we create an isolated fake version of the original admin log-in page with crippled functionality as described here?As a extra tip after that, it is good to make new catalog, called admin (empty), and put there 2 files:
.htaccess
Code: Select all
AuthUserFile /home/user/opencart/admin/.htpasswd
AuthGroupFile /dev/null
AuthName "Username:"
AuthType Basic
<limit GET POST>
require valid-user
</limit>
And second,
.htpasswd (empty)
Code: Select all
Nice litle suprise for hacker. While he try hack empty folder ur real admin catalog is by still safe, bicouse he dont looking for it ;-]
Code: Select all
/home/store/public_html/Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/store/public_html/StoreManager/config.php:1) in /home/store/public_html/system/library/session.php on line 21Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/store/public_html/StoreManager/config.php:1) in /home/store/public_html/system/library/session.php on line 21
Code: Select all
/home/store/public_html/Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/store/public_html/StoreManager/config.php:1) in /home/store/public_html/system/library/session.php on line 21Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/store/public_html/StoreManager/config.php:1) in /home/store/public_html/system/library/session.php on line 21Warning: Cannot modify header information - headers already sent by (output started at /home/store/public_html/StoreManager/config.php:1) in /home/store/public_html/system/library/response.php on line 12
As it reads, you have made an error while storing the config.php, because it sends something ..sweet.p wrote:Hi
I changed my admin folder and the config file using the instructions but I get the errors:
..