Showing posts with label whm. Show all posts
Showing posts with label whm. Show all posts

Tuesday, April 18, 2017

Website Document Root outside public_html for addon/sub domains

When adding an Addon OR Sub domain, the default DocumentRoot on cPanel servers is /home/user/public_html/addon.com.

What if you want to set the DocumentRoot outside public_html ? You can when adding Addon OR sub domain. But, the system WHM won’t allow it. To enable this feature, you need to contact your web hosting provider. Not all web hosts provide this feature. If you have a VPS hosting OR dedicated server, login to your server’s WHM as root. Access option Server Configuration >> Tweak Settings. Look for Restrict document roots to public_html 


This setting prevents the creation of addon domains and subdomains outside of a cPanel user's primary domain's document root (the public_html directory within the user's /home directory).

 For example, if you enable this setting and then create the example.com addon domain, the system creates the /home/username/public_html/example.com directory rather than the /home/username/example.com directory.

This setting defaults to On. Turn it off. Now you can make subdomain's document root outside of public_html folder.

Wednesday, April 5, 2017

Site show suspended page but not in WHM suspended list

I've a website which was hosted another server and the site was suspended. After requesting that hosting provider the site was unsuspend and then i transefer the site using whm transfer tool. But after transfer the site was still showing suspended.

I've checked in WHM but in there the site was not in suspended list.

1. First please try re-suspending and then unsuspend the account through WHM. It should be under the "Account Functions"  tab submenu Manage Account Suspension.

2. If the first method doesn't working. then login WHM-->Account Information-->List Accounts-->search the account and click on cpanel icon to login cpanel of that site.
Then open the file manager and open the folder "cache" and delete all the cache files.

Now the site works.

Thursday, January 26, 2017

Creating multiple name server

If we want to create name server under www.esteemcorporation.com to different server but esteem it self hosted another server.


Example i need to use


This 2 name server for a server IP 00.11.22.33.44


Ns1.esteemcorporation.com
Ns2.esteemcorporation.com


This 2 for 55.66.77.88.99
Ns5.esteemcorporation.com
Ns6.esteemcorporation.com


But esteemcorporation.com is hosted another server.


Now create child name server from esteemcorporation.com domain panel and assign IP



Now go to WHM/Cpanel of esteemcorporation.com and find DNS zone edit option. Add A record to ns5.esteemcorporation.com and assign IP.


Now we can use NS5.esteemcorporation.com   as a nameserver which pointed to 55.66.77.88 server.

Thursday, August 18, 2016

Disk Quota in WHM/cpanel is not working properly

In my VPS server Disk Quota in WHM/cpanel is not working properly. Every account's disk quota is showing unlimited. There is a easily solution if you have SSH access

You can fix this issue by yourself.
You need to login SSH and just copy and past this command and press enter
"/scripts/fixquotas"

Then you'll get this following notice
" The '/'' partition uses the XFS® filesystem. You must reboot the server to enable quotas."

Then reboot the server to active this feature.

Total Pageviews