disenioweb Posted January 28, 2007 Share Posted January 28, 2007 What steps should we do if we want to rename the folder admin ( for security reasons ) and have the script running well ? example: http://www.mysite.com/whmcs_dir/admin_hsggs/ Thanks 0 Quote Link to comment Share on other sites More sharing options...
eger Posted January 29, 2007 Share Posted January 29, 2007 According to this thread you should just be able to rename the admin folder to whatever you like: http://www.whmcs.com/forums/viewtopic.php?t=1880 I just tried it myself and seems to work with no side affects. The only thing I can think of else to do is update your cronjob to use the new admin dir (/<fullpath>/admin/cron.php changed to /<fullpath>/<newdir>/cron.php). 0 Quote Link to comment Share on other sites More sharing options...
disenioweb Posted January 29, 2007 Author Share Posted January 29, 2007 Very thanks eger 0 Quote Link to comment Share on other sites More sharing options...
eger Posted January 31, 2007 Share Posted January 31, 2007 Another step that looks like needing to be changed is the license on WHMCS. My license just said invalid and when looking more closely at the license in WHMCS client area it has a valid folder name for the license. I suspect the license needs to be re-issued after the folder is changed. After I re-issued my license and changed the license in WHMCS it is working again. Guess I will have to wait a couple days to see if it stays this way. 0 Quote Link to comment Share on other sites More sharing options...
bitwise Posted April 2, 2008 Share Posted April 2, 2008 I followed the directions in the help Change your WHMCS Admin Folder name Malicious users who visit your site and recognise a WHMCS install will know that they can try logging into your admin area via the admin folder. To protect against this, you can rename the admin folder name to any name you like. You cannot move the folder - only rename it. You can then tell WHMCS what the name of that folder is for the links in admin notification emails by adding the following line to your configuration.php file: $customadminpath = "myadminname"; But now only the header, top bar menu and side menu load! I changed it back didn't fix the problem!!! 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted April 2, 2008 Share Posted April 2, 2008 I followed the directions in the help But now only the header, top bar menu and side menu load! I changed it back didn't fix the problem!!! Make sure you have the path set correctly: $customadminpath = "/home/user/public_html/whmcs/newadminfolder/"; 0 Quote Link to comment Share on other sites More sharing options...
bitwise Posted April 2, 2008 Share Posted April 2, 2008 thanks for the info. The help example needs updated to reflect exactly what is needed. It does show a full path for the moved attachments directory but I didn't put 2 and 2 together. This all said...my admin side is still not working. I changed everything back to /admin and commented out the $customadminpath line in configuration.php What's up with that? 0 Quote Link to comment Share on other sites More sharing options...
Nick Posted April 2, 2008 Share Posted April 2, 2008 $customadminpath does not need to be a full path, that would in fact break it. As far as I'm aware all this setting changes is the link that is emailed out to admins at the bottom of a 'new support ticket opened' email. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Developer WHMCS Andrew Posted April 2, 2008 WHMCS Developer Share Posted April 2, 2008 $customadminpath does not need to be a full path, that would in fact break it. As far as I'm aware all this setting changes is the link that is emailed out to admins at the bottom of a 'new support ticket opened' email. and the return to Admin in the client area when logged in as admin ----- Bitwise. Try clearing your templates_c 0 Quote Link to comment Share on other sites More sharing options...
bitwise Posted April 2, 2008 Share Posted April 2, 2008 Bitwise. Try clearing your templates_c Ahh...that would make sense. This also gives me an idea for an add-on. A button to clear the templates_c directory. 0 Quote Link to comment Share on other sites More sharing options...
herdboy Posted April 2, 2008 Share Posted April 2, 2008 Hi Thanks for the tips all. I have renamed the admin folder and added $customadminpath = "myadminname"; to the configuartion.php folder. Do I need to change the cron job command too ? Currently it is set to php -q /home/XXXXXXXX/public_html/billing/clients/admin/cron.php Thanks 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Developer WHMCS Andrew Posted April 2, 2008 WHMCS Developer Share Posted April 2, 2008 yes you do. Change admin to whatever your new admin dir is 0 Quote Link to comment Share on other sites More sharing options...
bitwise Posted April 3, 2008 Share Posted April 3, 2008 Still not working! Do I need to re-issue my license? I am hoping that will fix the problem?! What I don't understand is why my site wouldn't work even when I renamed my /admin directory back to /admin? 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted April 3, 2008 Share Posted April 3, 2008 Yes you would need to reissue the license. 0 Quote Link to comment Share on other sites More sharing options...
Zorro67 Posted April 3, 2008 Share Posted April 3, 2008 I have a have tried all possible combinations, without success. My host (& leasing licence) provider assures me they have tried to update the licence, but with no effect. This was as a result of implementing the fake admin page mod. the reason for using this mod still exist, so I would not like to remove it. Any other suggestions? 0 Quote Link to comment Share on other sites More sharing options...
herdboy Posted April 3, 2008 Share Posted April 3, 2008 Hi @Andrew I change the cron job commande to reflect the new admin folder name as you advised and want to report that it works fine. @Zorro67 What is your current settings for the $customadminpath ? 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted April 3, 2008 Share Posted April 3, 2008 The link to the new admin folder must be updated also with the license, so the person that is providing your license should be able to apply the new admin folder to the license. Submit a support ticket with Matt and see what he says. 0 Quote Link to comment Share on other sites More sharing options...
bitwise Posted April 3, 2008 Share Posted April 3, 2008 This was as a result of implementing the fake admin page mod. the reason for using this mod still exist, so I would not like to remove it. This must be my problem. I also want to keep the fake admin. Waiting on my provider to re-issue my license. 0 Quote Link to comment Share on other sites More sharing options...
Zorro67 Posted April 3, 2008 Share Posted April 3, 2008 Same resolution. came down to my reseller re-issuing the correct licence number. Issue resolved. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.