Linux

Riz Khan on April 27th, 2010

Many times swap is not setup according to the requirement during the server setup/OS install, and once the server has been inducted in production its not possible to reinstall the OS. Or simply the swap size requirement can increase over time on a server. In such scenario we can add swap on the server using […]

Continue reading about How To : Add swap on server using swap file

Riz Khan on April 27th, 2010

Perl is normally installed without thread support, but you may need to install threaded perl on your server to fulfill requirement for any application or for perl based software development. This require additional -Dusethreads parameter used during the configuration step of installation. Below are the exact steps that you can follow to install threaded perl […]

Continue reading about How To : Install threaded Perl

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 : http://yourdomain.com/yourpage.html […]

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

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

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