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

If you want to redirect your visitors every time they catch into an HTTP 404 error, use can use the below code in your .htaccess file : ErrorDocument 404 /errors/notfound.html This redirects the user to /errors/notfound.html whenever a 404 error happen. You can of course redefine also other http errors codes (403, 500… and so […]

Continue reading about How To : Use customized http 404 error page

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