Linux

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

Riz Khan on April 24th, 2010

We can find the IP delegation for any IP using below command , i.e. using this command we can find which Nameserves are responsible for this IP and e.g. should provide the Reverse DNS for that IP : dig +trace -x 22.33.44.55 Where 22.33.44.55 is the IP for which we want to find the delegation, […]

Continue reading about How To : Find the delegation for an IP

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