Logwatch How-To for CentOS or Red Hat | Logwatch is the classic log file email utility that emails a daily status of activity from Linux logs. On CentOS, the default install of logwatch does not have many fancy features enabled. I’ll show you how to configure logwatch! First, install logwatch: $ sudo yum install logwatch Next, navigate to the logwatch services directory which
scottlinux.com – Powered by Linode and your referrals!
scottlinux.com – Powered by Linode and your referrals! | Thank you to all who have used my referral code or link to sign up for Linode. Right now scottlinux.com has generated 11 completed referrals and counting. Rock on!
Use OpenDNS for Free Content Filtering
Use OpenDNS for Free Content Filtering | If you have little kids at home, or need to setup content filtering for schools, OpenDNS is free and works great. I’ll show you how it works! First, change the DNS servers in your router to 208.67.222.222 and 208.67.220.220. Next, go to opendns.com and create a free account. Once inside your account, you will need
Log POST data in Apache
Log POST data in Apache | Apache can log all POST data for troubleshooting purposes. I’ll show you how to set this up! First you will need to enabled mod_dumpio. On Ubuntu / Debian enable the module: $ sudo a2enmod dump_io Then add the following and restart apache: $ sudo nano /etc/apache2/apache2.conf LogLevel debug DumpIOInput On DumpIOOutput On DumpIOLogLevel debug
Speed Up Website in Apache by Enabling Compression and Leveraging Browser Caching
Speed Up Website in Apache by Enabling Compression and Leveraging Browser Caching | Google has a cool website to inspect your website for speed improvements. Two of the main areas are leveraging browser caching as well as enabling compression for your website. I’ll show you how to set this up in Apache! Firstly, here is that website. Put in your site for a quick review: https://developers.google.com/speed/pagespeed/insights If you
Configure Apache SSL Cipher Suites for Best Security
Configure Apache SSL Cipher Suites for Best Security | Apache can be configured to use various SSL Cipher suites. For best security, set Apache SSL settings to use only the highest grade security ciphers. It has become common practice to also set the server to prefer an RC4-SHA cipher both for speed (it’s fast!) as well as a fix against the BEAST attack. Google,
How to Create MySQL database and user
How to Create MySQL database and user | Here is quick way to create a MySQL database and user. This is useful for WordPress, Drupal, or other LAMP apps. Login to MySQL with the MySQL root password: $ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 5 Server version:
How to Redirect a URL in a Virtual Host
How to Redirect a URL in a Virtual Host | Redirecting a URL in a virtual host is a snap! I’ll show you how. Scenario: you have a server that receives example.com but you want that to redirect to example2.com. First you will want to add this to your /etc/apache2/ports.conf (Debian or Ubuntu) or /etc/httpd/conf/httpd.conf (Red Hat or CentOS) if you have not already: NameVirtualHost
Use awk instead of cut to cut out specific columns of a file
Use awk instead of cut to cut out specific columns of a file | For separating out specific columns of a file, try using awk! The command to use is: $ awk ‘{print $9,$10}’ file.txt > file_cut.txt Where 9 or 10 indicates the ninth or tenth column of a text file. For an example, say you have the output of an ls -l: drwxr-xr-x 13 root root 4096 Jun


