Set stricter PHP settings to secure joomla and wordpress installations

If you run a joomla or wordpress installation with mod_php, the following settings in the vhost configuration file or the "Apache directives" field in ISPConfig can be used to set stricter securitypolicys. This helps limit the impact of a possible hack to this websiteand protect the other sites on the server. php_admin_value disable_functions "show_source system ... Read more

Configure fail2ban to use route instead of iptables to block connections

Fail2ban uses iptables by default to block incoming connections when they exceed the max.  login retries. The iptables rules used by fail2ban might conflict with the firewall rules, so it might be necessary to reconfigure fail2ban to use the route command for blocking incoming connections. To reconfigure fail2ban for using the route command instead of ... Read more

Webalizer stats only showing 1 or 2 days?

If webalizer statistics of your website are only showing the last 1 or two days instead of all days since the website has been created, you have to activate incremental processing in the webalizer configuration file (/etc/webalizer.conf or /etc/webalizer/webalizer.conf depending on the Linux distribution). vi /etc/webalizer/webalizer.conf Change the line: # Incremental     yes to: Incremental     yes

Windows starts slower after defragmenting the harddisk

If your windows installation starts slower after you defragmeted the harddisk, it might be nescessary to run the defragmentation utility on the boot files too which were normally skipped when running the defrag utility. To defragment the boot files, click on "Start" > "Run..." and then enter the command "defrag -b :c":

Linux: Get detailed information about server hardware and partitions on the shell

To get detailed information on the CPU, use this command: cat /proc/cpuinfo The output will look similar to this: cat /proc/cpuinfo processor       : 0 vendor_id       : AuthenticAMD cpu family      : 15 model           : 107 model name      : AMD Athlon(tm) 64 X2 Dual Core Processor 5600+ stepping        : 2 cpu MHz         : 2900.171 cache size      : ... Read more

Linux: How to view log files on the shell?

Many Linux servers are administered on the commandline e.g. with an SSH connection. In the following article, I will explain several shell commands that make it easy to view logfiles. These commands will work on all major Linux distributions inc. CentOS, Debian, Fedora and Ubuntu. Get the last N lines of a log file The ... Read more