When sending emails from scripts, not setting proper from address can give two problems, once is email ending up in spam/junk box of recieving email server and second is that the return path would be user@server.hostname.com. To avoid this and to setup return path using php mail() function you need to use the fifth parameter […]

Continue reading about How To : Use 5th parameter in php mail() function on Cpanel server

Riz Khan on April 24th, 2010

If you happen to mess up your ssh configuration some how and lock yourself out of ssh then you can reset the ssh config from Cpanel using below method : Login to WHM on non secure port i.e 2086 And then use below URL to reset the config : http://YOUR.SERVER.IP:2086/scripts2/doautofixer?autofix=safesshrestart If it do not help […]

Continue reading about How To : Reset ssh configuration from WHM/Cpanel Gui

Riz Khan on April 24th, 2010

First select the Mysql version you want to install from WHM > Tweak Settings Then login via shell and issue below command : /scripts/mysqlup –force Once the install is complete , check mysql version and then compile php/apache to make it load new libraries by using below : /scripts/easyapache (Select modules and other settings according […]

Continue reading about How To : Upgrade Mysql On Cpanel Server

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 [~]#

Continue reading about How To : Check php configuration on shell for Cpanel server

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 […]

Continue reading about How To : Run processes with cpuwatch on CPanel

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 […]

Continue reading about How To : Fix ” DNS zone deleted by mistake “ on cPanel servers