Jump to content

Moving /admin/ to another vhost - possible?

Recommended Posts



In an effort to increase security of my WHMCS install with the recent hack, I had the idea of putting the admin area in a seperate virtual host listening on another port (but on the same server).


I don't want to trash my live install trying this and I don't have a second license for a testing type environment so I thought I'd ask: is this possible? And if it is, what steps do I have to take to implement this?

Link to comment
Share on other sites

Just to clarify I'm thinking of something like:


  ServerName www.example.com
  DocumentRoot /var/www/whmcs-public/

  ServerName admin.example.com
  DocumentRoot /var/www/whmcs-admin/

Link to comment
Share on other sites

There's basically two implementation questions for me and whether the license will see that as one contiguous install is one of them. The other would be how to change the link to admin area if at all possible.



It isnt possible, well technically it is but you would be wasting your time doing it, your would need to ensure that all of the files were linking relative to the whmcs installation, by this i mean that every included file would need to be using the installations loacation of files.


If you are hell bent on doing something like this, move the entire installation to the new vhost. then create your website to use the whmcs api, it is documented on usage of the api.


In this manner your clients will see your website only, and the management system on your website will be entirely your own but will link into whmcs to make the changes required.


Your clients need never know you use whmcs at all if this is more to your liking and the admin situation will be solved as you will just link to the vhost.



This will require a license reissue but you will still need only one license.


Otherwise you will need two licenses. 1 for the initial installation which you will just rip out the admin folder and not have it., and one for the second instalation which will have your admin area and a htaccess lock out on any directory but your admin directory. they can both use the same database.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated