smartctl is a nice tool to check your hard disk health – it will let you know how many hours your disk have been running , the hard disk serial number, temperature … by default smartctl is not installed by default, it’s in smartmontools package. To make it ready to use, you must install smartmontools apt-get install smartmontools After you install smartmontools you can run this command to check your hard disk health: smartctl –xall /dev/sda Here is a sample: smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-28-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Toshiba 3.5″Read More →

The Diamond operator is almost exclusively used in a while-loop. It allows us to iterate over the rows in all the files given on the command line. Diamond – using $_, the default variable We can make the above example even more compact by remembering that certain operation in Perl will use $_, the default variable of Perl, if no explicit variable is given. use strict; use warnings; while (<>) { print if /perl/; }  Read More →

Check this out: https://www.cloudflare.com/technical-resources/#mod_cloudflare Option 1: Installation from Packages Download the appropriate package to your web server and install it using your operating system’s ‘rpm’ or ‘dkpg’ commands. For RedHat / CentOS / CloudLinux: # yum install glibc.i686 # rpm -i mod_cloudflare-elX.latest.rpm For Debian / Ubuntu: # dpkg -i mod_cloudflare-XXXXX.latest.deb RHEL/CentOS/CloudLinux RHEL/CentOS/CloudLinux 7 (64-bit) RHEL/CentOS/CloudLinux 6 (64-bit) Debian Debian 8 (64-bit) Debian 7 (64-bit) Ubuntu Ubuntu 16.04 (64-bit) Ubuntu 15.10 (64-bit) Ubuntu 15.04 (64-bit)Ubuntu 14.04 (64-bit) Ubuntu 12.04 (64-bit)Read More →

AH00526: Syntax error on line 55 of /etc/apache2/apache2.conf: Invalid command ‘LockFile’, perhaps misspelled or defined by a module not included in the server configuration Action ‘start’ failed. Solutions: Replacing this line LockFile ${APACHE_LOCK_DIR}/accept.lock with this one Mutex file:${APACHE_LOCK_DIR} default in /etc/apache2/apache2.conf solved the problem.Read More →

AH00526: Syntax error on line 5 of /etc/apache2/sites-enabled/awstats.conf: Either all Options must start with + or -, or no Option may. Action ‘start’ failed. The Apache error log may have more information. Solution: Add “+” in front of the options, for example: Options ExecCGI -MultiViews +SymLinksIfOwnerMatch   ==> Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch  Read More →