Install clamav on Ubuntu
clamav is a free open source antivirus. To install clamav on Ubuntu/Debian, run To update ClamAV virus definitions, run To
Allow SSH root login
To allow SSH login as user root, edit file Find Replace with restart sshd.
Adding a group in Linux with addgroup
addgroup linux commanhd allow you to create a group. Example Add a system group (normally group id below 500, run
PCI COMPLIANCE SSH Diffie-Hellman Modulus
When doing PCI COMPLIANCE scan got error related to SSH Diffie-Hellman Modulus
locate command on Linux
locate command find files on a linux server. To install locate, run On CentOS On Debian/Ubuntu locate searches through a
ack better grep for programmers
ack is a tool like grep optimized for programmers. ack show the matched files name only On Debian/Ubuntu, you can
log
Logging Linux Commands for all users Monitor Apache site traffic with Apachetop Find IP with Most Access from Apache Log
Monitor Apache site traffic with Apachetop
apachetop is a command line tool like top, that shows traffic on a web site. It used apache access log
Resize a linux file system with resize2fs
On cloud servers, once you upgrade disk, you will need to resize the filesystem. On Linux ext4 file system, you
Plesk move vhosts folder
Plesk use /var/www/vhosts folder to store sites. On some servers this folder will be on smaller partition. Say you have
Bandwidth Limit on rsync
I wanted to transfer some files between two computers, but don’t want to use all bandwidth available on the network
Redirect a site to HTTPS using PHP
This PHP script will redirect web site visitor to HTTPS (SSL) url. You can add this in your index.php of