Apache is using to much memory

I found this tiny piece of code that can present my server memory consumption, and present it with 1 second interval It will look something like this. I found this link to add swap space […]

Find large files in Unix

As a Linux administrator, you must periodically check which files and folders are consuming more disk space. It is very necessary to find the unnecessary junks and free up them from your hard disk. This brief […]

How to setup Linux disc alert

Log into your console at create a new file (ie. diskAlert.sh). Make it executable: chmod +x diskAlert.sh Now edit it and enter the following code: The above code will send an email alert when it […]

How To Set Up SSH Keys

About SSH Keys SSH keys provide a more secure way of logging into a virtual private server with SSH than using a password alone. While a password can eventually be cracked with a brute force […]

Setting Up Pure-FTPd in Ubuntu

Setting Up Pure-FTPd in Ubuntu vsFTPd, ProFTPD and PureFTPd are great choices for an FTP server that all work well. Each has a GUI applications available to help manage settings. However PureFTPd is lightweight, supports MLST/MLSD, supports virtual folders […]

How To List and Delete Iptables Firewall Rules

How To List and Delete Iptables Firewall Rules Introduction Iptables is a firewall that plays an essential role in network security for most Linux systems. While many iptables tutorials will teach you how to create […]

Unban with fail2ban

With Fail2Ban before v0.8.8: fail2ban-client get YOURJAILNAMEHERE actionunban IPADDRESSHERE With Fail2Ban v0.8.8 and later: fail2ban-client set YOURJAILNAMEHERE unbanip IPADDRESSHERE The hard part is finding the right jail: Use iptables -L -n to find the rule […]

UFW on linux

securing the linux server using UFW is so simple, just add a few basic rules and it will do the rest with ip tables. a good thing is to secure SSH and this can be […]

Cleanup boot folder on linux

Command line method: First check your kernel version, so you won’t delete the in-use kernel image, running: uname -r Now run this command for a list of installed kernels: dpkg –list ‘linux-image*’ and delete the […]

Linux chmod for www sites

To recursively give directories read&execute privileges: find /path/to/base/dir -type d -exec chmod 755 {} + To recursively give files read privileges: find /path/to/base/dir -type f -exec chmod 644 {} + Or, if there are many […]