Linux

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

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

You can tar or untar folders using below commands, and additional you can zipped them too : To Compress a folder: tar –czvf foldername.tar.gz foldername To Uncompress a tar file: tar –xzvf foldername.tar.gz To View files within tar.gz: tar –tzvf foldername.tar.gz To Create tar only: tar -cvf foldername.tar foldername To Extract tar only: tar -xvf […]

Continue reading about How To : tar untar files/folders

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

Riz Khan on April 24th, 2010

The plesk logs are located at below path : /usr/local/psa/var/log/maillog So you can monitor the logs using below command : tail -f /usr/local/psa/var/log/maillog

Continue reading about How To : Check and monitor the Plesk email logs

Riz Khan on April 24th, 2010

On Virtouzzo VPSs you can calcualte the Guaranted, Buestable and other memory usage using below formulae : Guaranteed memory = barrier of vmguarpages / 1024 * 4 Burstable memory = privvmpages / 1024 x 4 Current Memory Usage = physpages held value /1024 * 4 Current Usage (RAM + SWAP) = oomguarpages held value /1024 […]

Continue reading about How To : Calculate memory on Virtouzzo or OpenVZ VPSs