Riz Khan on April 24th, 2010

Cpanel now support the optional apache module mod_spelling using which you can have the optoin for your URLs to load even if they have one spelling mistake or there is one capitalization error, which would give non found 404 otherwise as Linux is cases senstive operating system. e.g. If you have below URL : […]

Continue reading about How to use mod spelling on Cpanel server

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 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

You can export the mailman mailing list memebers using below steps : cd /usr/local/cpanel/3rdparty/mailman/bin ./list_members > /home/username/list.txt chown username:username /home/username /list.txt is the name of the mailing list (@ changes to_ )

Continue reading about How To : Export Mailman Mailing lists on Cpanel

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