Showing posts with label cpanel. Show all posts
Showing posts with label cpanel. 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, 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.

Sunday, May 1, 2016

Point website to somewhere else, but keep email on cpanel/server

Think I have a domain mydomain.com and my website which is hosted in a cpanel / web server like serverplushost.com . All my email is also running in serverplushost.com.

But now i want to move my website to other server/ dedicated server(like IP 123.124.125.126) but keep email on serverplushost.com as it was before.

1. Login cpanel of  mydomain.com. Click on Advanced DNS zone/ Simple DNS zone.

2. Add A record  name mydomain.com and to the new server IP 123.124.125.126. Also add a CNAME for www.mydomain.com to point mydomain.com. (If there is already have one then edit it).

3. Add A record for webmail.mydomain.com and IP of serverplushost.com (default cpanel IP).
(it's possible that you already have a mail.mydomain.com / webmail.mydomain.com CNAME - delete that and only keep the A record).


So www.mydomain.com and mydomain.com is now pointed to new server IP and webmail.mydomain.com is now pointed to default cpanel hosting.

Sunday, May 18, 2014

View/test website without domain using cpanel

Sometime we need to check/test our website before pointing a domian name (before configuring DNS).
Here is the solution to check site.

1. Login to cpanel (some hosting company use their company url to access cpanel or some company give temporary IP/url to access cpanel.).

2. After login check the  "IP Address"(Most of time you'll find left side in cpanel).

3. Find "Home directory" (Most of time you'll find left side in cpanel).
It'll look like "/home/username of cpanel" and copy the "username"

4. Now in a browser past that IP address(or your hosting company url)/~username
Example   http://123.45.678.90/~username
Or Example  http://yourhostingcompany.com/~username

It should work.try yourself and let me know.
Thank

Total Pageviews