Navigation

WHM/Cpanel running on OpenVZ VPS does not show the user quota correctly.

[root@server ~]# quotacheck -agiuv
quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.

Make sure that the second level quota support is enabled.

To enable second level quota support from the Host OS:
# vzctl set --quotaugidlimit 500 --save
# vzctl restart

How to fix ssh timeout problems

If you use ssh a lot, you may have noticed that your ssh session times out and you’re logged out every once in a while.

For example while you were using SecureCRT, you got:

The semaphore timeout period has expired

The solution is to send a protocol NO-OP every few seconds to keep the connection alive.
Usually SSH clients have this feature disabled and you can enable it.
SecureCRT has this feature on:
Right click on host -> Properties
or
Right click on the host tab -> Session Options

Increase the size of tmpDSK (/tmp) in cPanel

You may have noticed that cPanel’s default partition size for /tmp is
512 MB, which in some cases can be way too small. And sometime you probably get this report email:

Drive Critical: /usr/tmpDSK (/tmp) is 100% full

Although cPanel automatically deletes the unused files, the /tmp would be getting full very quickly on a busy server.

The /tmp partition on cPanel servers, assuming it was the one cPanel created and not one you did yourself, is a file-based partition that can easily be resized.