is there a way to change the directory name WHM assigns to new cPanel accounts? Right now, the directories are named by the first eight letters in the domain name. Could I change that somehow?
In WHM panel,Navigate to Account Functions on the left side of the screen and click on Modify an Account. Highlight the domain and click Modify.
Now you can change the username of the domain which will also change the directory name
Related
I am having an issue where http://51.38.68.201/~configsql/ is not pointing to the users public_html folder.
Is there a setting in the WHM panel I need to enable for this to work?
edit: i was under the impression that this was default.
You need to go to WHM >>> Security Center>> Apache mod_userdir Tweak
In the line for you domain click on the checkbox in the "Exclude Protection" column.
Click "Save" at the bottom of de page.
I'm trying to figure out where all WHM settings are stored. I got a task to prepare some template with WHM and cPanel installed but I can't find anywhere any information what is the name of the database where information (with settings) are stored.
I'm precisely looking for the option to turn on email notification in cPHulk about banned user IPs. I know that I can set it up later but I don't want to make any of initial setup in WHM/cPanel.
Is any chance to manually change this settings value ? (either in database or file).
I'm looking as well where are stored values for WHM option: "Show IP Address Usage"
By default, you can only preconfigure WHM using cpanel.config file as described in their docs: https://documentation.cpanel.net/display/1144Docs/The+cpanel.config+File
Unfortunately, this only covers 'Tweak Settings' section, so you can't preconfigure cPHulk using it. One of the alternatives would be to use WHM API and fire it after the server is installed. With this API you have way more options, e.g. cPHulk controls are there: https://documentation.cpanel.net/display/SDK/WHM+API+1+Functions+-+load_cphulk_config
Hello I have root access to my server through whm and I am trying to change the folder for one of the account domains. I researched and I think I have to rearrange the account so I went to rearrange the account section for that domain but it is not editable at all, how do I change the folder?
I'm not sure I quite understand your request but in order to do a rearrange of a cPanel account you need to do that from the WHM interface. In WHM you got to List Accounts, extend the cPanel account you want to re-arrange using the [+] sign and click on Change Disk Partition then select the new home partition for that account (could be /home, /home2 etc).
I am currently working on a CMS type of site where users can create websites on my server.
I want to be able to create subdomains for the user's website for them to see the preview.
The next step would be for users to be able to point their domain name to my server, and when users go to the domain it would go to their own designated folder on my server.
How would I go about doing this automatically with php, I have been looking for solutions with no avail.
I currently have a Virtual Server with hostgator. Please advise, or point me in the right direction. Any solutions are welcome as well, I am pretty much stuck at this point.
Thank you very much.
EDIT
For example, if my domain is www.mydomain.com, when a user makes an account, the subdomain username.mydomain.com is created. Later down the line, if the user buys the domain name www.userdomain.com, I want to make it so that if www.userdomain.com is entered, it shows what is on www.mydomain.com/userdomain. The URL should still show www.userdomain.com
The answer is depends on which web server you are using ?(apache / nginx or any other)
You need to have separate directory for each sub domain you created
In your virtual host configuration you need to match the host name and get the subdomain as a parameter to set the root directory for your host name.
CNAME is also possible but if you can tell your web server there is a possibility for detailed answer.
I have a website with some domain name like myexample.com. I want to add another name to my domain, like abc.myexample.com.
If a user accesses the site using either name, it should load with the same content. Using the server team's help I mapped the same ip to a new domain name. But now how do I root the myexample.com path to abc.myexample.com to show same content? How can I do through it cpanel or using putty?