We can check the Php versions and configurations like suphp, phpsuexec or dso on a Cpanel based servers on shell using below command :


/usr/local/cpanel/bin/rebuild_phpconf --current

Sample output :


root@myserver [~]# /usr/local/cpanel/bin/rebuild_phpconf --current
Available handlers:
suphp dso cgi none
DEFAULT PHP: 5
PHP4 SAPI: suphp
PHP5 SAPI: suphp
SUEXEC: enabled
root@myserver [~]#

Tags: , ,

Riz Khan on April 24th, 2010

We can run certain processes like account packaging or account restores with certain cpuwatch value to make sure the server load remains in control and thus normal server operations continue to work during the cpu intensive restore or package processes. This can be achieved by using below command :


/usr/local/cpanel/bin/cpuwatch 10 /scripts/restorepkg USERNAME

We can keep cpuwatch to 10 , or lower or higher value depending on the specificiations of the server and our requirements. As accesptable load values depends on server specificiations specially the number of cores.

Tags: , ,

Riz Khan on April 24th, 2010

The below Application Error is a common error for windows vpss (virtouzzo based ) :


Application Error
The server encountered an internal error or misconfiguration.
Contact your Hosting ProviderPlease report this problem to the technical support.

This is usually caused by VPS hitting its memory paramets , the QOS alerts can be checked from vzmc/pmc to confirm this.

A temporary solution would be restart the the vps to release the memory resorucse and for permenent solution make sure to check how frequent the QOS parameters are hitting their limit and what is causing this high usage and resolve that accordingly.

After restarting vps , make sure to check it in new browser windo

Tags: , ,

If you delete a dns zone file for mistake in Cpanel/WHM and the account has lot of subdomains , then it can get very time consuming to fix this manually , by first adding the zone file and then adding entries for individual subdomains, below trick can fix this :

  • Rename the domain name from WHM to some other name temporairily , which will create the zone file with new name for main domain and will add zone entries for all subdomain as well.
  • Now rename the domain name again back to original , and here you go , with complete zone file back in action.

Tags: , , ,

Riz Khan on April 24th, 2010

The Administrator password for a virtouzzo based Windows VPS can be reset following below steps :

– RDP to the Windows Server/node , i.e. connect to it via remote desktop connection
– Open Windows Command Prompt and issue below command :


vzctl set VEID --userpasswd administrator:NEWPASS --save

Tags: , ,

Riz Khan on April 24th, 2010

Many times email stops to work in Windows Plesk and requires the email to be reconfigured for the problem domain, this can be achieved using below command :


"%plesk_bin%\mchk.exe" --domain --domain-name=DOMAIN.TLD

Tags: , ,