bubbasheeko Posted December 21, 2008 Share Posted December 21, 2008 Now when I login as the client from the client details in admin and click on the link to go back to admin it tries to pull the page using the original location. IE. the admin directory was /admin/ now it is, say, /testadmin/. When I click on the link at the top right when logged in as the client to go back to the admin it brings me back to http://mydomain.com/admin/ instead of the correct path http://mydomain.com/testadmin/ Any ideas how to fix it? 0 Quote Link to comment Share on other sites More sharing options...
bear Posted December 21, 2008 Share Posted December 21, 2008 Did you also change that in the configuration file? 0 Quote Link to comment Share on other sites More sharing options...
bubbasheeko Posted December 21, 2008 Author Share Posted December 21, 2008 There is no spot to change that in the configuration file. The configuration file only contains the database information, hash info for the cc, my timezone setting and the compile directory. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted December 21, 2008 Share Posted December 21, 2008 Sorry...you need to add it. $customadminpath = "my_renamed_folder_name"; 0 Quote Link to comment Share on other sites More sharing options...
bubbasheeko Posted December 21, 2008 Author Share Posted December 21, 2008 That's better All is well and resolved Thanks bear! 0 Quote Link to comment Share on other sites More sharing options...
Gears Posted December 21, 2008 Share Posted December 21, 2008 Verbatim from the manual: 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"; Replace "myadminname" above with the new name you just gave to your admin folder. Also remember to reissue your whmcs license after doing this, otherwise, you will be unable to login to your admin area. To do this, login to your client area at http://www.whmcs.com/clients, click on 'My Licenses', click on the edit icon next to your licence and then on the 'Reissue License' button. Finally, if you have already created a cron job, or one has been created for you, you will need to update the path on the cron as well. Example: php -q /home/mylogin/public_html/secure/myadminname/cron.php 0 Quote Link to comment Share on other sites More sharing options...
bubbasheeko Posted December 21, 2008 Author Share Posted December 21, 2008 Thanks Ace, I had completed everything except to add that line in the configuration file. Thanks for the verbatim from the manual! 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.