<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://briansnelson.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Brian</id>
		<title>Brian Nelson Ramblings - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://briansnelson.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Brian"/>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/Special:Contributions/Brian"/>
		<updated>2026-06-04T01:38:37Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://briansnelson.com/index.php?title=Bash_Script_to_Enable_Under-Attack_in_Cloudflare&amp;diff=1077</id>
		<title>Bash Script to Enable Under-Attack in Cloudflare</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Bash_Script_to_Enable_Under-Attack_in_Cloudflare&amp;diff=1077"/>
				<updated>2026-03-20T01:36:21Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: Created page with &amp;quot;==Bash Script to Monitor PHP Process and Enable Under Attack Mode in Cloudflare==  Does your domain hit max_children often due to high attacks from bots/scrapers?  Did you kno...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Bash Script to Monitor PHP Process and Enable Under Attack Mode in Cloudflare==&lt;br /&gt;
&lt;br /&gt;
Does your domain hit max_children often due to high attacks from bots/scrapers?&lt;br /&gt;
&lt;br /&gt;
Did you know you can enable under-attack via the api?&lt;br /&gt;
&lt;br /&gt;
===API Enable Under-Attack Mode via Cloudflare===&lt;br /&gt;
 &lt;br /&gt;
 #!/usr/bin/env bash&lt;br /&gt;
 #&lt;br /&gt;
 # cf-phpfpm-attack-toggle.sh&lt;br /&gt;
 # Toggle Cloudflare Under Attack mode based on PHP-FPM max_children usage.&lt;br /&gt;
 &lt;br /&gt;
 ### CONFIG #########################################################&lt;br /&gt;
 &lt;br /&gt;
 # Cloudflare&lt;br /&gt;
 CF_API_TOKEN=&amp;quot;[Input your API Token]&amp;quot;&lt;br /&gt;
 CF_DOMAIN=&amp;quot;[Input your Domain]&amp;quot;             # your domain&lt;br /&gt;
 CF_NORMAL_LEVEL=&amp;quot;medium&amp;quot;            # normal security level&lt;br /&gt;
 CF_ATTACK_LEVEL=&amp;quot;under_attack&amp;quot;      # attack mode level &lt;br /&gt;
 &lt;br /&gt;
 # PHP-FPM&lt;br /&gt;
 PHP_FPM_POOL_CONF=&amp;quot;[Input Pool Config Location]&amp;quot;  # adjust for your distro&lt;br /&gt;
 PHP_FPM_PROCESS_NAME=&amp;quot;php-fpm&amp;quot;              # e.g. php-fpm, php-fpm82, php-fpm8.2&lt;br /&gt;
 PHP_USER=&amp;quot;[Input your user]&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # Thresholds&lt;br /&gt;
 HIGH_USAGE_PCT=90   # enable Under Attack if &amp;gt;= this % of max_children in use&lt;br /&gt;
 LOW_USAGE_PCT=50    # disable Under Attack if &amp;lt;= this % of max_children in use&lt;br /&gt;
 &lt;br /&gt;
 # State file to avoid flapping&lt;br /&gt;
 STATE_FILE=&amp;quot;/var/run/cf_under_attack.state&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 #################################################################### &lt;br /&gt;
  &lt;br /&gt;
 set -euo pipefail&lt;br /&gt;
 &lt;br /&gt;
 log() {&lt;br /&gt;
   echo &amp;quot;[$(date -Is)] $*&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 get_zone_id() {&lt;br /&gt;
   curl -s -X GET &amp;quot;https://api.cloudflare.com/client/v4/zones?name=${CF_DOMAIN}&amp;quot; \&lt;br /&gt;
    -H &amp;quot;Authorization: Bearer ${CF_API_TOKEN}&amp;quot; \&lt;br /&gt;
    -H &amp;quot;Content-Type: application/json&amp;quot; \&lt;br /&gt;
  | jq -r '.result[0].id'&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 get_cf_security_level() {&lt;br /&gt;
  local zone_id=&amp;quot;$1&amp;quot;&lt;br /&gt;
  curl -s -X GET &amp;quot;https://api.cloudflare.com/client/v4/zones/${zone_id}/settings/security_level&amp;quot; \&lt;br /&gt;
    -H &amp;quot;Authorization: Bearer ${CF_API_TOKEN}&amp;quot; \&lt;br /&gt;
    -H &amp;quot;Content-Type: application/json&amp;quot; \&lt;br /&gt;
  | jq -r '.result.value'&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 set_cf_security_level() {&lt;br /&gt;
   local zone_id=&amp;quot;$1&amp;quot;&lt;br /&gt;
   local level=&amp;quot;$2&amp;quot;&lt;br /&gt;
   curl -s -X PATCH &amp;quot;https://api.cloudflare.com/client/v4/zones/${zone_id}/settings/security_level&amp;quot; \&lt;br /&gt;
     -H &amp;quot;Authorization: Bearer ${CF_API_TOKEN}&amp;quot; \&lt;br /&gt;
     -H &amp;quot;Content-Type: application/json&amp;quot; \&lt;br /&gt;
     --data &amp;quot;{\&amp;quot;value\&amp;quot;:\&amp;quot;${level}\&amp;quot;}&amp;quot; \&lt;br /&gt;
   | jq -r '.success'&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 get_max_children() {&lt;br /&gt;
   # reads first pm.max_children in pool conf&lt;br /&gt;
   awk -F'=' '/^[[:space:]]*pm\.max_children[[:space:]]*=/ {gsub(/[[:space:]]/, &amp;quot;&amp;quot;, $2); print $2; exit}' \&lt;br /&gt;
     &amp;quot;${PHP_FPM_POOL_CONF}&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 get_current_children_count() {&lt;br /&gt;
   # count running php-fpm workers (exclude master)&lt;br /&gt;
   #  ps -o cmd= -C &amp;quot;${PHP_FPM_PROCESS_NAME}&amp;quot; 2&amp;gt;/dev/null | grep &amp;quot;sitesent&amp;quot; | wc -l&lt;br /&gt;
   local count&lt;br /&gt;
   count=$(ps -o cmd= -C &amp;quot;${PHP_FPM_PROCESS_NAME}&amp;quot; 2&amp;gt;/dev/null | grep &amp;quot;${PHP_USER}&amp;quot; | wc -l)&lt;br /&gt;
   #Fix for math bug of if no process 0 are active&lt;br /&gt;
    echo $(( count + 1 ))&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 get_state() {&lt;br /&gt;
   if [[ -f &amp;quot;${STATE_FILE}&amp;quot; ]]; then&lt;br /&gt;
     cat &amp;quot;${STATE_FILE}&amp;quot;&lt;br /&gt;
   else&lt;br /&gt;
     echo &amp;quot;normal&amp;quot;&lt;br /&gt;
   fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 set_state() {&lt;br /&gt;
   echo &amp;quot;$1&amp;quot; &amp;gt; &amp;quot;${STATE_FILE}&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 main() {&lt;br /&gt;
   # Get PHP-FPM usage&lt;br /&gt;
   local max_children&lt;br /&gt;
   max_children=$(get_max_children || echo 0)&lt;br /&gt;
   if [[ &amp;quot;${max_children}&amp;quot; -le 0 ]]; then&lt;br /&gt;
     log &amp;quot;ERROR: Could not determine pm.max_children from ${PHP_FPM_POOL_CONF}&amp;quot;&lt;br /&gt;
     exit 1&lt;br /&gt;
   fi&lt;br /&gt;
 &lt;br /&gt;
 local current_children&lt;br /&gt;
 current_children=$(get_current_children_count) &lt;br /&gt;
 &lt;br /&gt;
   local usage_pct&lt;br /&gt;
   usage_pct=$(( current_children * 100 / max_children )) &lt;br /&gt;
 &lt;br /&gt;
   log &amp;quot;PHP-FPM: ${current_children}/${max_children} children (${usage_pct}%)&amp;quot; &lt;br /&gt;
 &lt;br /&gt;
   # Get Cloudflare zone and current level&lt;br /&gt;
   local zone_id&lt;br /&gt;
   zone_id=$(get_zone_id)&lt;br /&gt;
   if [[ -z &amp;quot;${zone_id}&amp;quot; || &amp;quot;${zone_id}&amp;quot; == &amp;quot;null&amp;quot; ]]; then&lt;br /&gt;
     log &amp;quot;ERROR: Unable to determine Cloudflare zone ID for ${CF_DOMAIN}&amp;quot;&lt;br /&gt;
     exit 1&lt;br /&gt;
   fi&lt;br /&gt;
 &lt;br /&gt;
   local current_level&lt;br /&gt;
   current_level=$(get_cf_security_level &amp;quot;${zone_id}&amp;quot;)&lt;br /&gt;
   log &amp;quot;Cloudflare security level: ${current_level}&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
   local state&lt;br /&gt;
   state=$(get_state)&lt;br /&gt;
   log &amp;quot;Current state flag: ${state}&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
   # Logic:&lt;br /&gt;
   # - If usage &amp;gt;= HIGH_USAGE_PCT and not already under attack -&amp;gt; enable&lt;br /&gt;
   # - If usage &amp;lt;= LOW_USAGE_PCT and currently under attack      -&amp;gt; disable &lt;br /&gt;
 &lt;br /&gt;
   if (( usage_pct &amp;gt;= HIGH_USAGE_PCT )) &amp;amp;&amp;amp; [[ &amp;quot;${state}&amp;quot; != &amp;quot;attack&amp;quot; ]]; then&lt;br /&gt;
     log &amp;quot;High PHP-FPM usage (&amp;gt;= ${HIGH_USAGE_PCT}%). Enabling Under Attack mode...&amp;quot;&lt;br /&gt;
     if [[ &amp;quot;${current_level}&amp;quot; != &amp;quot;${CF_ATTACK_LEVEL}&amp;quot; ]]; then&lt;br /&gt;
       local ok&lt;br /&gt;
       ok=$(set_cf_security_level &amp;quot;${zone_id}&amp;quot; &amp;quot;${CF_ATTACK_LEVEL}&amp;quot;)&lt;br /&gt;
       if [[ &amp;quot;${ok}&amp;quot; == &amp;quot;true&amp;quot; ]]; then&lt;br /&gt;
         log &amp;quot;Cloudflare set to ${CF_ATTACK_LEVEL}&amp;quot;&lt;br /&gt;
         set_state &amp;quot;attack&amp;quot;&lt;br /&gt;
       else&lt;br /&gt;
         log &amp;quot;ERROR: Failed to enable Under Attack mode&amp;quot;&lt;br /&gt;
       fi&lt;br /&gt;
     else&lt;br /&gt;
       log &amp;quot;Cloudflare already in ${CF_ATTACK_LEVEL} level.&amp;quot;&lt;br /&gt;
       set_state &amp;quot;attack&amp;quot;&lt;br /&gt;
     fi&lt;br /&gt;
 &lt;br /&gt;
   elif (( usage_pct &amp;lt;= LOW_USAGE_PCT )) &amp;amp;&amp;amp; [[ &amp;quot;${state}&amp;quot; == &amp;quot;attack&amp;quot; ]]; then&lt;br /&gt;
     log &amp;quot;PHP-FPM usage low (&amp;lt;= ${LOW_USAGE_PCT}%). Disabling Under Attack mode...&amp;quot;&lt;br /&gt;
     if [[ &amp;quot;${current_level}&amp;quot; != &amp;quot;${CF_NORMAL_LEVEL}&amp;quot; ]]; then&lt;br /&gt;
       local ok&lt;br /&gt;
       ok=$(set_cf_security_level &amp;quot;${zone_id}&amp;quot; &amp;quot;${CF_NORMAL_LEVEL}&amp;quot;)&lt;br /&gt;
       if [[ &amp;quot;${ok}&amp;quot; == &amp;quot;true&amp;quot; ]]; then&lt;br /&gt;
         log &amp;quot;Cloudflare set to ${CF_NORMAL_LEVEL}&amp;quot;&lt;br /&gt;
         set_state &amp;quot;normal&amp;quot;&lt;br /&gt;
       else&lt;br /&gt;
         log &amp;quot;ERROR: Failed to disable Under Attack mode&amp;quot;&lt;br /&gt;
       fi&lt;br /&gt;
     else&lt;br /&gt;
       log &amp;quot;Cloudflare already at normal level (${CF_NORMAL_LEVEL}).&amp;quot;&lt;br /&gt;
       set_state &amp;quot;normal&amp;quot;&lt;br /&gt;
     fi &lt;br /&gt;
 &lt;br /&gt;
   else&lt;br /&gt;
     log &amp;quot;No change to Cloudflare mode (usage: ${usage_pct}%, state: ${state}).&amp;quot;&lt;br /&gt;
   fi&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 main &amp;quot;$@&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===Setup Cron to Auto Enable/Disable Under-Attack Mode in Cloudflare===&lt;br /&gt;
&lt;br /&gt;
Now set it up to run every minute &lt;br /&gt;
&lt;br /&gt;
 * * * * * bash /path/to/script/cf-phpfpm-attack-toggle.sh &amp;gt;&amp;gt; /var/log/cf-under-attack.log&lt;br /&gt;
&lt;br /&gt;
Now when your site gets heavy traffic it will auto enable under-attack mode.&lt;br /&gt;
&lt;br /&gt;
===How to setup the API Key in Cloudflare===&lt;br /&gt;
&lt;br /&gt;
To generate the API key in cloudflare, you will need to go to&lt;br /&gt;
&lt;br /&gt;
'''Manage Account -&amp;gt; Account API Tokens -&amp;gt; Create Token&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
Make sure to select '''Zone -&amp;gt; Zone Settings both (Edit/Read)&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
Those are the only settings this API token needs&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Main_Page&amp;diff=1076</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Main_Page&amp;diff=1076"/>
				<updated>2026-03-20T01:20:03Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Other */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Welcome to Ramblings of a Centos Ninja==&lt;br /&gt;
&lt;br /&gt;
[[File:Centos-logo.png|100px|frameless|right|alt=Centos How-Tos]]&lt;br /&gt;
===Centos 7===&lt;br /&gt;
 --&amp;gt; [[Install Remi and EPEL yum repo Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Mysql Database Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Apache Web Server Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install PHP/PHP-FPM 5.4 Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install (LAMP) Linux Apache MySQL and PHP Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Redis on Centos 7 How To]]&lt;br /&gt;
 --&amp;gt; [[How To Configure SWAP on Centos 7]] &lt;br /&gt;
 --&amp;gt; [[How to find user memory usage in linux]]&lt;br /&gt;
 --&amp;gt; [[How to Configure letsencrypt with Apache on Centos 7 Server]]&lt;br /&gt;
 --&amp;gt; [[How to configure Gmail as a Mail Relay with Postfix]]&lt;br /&gt;
 --&amp;gt; [[How use GeoIP on the command line Centos7]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with .htpasswd/.htaccess]]&lt;br /&gt;
 --&amp;gt; [[Linux setfacl command]]&lt;br /&gt;
 --&amp;gt; [[How to disable SSH timeout]]  [[File:New.jpg|35px|frameless]]&lt;br /&gt;
 --&amp;gt; [[How to Install Squid Proxy Server on Cento7]]  [[File:New.jpg|35px|frameless]]&lt;br /&gt;
 --&amp;gt; [[How To Use Systemctl to Manage Systemd Services]]&lt;br /&gt;
&lt;br /&gt;
===Centos 6===&lt;br /&gt;
 --&amp;gt; [[Change Runlevel]]&lt;br /&gt;
 --&amp;gt; [[Check Current Runlevel]]&lt;br /&gt;
 --&amp;gt; [[Change Run Level at Bootup]]&lt;br /&gt;
 --&amp;gt; [[How to change the Hostname on Centos]]&lt;br /&gt;
 --&amp;gt; [[chkconfig settings]]&lt;br /&gt;
 --&amp;gt; [[How to extract a tar.gz file]]&lt;br /&gt;
 --&amp;gt; [[Install SIM - System Integrity Monitor]]&lt;br /&gt;
 --&amp;gt; [[Use Bash on a Non Bash User]]&lt;br /&gt;
 --&amp;gt; [[Quit Bash Shell without Saving Bash History]]&lt;br /&gt;
 --&amp;gt; [[Change the Timezone Centos]]&lt;br /&gt;
 --&amp;gt; [[Check the Version of Package]]&lt;br /&gt;
 --&amp;gt; [[How to install Sphinx on Centos Server]]&lt;br /&gt;
 --&amp;gt; [[How to install Redis on a Centos 6.4 Server]]&lt;br /&gt;
 --&amp;gt; [[Basic Redis commands - Cheat Sheet]]&lt;br /&gt;
 --&amp;gt; [[Adding a New Disk Drive with Centos]]&lt;br /&gt;
 --&amp;gt; [[Creating Backups using rsync with Examples]]&lt;br /&gt;
 --&amp;gt; [[Expand your bash_history to 2500]]&lt;br /&gt;
 --&amp;gt; [[Setup logrotate to rotate your logs]]&lt;br /&gt;
 --&amp;gt; [[GPG: Encrypt And Decrypt Files With A Password]]&lt;br /&gt;
 --&amp;gt; [[Install Remi and EPEL yum repo]] &lt;br /&gt;
 --&amp;gt; [[Install NewRelic on Centos6]]&lt;br /&gt;
 --&amp;gt; [[Setting Up An NFS Server And Client On CentOS 6]]&lt;br /&gt;
 --&amp;gt; [[Sar is not working how to restart]]&lt;br /&gt;
 --&amp;gt; [[Batch jpeg Image Optimization]]&lt;br /&gt;
 --&amp;gt; [[Howto Block or Open HTTP/HTTPs Ports IPTables]]&lt;br /&gt;
 --&amp;gt; [[Reset Root Password in CentOS]]&lt;br /&gt;
 --&amp;gt; [[Setup vsftp with SELinux]]&lt;br /&gt;
 --&amp;gt; [[Howto Setup NTP on CentOS]]&lt;br /&gt;
 --&amp;gt; [[Fix corrupted RPM database]]&lt;br /&gt;
 --&amp;gt; [[Crontab Usage]]&lt;br /&gt;
 --&amp;gt; [[Make an ISO from a Folder with mkisofs]]&lt;br /&gt;
 --&amp;gt; [[How to setup a VPN server with CentOS PPTPD]]&lt;br /&gt;
 --&amp;gt; [[APF Firewall -Advanced Policy Firewall - Basics]]&lt;br /&gt;
 --&amp;gt; [[How to Block Bittorrent Traffic with IPtables]]&lt;br /&gt;
 --&amp;gt; [[How to find user memory usage in linux]]&lt;br /&gt;
 --&amp;gt; [[How to install ccsrch on Centos 6]]&lt;br /&gt;
 --&amp;gt; [[How to install jpegoptim for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install optipng for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install gifsicle for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install jpegtran for CentOS]]&lt;br /&gt;
 --&amp;gt; [[IPTABLES quick command list]]&lt;br /&gt;
 --&amp;gt; [[Linux setfacl command]]&lt;br /&gt;
 --&amp;gt; [[Postfix Mail Queue Commands for Reviewing Emails]]&lt;br /&gt;
&lt;br /&gt;
[[File:Magentos.jpg|100px|frameless|right|alt=Magento How To's]]&lt;br /&gt;
&lt;br /&gt;
===Magento Community Edition/Magento Enterprise Edition===&lt;br /&gt;
 --&amp;gt; [[What is Magento?]]&lt;br /&gt;
 --&amp;gt; [[Clear Magento Cache]]&lt;br /&gt;
 --&amp;gt; [[Disable Magento Modules]]&lt;br /&gt;
 --&amp;gt; [[Turn on Manual Indexing]]&lt;br /&gt;
 --&amp;gt; [[How to Reset Magento Password]]&lt;br /&gt;
 --&amp;gt; [[How to Create Users in Mageento]]&lt;br /&gt;
 --&amp;gt; [[Enable Mysql Slow Query Logging]]&lt;br /&gt;
 --&amp;gt; [[Magento Connect is not Working]]&lt;br /&gt;
 --&amp;gt; [[Magento will NOT save my Product Updates]]&lt;br /&gt;
 --&amp;gt; [[Magento Internal Cron not Running]]&lt;br /&gt;
 --&amp;gt; [[Setting up the System Cron Job]]&lt;br /&gt;
 --&amp;gt; [[Magento Connect is not Working]]&lt;br /&gt;
 --&amp;gt; [[Changing the Minimum Search Query - MySQL Full Text Only]]&lt;br /&gt;
 --&amp;gt; [[Install Redis Caching for Magento]]&lt;br /&gt;
 --&amp;gt; [[Install Redis Full Page Caching for Magento Enterprise]]&lt;br /&gt;
 --&amp;gt; [[Setting up a Second Instance of Redis]]&lt;br /&gt;
 --&amp;gt; [[Magento Setup Return-Path Email]]&lt;br /&gt;
 --&amp;gt; [[Magento Server Compatibility Check]]&lt;br /&gt;
 --&amp;gt; [[Magento Database Optimization - Log Cleaning Script]]&lt;br /&gt;
 --&amp;gt; [[Magento Site Performance Optimization]] &lt;br /&gt;
 --&amp;gt; [[Magento Log Rotate with logrotate]]&lt;br /&gt;
 --&amp;gt; [[How to use CDN with Webfonts with Magento]] &lt;br /&gt;
 --&amp;gt; [[How to Disable Magento Newsletter Module]]&lt;br /&gt;
 --&amp;gt; [[Magento : Execute Custom Module Cron Manually]]&lt;br /&gt;
&lt;br /&gt;
[[File:Magentos.jpg|100px|frameless|right|alt=Magento2 How To's]]&lt;br /&gt;
&lt;br /&gt;
===Magento 2 Community Edition===&lt;br /&gt;
 --&amp;gt; [[Upgrade Magento2 via CLI]]&lt;br /&gt;
 --&amp;gt; [[Enable/Disable Magento2 Maintenance Page]]&lt;br /&gt;
 --&amp;gt; [[How to set Magento 2 permissions and avoid installation errors]]&lt;br /&gt;
 --&amp;gt; [[How to speed up Magento 2 out of the box]]&lt;br /&gt;
 --&amp;gt; [[How to Change Magento 2 mode]]&lt;br /&gt;
 --&amp;gt; [[How to Enable Disable Magento 2 caches]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 How to Add Alternative HTTP headers]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Purge Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Redis Page Cache and Default Cache Example]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 How to check Magento Version]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Reindex Error: Index is locked by another reindex process. Skipping]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Reindex via the CLI]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Custom 503 Maintenance page]]&lt;br /&gt;
&lt;br /&gt;
[[File:Memcahed.jpg|100px|frameless|right|alt=Memcache Caching]]&lt;br /&gt;
&lt;br /&gt;
===Memcached Server===&lt;br /&gt;
 --&amp;gt; [[Memcached Monitor Tool]]&lt;br /&gt;
 --&amp;gt; [[Setup Multi Instance Memcache]]&lt;br /&gt;
 --&amp;gt; [[Check if Memcached is Running]]&lt;br /&gt;
 --&amp;gt; [[Flush Your Memcached Instance]]&lt;br /&gt;
 --&amp;gt; [[Check Memory Usage of Memcached]]&lt;br /&gt;
 --&amp;gt; [[Memcache running out of Memory?]]&lt;br /&gt;
 --&amp;gt; [[Memcached List all Keys]]&lt;br /&gt;
&lt;br /&gt;
[[File:Apachelogo.gif|100px|right|alt=Apache How Tos]]&lt;br /&gt;
&lt;br /&gt;
===Apache/PHP===  &lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Deny access to my site with an .htaccess file]]&lt;br /&gt;
 --&amp;gt; [[Redirect site to www or non www]]&lt;br /&gt;
 --&amp;gt; [[Restrict POST request to Website]]&lt;br /&gt;
 --&amp;gt; [[Install Tomcat6 Server on Centos 6]]&lt;br /&gt;
 --&amp;gt; [[How to setup an SSL Certificate for Free]]&lt;br /&gt;
 --&amp;gt; [[Enable Apache to Create Core Dumps]]&lt;br /&gt;
 --&amp;gt; [[Enable php-fpm to create core dumps]]&lt;br /&gt;
 --&amp;gt; [[Debug PHP Enabling slow_log]] &lt;br /&gt;
 --&amp;gt; [[Block Bots by User Agent String]]&lt;br /&gt;
 --&amp;gt; [[Install mod_extact_forward - Show Real IP behind Proxy]]&lt;br /&gt;
 --&amp;gt; [[Install ionCube Loaders for Centos]]&lt;br /&gt;
 --&amp;gt; [[Install Zend Guard with PHP 5.3 on Centos]]&lt;br /&gt;
 --&amp;gt; [[Install Zend Guard 6.0 with PHP 5.4 on Centos]]&lt;br /&gt;
 --&amp;gt; [[Disable Mod_Security for a single vhost]]&lt;br /&gt;
 --&amp;gt; [[Hide PHP Version(X-Powered-By) in Headers]]&lt;br /&gt;
 --&amp;gt; [[Sessions are ending before MaxLifetime]]&lt;br /&gt;
 --&amp;gt; [[Apache mod_speling case insensitive urls issue]]&lt;br /&gt;
 --&amp;gt; [[Restrict access via htaccess via ipaddress]]&lt;br /&gt;
 --&amp;gt; [[Howto install mod_evasive with fail2ban]]&lt;br /&gt;
 --&amp;gt; [[Install the Latest version PHP on CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to bypass .htpasswd for certain IPs Apache]]&lt;br /&gt;
 --&amp;gt; [[Clear mod_pagespeed cache ]]&lt;br /&gt;
 --&amp;gt; [[Install GeoIP for Apache and PHP]]&lt;br /&gt;
 --&amp;gt; [[How to block or allow countries using GeoIP and .htaccess]]&lt;br /&gt;
 --&amp;gt; [[How to disable mod_security per vhost]]&lt;br /&gt;
 --&amp;gt; [[Force HTTPS for entire website via htaccess]]&lt;br /&gt;
 --&amp;gt; [[Restrict Access to wp-login.php and xmlrpc.php]]&lt;br /&gt;
 --&amp;gt; [[The X-Frame-Options response header]]&lt;br /&gt;
 --&amp;gt; [[Install Xdebug with php-fpm per pool]]&lt;br /&gt;
 --&amp;gt; [[How to Enable Gzip Compression]]&lt;br /&gt;
 --&amp;gt; [[Enable Apache rewrite logging]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with .htpasswd/.htaccess]]&lt;br /&gt;
 --&amp;gt; [[How to Disable PHP Execution in Certain Directories]]&lt;br /&gt;
 --&amp;gt; [[Directory listing in htaccess. Allow, Deny, Disable, Enable Directory Listing in .htaccess]]&lt;br /&gt;
 --&amp;gt; [[What is the Cache-Control Header]]&lt;br /&gt;
 --&amp;gt; [[How do I block a host by ASN for apache - Example]]&lt;br /&gt;
 --&amp;gt; [[Whitelist IP in mod_security]]&lt;br /&gt;
&lt;br /&gt;
[[File:Haproxy.png|100px|frameless|right|alt=Mysql Percona]]&lt;br /&gt;
&lt;br /&gt;
===HAProxy===&lt;br /&gt;
 --&amp;gt; [[What is HAProxy]]&lt;br /&gt;
 --&amp;gt; [[HAProxy vs Nginx]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Load Balancing]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Cluster Setup Example]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Docker]]&lt;br /&gt;
 --&amp;gt; [[HAProxy with Varnish SSL Termination Example]]&lt;br /&gt;
 --&amp;gt; [[HAProxy http2]]&lt;br /&gt;
 --&amp;gt; [[HAProxy GUI]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Install on Centos7]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Cloud Load Balancer]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Block by User-Agent]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Restrict by IP Address]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Redirect domain to another domain]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Rate-Limiting Example]]&lt;br /&gt;
&lt;br /&gt;
[[File:Logo percona server new.png|100px|frameless|right|alt=Mysql Percona]]&lt;br /&gt;
&lt;br /&gt;
===Mysql/Percona===&lt;br /&gt;
 --&amp;gt; [[How to Optimize/Repair a Table]]&lt;br /&gt;
 --&amp;gt; [[MySQL - Check Which Query is Consuming Resources]]&lt;br /&gt;
 --&amp;gt; [[How to Set your MySQL Password]]&lt;br /&gt;
 --&amp;gt; [[Rest your MySQL Admin Password]]&lt;br /&gt;
 --&amp;gt; [[How to Convert Table to InnoDB]] &lt;br /&gt;
 --&amp;gt; [[How to install Percona Database Server]]&lt;br /&gt;
 --&amp;gt; [[How to Access the MySQL via Shell]]&lt;br /&gt;
 --&amp;gt; [[How to Add a User in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to Drop a User in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to Create and Delete a MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to Create a Table in MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to Create a MySQL Database Backup]]&lt;br /&gt;
 --&amp;gt; [[How to Import a MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to update the max_connections setting in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to view a list of MySQL users and their privileges]]&lt;br /&gt;
 --&amp;gt; [[Save MySQL query results into a text or CSV file]]&lt;br /&gt;
 --&amp;gt; [[How to optimize a MySQL database using phpMyAdmin]]&lt;br /&gt;
 --&amp;gt; [[How to solve MySQL max_user_connections error]]&lt;br /&gt;
 --&amp;gt; [[How to enable Show Engine Innodb Status]]&lt;br /&gt;
 --&amp;gt; [[Access mysql/mysqldump without password entry each time - Using .my.cnf]]&lt;br /&gt;
&lt;br /&gt;
[[File:Varnish-cache-log.jpeg|100px|frameless|right|alt=Varnish How tos]]&lt;br /&gt;
&lt;br /&gt;
===Varnish Cache===&lt;br /&gt;
 --&amp;gt; [[Setup Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for Magento]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for Wordpress]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for MediaWiki]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish - Multiple Domains]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish - Multiple Ipaddress]]&lt;br /&gt;
 --&amp;gt; [[Script to Clear a Page from Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Varnish will not restart WHY?]]&lt;br /&gt;
 --&amp;gt; [[Warm up Varnish Script using Sitemap.xml]]&lt;br /&gt;
 --&amp;gt; [[Varnish How to redirect non-www URLs to www]]&lt;br /&gt;
 --&amp;gt; [[Install libvmod-header with Varnish]]&lt;br /&gt;
&lt;br /&gt;
[[File:Nginx-logo.png|100px|frameless|right|Install Nginx|alt=Nginx How tos]]&lt;br /&gt;
&lt;br /&gt;
===Nginx Web Server===&lt;br /&gt;
 --&amp;gt; [[Setup Nginx PHP FPM Percona Mysql]]&lt;br /&gt;
 --&amp;gt; [[Wordpress Ngnix Rewrite Rules]]&lt;br /&gt;
 --&amp;gt; [[Setup up Nginx Caching]]&lt;br /&gt;
 --&amp;gt; [[Nginx Magento vhost Configuration]]&lt;br /&gt;
 --&amp;gt; [[Basic HTTP Authentication with Nginx]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with Nginx]]&lt;br /&gt;
 --&amp;gt; [[403 Forbidden Error Nginx - How to Solve]]&lt;br /&gt;
&lt;br /&gt;
[[File:Sword-of-Omens-Sword1.png|100px|frameless|right|alt=Brian Nelson]]&lt;br /&gt;
&lt;br /&gt;
===Other===&lt;br /&gt;
 --&amp;gt; [[How to add trusted root certificates]]&lt;br /&gt;
 --&amp;gt; [[Find:_10_Useful_Examples_of_Find]]&lt;br /&gt;
 --&amp;gt; [[Send email from PHP to a log file instead of sendmail]]&lt;br /&gt;
 --&amp;gt; [[Debugging Wordpress]]&lt;br /&gt;
 --&amp;gt; [[How to install Linux via USB]]&lt;br /&gt;
 --&amp;gt; [[Network Subnet Mask Cheat Sheet]]&lt;br /&gt;
 --&amp;gt; [[Linux Keyboard Shortcuts]]&lt;br /&gt;
 --&amp;gt; [[Setup a SSH Tunnel for Secure Browsing]]&lt;br /&gt;
 --&amp;gt; [[Install OpenSSH on Windows]]&lt;br /&gt;
 --&amp;gt; [[Install Qmail on a Fresh Centos Server]]&lt;br /&gt;
 --&amp;gt; [[Setup Qmail to Listen on port 587 for SMTP]]&lt;br /&gt;
 --&amp;gt; [[Qmail catch-all account with vpopmail]]&lt;br /&gt;
 --&amp;gt; [[Setup Incoming Email Pipe to Script for Qmail]]&lt;br /&gt;
 --&amp;gt; [[Qmail Control Files]]&lt;br /&gt;
 --&amp;gt; [[Install qmqtool for Qmail on Centos Server]]&lt;br /&gt;
 --&amp;gt; [[Rest Email Password for vpopmail]]&lt;br /&gt;
 --&amp;gt; [[How to check Used IP on your Home Network]]&lt;br /&gt;
 --&amp;gt; [[How to find GMAIL IPs to allow at Firewall]]&lt;br /&gt;
 --&amp;gt; [[Useful TCPDUMP commands]]&lt;br /&gt;
 --&amp;gt; [[Remove Email Block Lists]]&lt;br /&gt;
 --&amp;gt; [[How to disable qmail vpopmail email user]] &lt;br /&gt;
 --&amp;gt; [[Git Cheat Sheet - Git made easy]]&lt;br /&gt;
 --&amp;gt; [[Top Chmod Command Examples for Beginners]]&lt;br /&gt;
 --&amp;gt; [[Benchmarking and Load Testing with Siege]]&lt;br /&gt;
 --&amp;gt; [[Benchmarking and Load Testing with Apache Bench(AB)]]&lt;br /&gt;
 --&amp;gt; [[How do I find out more about socket files in /proc/fd]]&lt;br /&gt;
 --&amp;gt; [[How to Disable the wp-cron.php in WordPress]]&lt;br /&gt;
 --&amp;gt; [[How to delete mail queue in Postfix]]&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Top Command Line Games - Linux CLI Games]] &amp;lt;sub&amp;gt;Cause Linux can be fun&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Centos Oneliners]]&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Bash Script to Check Memory with Email Alert when Low]]&lt;br /&gt;
 --&amp;gt; [[Bash Script to Check Site Code Status with Email Alert]]&lt;br /&gt;
 --&amp;gt; [[Bash Script to Enable Under-Attack in Cloudflare]]&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Magento_Log_Rotate_with_logrotate&amp;diff=1075</id>
		<title>Magento Log Rotate with logrotate</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Magento_Log_Rotate_with_logrotate&amp;diff=1075"/>
				<updated>2025-02-13T00:02:49Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Magento Log Rotate with logrotate==&lt;br /&gt;
&lt;br /&gt;
Have you ever had your Magento logs get so large you run out of disk quota.  Maybe you would like to setup a log rotation for your Magento logs, it only makes sense all other major logs get rotated...right.&lt;br /&gt;
&lt;br /&gt;
Let setup a cron that will rotate your magento logs (exception.log &amp;amp;&amp;amp; system.log).&lt;br /&gt;
&lt;br /&gt;
===Lets create the logrotate configuration file===&lt;br /&gt;
&lt;br /&gt;
note, you will need to set your path to log files&lt;br /&gt;
&lt;br /&gt;
 vim magento-logrotate.conf&lt;br /&gt;
&lt;br /&gt;
now add the following to the magento-logrotate.conf file&lt;br /&gt;
&lt;br /&gt;
 /path/to/magento/var/log/*log {&lt;br /&gt;
  compress&lt;br /&gt;
  delaycompress&lt;br /&gt;
  dateext&lt;br /&gt;
  missingok&lt;br /&gt;
  nosharedscripts&lt;br /&gt;
  notifempty&lt;br /&gt;
  daily&lt;br /&gt;
  rotate 14&lt;br /&gt;
  prerotate&lt;br /&gt;
   /usr/local/bin/ok2rotate $1&lt;br /&gt;
  endscript&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
===Add a Daily cron to rotate your logs===&lt;br /&gt;
&lt;br /&gt;
 @daily /usr/sbin/logrotate -f /path/to/magento-logrotate.conf&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
 0 0 * * * /usr/sbin/logrotate -f /path/to/magento-logrotate.conf&lt;br /&gt;
&lt;br /&gt;
This will compress the old logs and keep 7 days worth of logs&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Whitelist_IP_in_mod_security&amp;diff=1074</id>
		<title>Whitelist IP in mod security</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Whitelist_IP_in_mod_security&amp;diff=1074"/>
				<updated>2024-11-22T05:04:32Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: Created page with &amp;quot;==How to Whitelist IP in Mod_security==  ModSecurity, often called ModSec or mod_security, is a web application firewall (WAF) designed for real-time monitoring, logging, and...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How to Whitelist IP in Mod_security==&lt;br /&gt;
&lt;br /&gt;
ModSecurity, often called ModSec or mod_security, is a web application firewall (WAF) designed for real-time monitoring, logging, and controlling access to web applications (source: modsecurity.org). In simple terms, it actively detects and prevents malicious activities targeting the system. However, legitimate actions can sometimes unintentionally trigger these security rules, causing an IP to be blocked. This can disrupt access for you or your developer until the block is lifted. A common solution to prevent such interruptions is whitelisting, which allows specific IP addresses to bypass ModSecurity's restrictions and access the server without interference.&lt;br /&gt;
&lt;br /&gt;
===Whitelist by IP in ModSecurity===&lt;br /&gt;
&lt;br /&gt;
Basic rule for whitelisting an ip address in mod_security is:&lt;br /&gt;
 SecRule REMOTE_ADDR &amp;quot;@ipMatch &amp;lt;IP&amp;gt;&amp;quot; &amp;quot;&amp;lt;actions&amp;gt;&amp;quot;&lt;br /&gt;
====Components:====&lt;br /&gt;
# SecRule: Defines a rule for ModSecurity to evaluate.&lt;br /&gt;
# REMOTE_ADDR: Matches the client's IP address.&lt;br /&gt;
# @ipMatch: Operator used to check if the request's IP matches the specified value(s).&lt;br /&gt;
# &amp;lt;IP&amp;gt;: Specific IP address to match.&lt;br /&gt;
&lt;br /&gt;
====Actions:====&lt;br /&gt;
* phase:1: The rule is applied during the request's first processing phase.&lt;br /&gt;
* id:&amp;lt;number&amp;gt;: A unique identifier for the rule.&lt;br /&gt;
* nolog: Prevents logging of requests matching the rule.&lt;br /&gt;
* allow: Allows the request to bypass the usual security rules.&lt;br /&gt;
* ctl:ruleEngine=Off: Disables the ModSecurity rule engine for requests matching this rule.&lt;br /&gt;
&lt;br /&gt;
Full example of whitelisting an ip address for mod_security:&lt;br /&gt;
 SecRule REMOTE_ADDR &amp;quot;@ipMatch 111.111.111.110&amp;quot; &amp;quot;phase:1,id:200000001,nolog,allow,ctl:ruleEngine=Off&amp;quot;&lt;br /&gt;
 SecRule REMOTE_ADDR &amp;quot;@ipMatch 111.111.111.109&amp;quot; &amp;quot;phase:1,id:200000002,nolog,allow,ctl:ruleEngine=Off&amp;quot;&lt;br /&gt;
&lt;br /&gt;
====Practical Use Case:====&lt;br /&gt;
* Whitelisting: These rules are often used to whitelist trusted IPs, such as internal systems, monitoring tools, or API clients that require unrestricted access to the server.&lt;br /&gt;
* Performance Optimization: Turning off ModSecurity for trusted IPs reduces overhead for requests from these sources.&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Main_Page&amp;diff=1073</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Main_Page&amp;diff=1073"/>
				<updated>2024-11-22T04:56:10Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Apache/PHP */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Welcome to Ramblings of a Centos Ninja==&lt;br /&gt;
&lt;br /&gt;
[[File:Centos-logo.png|100px|frameless|right|alt=Centos How-Tos]]&lt;br /&gt;
===Centos 7===&lt;br /&gt;
 --&amp;gt; [[Install Remi and EPEL yum repo Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Mysql Database Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Apache Web Server Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install PHP/PHP-FPM 5.4 Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install (LAMP) Linux Apache MySQL and PHP Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Redis on Centos 7 How To]]&lt;br /&gt;
 --&amp;gt; [[How To Configure SWAP on Centos 7]] &lt;br /&gt;
 --&amp;gt; [[How to find user memory usage in linux]]&lt;br /&gt;
 --&amp;gt; [[How to Configure letsencrypt with Apache on Centos 7 Server]]&lt;br /&gt;
 --&amp;gt; [[How to configure Gmail as a Mail Relay with Postfix]]&lt;br /&gt;
 --&amp;gt; [[How use GeoIP on the command line Centos7]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with .htpasswd/.htaccess]]&lt;br /&gt;
 --&amp;gt; [[Linux setfacl command]]&lt;br /&gt;
 --&amp;gt; [[How to disable SSH timeout]]  [[File:New.jpg|35px|frameless]]&lt;br /&gt;
 --&amp;gt; [[How to Install Squid Proxy Server on Cento7]]  [[File:New.jpg|35px|frameless]]&lt;br /&gt;
 --&amp;gt; [[How To Use Systemctl to Manage Systemd Services]]&lt;br /&gt;
&lt;br /&gt;
===Centos 6===&lt;br /&gt;
 --&amp;gt; [[Change Runlevel]]&lt;br /&gt;
 --&amp;gt; [[Check Current Runlevel]]&lt;br /&gt;
 --&amp;gt; [[Change Run Level at Bootup]]&lt;br /&gt;
 --&amp;gt; [[How to change the Hostname on Centos]]&lt;br /&gt;
 --&amp;gt; [[chkconfig settings]]&lt;br /&gt;
 --&amp;gt; [[How to extract a tar.gz file]]&lt;br /&gt;
 --&amp;gt; [[Install SIM - System Integrity Monitor]]&lt;br /&gt;
 --&amp;gt; [[Use Bash on a Non Bash User]]&lt;br /&gt;
 --&amp;gt; [[Quit Bash Shell without Saving Bash History]]&lt;br /&gt;
 --&amp;gt; [[Change the Timezone Centos]]&lt;br /&gt;
 --&amp;gt; [[Check the Version of Package]]&lt;br /&gt;
 --&amp;gt; [[How to install Sphinx on Centos Server]]&lt;br /&gt;
 --&amp;gt; [[How to install Redis on a Centos 6.4 Server]]&lt;br /&gt;
 --&amp;gt; [[Basic Redis commands - Cheat Sheet]]&lt;br /&gt;
 --&amp;gt; [[Adding a New Disk Drive with Centos]]&lt;br /&gt;
 --&amp;gt; [[Creating Backups using rsync with Examples]]&lt;br /&gt;
 --&amp;gt; [[Expand your bash_history to 2500]]&lt;br /&gt;
 --&amp;gt; [[Setup logrotate to rotate your logs]]&lt;br /&gt;
 --&amp;gt; [[GPG: Encrypt And Decrypt Files With A Password]]&lt;br /&gt;
 --&amp;gt; [[Install Remi and EPEL yum repo]] &lt;br /&gt;
 --&amp;gt; [[Install NewRelic on Centos6]]&lt;br /&gt;
 --&amp;gt; [[Setting Up An NFS Server And Client On CentOS 6]]&lt;br /&gt;
 --&amp;gt; [[Sar is not working how to restart]]&lt;br /&gt;
 --&amp;gt; [[Batch jpeg Image Optimization]]&lt;br /&gt;
 --&amp;gt; [[Howto Block or Open HTTP/HTTPs Ports IPTables]]&lt;br /&gt;
 --&amp;gt; [[Reset Root Password in CentOS]]&lt;br /&gt;
 --&amp;gt; [[Setup vsftp with SELinux]]&lt;br /&gt;
 --&amp;gt; [[Howto Setup NTP on CentOS]]&lt;br /&gt;
 --&amp;gt; [[Fix corrupted RPM database]]&lt;br /&gt;
 --&amp;gt; [[Crontab Usage]]&lt;br /&gt;
 --&amp;gt; [[Make an ISO from a Folder with mkisofs]]&lt;br /&gt;
 --&amp;gt; [[How to setup a VPN server with CentOS PPTPD]]&lt;br /&gt;
 --&amp;gt; [[APF Firewall -Advanced Policy Firewall - Basics]]&lt;br /&gt;
 --&amp;gt; [[How to Block Bittorrent Traffic with IPtables]]&lt;br /&gt;
 --&amp;gt; [[How to find user memory usage in linux]]&lt;br /&gt;
 --&amp;gt; [[How to install ccsrch on Centos 6]]&lt;br /&gt;
 --&amp;gt; [[How to install jpegoptim for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install optipng for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install gifsicle for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install jpegtran for CentOS]]&lt;br /&gt;
 --&amp;gt; [[IPTABLES quick command list]]&lt;br /&gt;
 --&amp;gt; [[Linux setfacl command]]&lt;br /&gt;
 --&amp;gt; [[Postfix Mail Queue Commands for Reviewing Emails]]&lt;br /&gt;
&lt;br /&gt;
[[File:Magentos.jpg|100px|frameless|right|alt=Magento How To's]]&lt;br /&gt;
&lt;br /&gt;
===Magento Community Edition/Magento Enterprise Edition===&lt;br /&gt;
 --&amp;gt; [[What is Magento?]]&lt;br /&gt;
 --&amp;gt; [[Clear Magento Cache]]&lt;br /&gt;
 --&amp;gt; [[Disable Magento Modules]]&lt;br /&gt;
 --&amp;gt; [[Turn on Manual Indexing]]&lt;br /&gt;
 --&amp;gt; [[How to Reset Magento Password]]&lt;br /&gt;
 --&amp;gt; [[How to Create Users in Mageento]]&lt;br /&gt;
 --&amp;gt; [[Enable Mysql Slow Query Logging]]&lt;br /&gt;
 --&amp;gt; [[Magento Connect is not Working]]&lt;br /&gt;
 --&amp;gt; [[Magento will NOT save my Product Updates]]&lt;br /&gt;
 --&amp;gt; [[Magento Internal Cron not Running]]&lt;br /&gt;
 --&amp;gt; [[Setting up the System Cron Job]]&lt;br /&gt;
 --&amp;gt; [[Magento Connect is not Working]]&lt;br /&gt;
 --&amp;gt; [[Changing the Minimum Search Query - MySQL Full Text Only]]&lt;br /&gt;
 --&amp;gt; [[Install Redis Caching for Magento]]&lt;br /&gt;
 --&amp;gt; [[Install Redis Full Page Caching for Magento Enterprise]]&lt;br /&gt;
 --&amp;gt; [[Setting up a Second Instance of Redis]]&lt;br /&gt;
 --&amp;gt; [[Magento Setup Return-Path Email]]&lt;br /&gt;
 --&amp;gt; [[Magento Server Compatibility Check]]&lt;br /&gt;
 --&amp;gt; [[Magento Database Optimization - Log Cleaning Script]]&lt;br /&gt;
 --&amp;gt; [[Magento Site Performance Optimization]] &lt;br /&gt;
 --&amp;gt; [[Magento Log Rotate with logrotate]]&lt;br /&gt;
 --&amp;gt; [[How to use CDN with Webfonts with Magento]] &lt;br /&gt;
 --&amp;gt; [[How to Disable Magento Newsletter Module]]&lt;br /&gt;
 --&amp;gt; [[Magento : Execute Custom Module Cron Manually]]&lt;br /&gt;
&lt;br /&gt;
[[File:Magentos.jpg|100px|frameless|right|alt=Magento2 How To's]]&lt;br /&gt;
&lt;br /&gt;
===Magento 2 Community Edition===&lt;br /&gt;
 --&amp;gt; [[Upgrade Magento2 via CLI]]&lt;br /&gt;
 --&amp;gt; [[Enable/Disable Magento2 Maintenance Page]]&lt;br /&gt;
 --&amp;gt; [[How to set Magento 2 permissions and avoid installation errors]]&lt;br /&gt;
 --&amp;gt; [[How to speed up Magento 2 out of the box]]&lt;br /&gt;
 --&amp;gt; [[How to Change Magento 2 mode]]&lt;br /&gt;
 --&amp;gt; [[How to Enable Disable Magento 2 caches]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 How to Add Alternative HTTP headers]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Purge Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Redis Page Cache and Default Cache Example]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 How to check Magento Version]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Reindex Error: Index is locked by another reindex process. Skipping]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Reindex via the CLI]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Custom 503 Maintenance page]]&lt;br /&gt;
&lt;br /&gt;
[[File:Memcahed.jpg|100px|frameless|right|alt=Memcache Caching]]&lt;br /&gt;
&lt;br /&gt;
===Memcached Server===&lt;br /&gt;
 --&amp;gt; [[Memcached Monitor Tool]]&lt;br /&gt;
 --&amp;gt; [[Setup Multi Instance Memcache]]&lt;br /&gt;
 --&amp;gt; [[Check if Memcached is Running]]&lt;br /&gt;
 --&amp;gt; [[Flush Your Memcached Instance]]&lt;br /&gt;
 --&amp;gt; [[Check Memory Usage of Memcached]]&lt;br /&gt;
 --&amp;gt; [[Memcache running out of Memory?]]&lt;br /&gt;
 --&amp;gt; [[Memcached List all Keys]]&lt;br /&gt;
&lt;br /&gt;
[[File:Apachelogo.gif|100px|right|alt=Apache How Tos]]&lt;br /&gt;
&lt;br /&gt;
===Apache/PHP===  &lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Deny access to my site with an .htaccess file]]&lt;br /&gt;
 --&amp;gt; [[Redirect site to www or non www]]&lt;br /&gt;
 --&amp;gt; [[Restrict POST request to Website]]&lt;br /&gt;
 --&amp;gt; [[Install Tomcat6 Server on Centos 6]]&lt;br /&gt;
 --&amp;gt; [[How to setup an SSL Certificate for Free]]&lt;br /&gt;
 --&amp;gt; [[Enable Apache to Create Core Dumps]]&lt;br /&gt;
 --&amp;gt; [[Enable php-fpm to create core dumps]]&lt;br /&gt;
 --&amp;gt; [[Debug PHP Enabling slow_log]] &lt;br /&gt;
 --&amp;gt; [[Block Bots by User Agent String]]&lt;br /&gt;
 --&amp;gt; [[Install mod_extact_forward - Show Real IP behind Proxy]]&lt;br /&gt;
 --&amp;gt; [[Install ionCube Loaders for Centos]]&lt;br /&gt;
 --&amp;gt; [[Install Zend Guard with PHP 5.3 on Centos]]&lt;br /&gt;
 --&amp;gt; [[Install Zend Guard 6.0 with PHP 5.4 on Centos]]&lt;br /&gt;
 --&amp;gt; [[Disable Mod_Security for a single vhost]]&lt;br /&gt;
 --&amp;gt; [[Hide PHP Version(X-Powered-By) in Headers]]&lt;br /&gt;
 --&amp;gt; [[Sessions are ending before MaxLifetime]]&lt;br /&gt;
 --&amp;gt; [[Apache mod_speling case insensitive urls issue]]&lt;br /&gt;
 --&amp;gt; [[Restrict access via htaccess via ipaddress]]&lt;br /&gt;
 --&amp;gt; [[Howto install mod_evasive with fail2ban]]&lt;br /&gt;
 --&amp;gt; [[Install the Latest version PHP on CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to bypass .htpasswd for certain IPs Apache]]&lt;br /&gt;
 --&amp;gt; [[Clear mod_pagespeed cache ]]&lt;br /&gt;
 --&amp;gt; [[Install GeoIP for Apache and PHP]]&lt;br /&gt;
 --&amp;gt; [[How to block or allow countries using GeoIP and .htaccess]]&lt;br /&gt;
 --&amp;gt; [[How to disable mod_security per vhost]]&lt;br /&gt;
 --&amp;gt; [[Force HTTPS for entire website via htaccess]]&lt;br /&gt;
 --&amp;gt; [[Restrict Access to wp-login.php and xmlrpc.php]]&lt;br /&gt;
 --&amp;gt; [[The X-Frame-Options response header]]&lt;br /&gt;
 --&amp;gt; [[Install Xdebug with php-fpm per pool]]&lt;br /&gt;
 --&amp;gt; [[How to Enable Gzip Compression]]&lt;br /&gt;
 --&amp;gt; [[Enable Apache rewrite logging]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with .htpasswd/.htaccess]]&lt;br /&gt;
 --&amp;gt; [[How to Disable PHP Execution in Certain Directories]]&lt;br /&gt;
 --&amp;gt; [[Directory listing in htaccess. Allow, Deny, Disable, Enable Directory Listing in .htaccess]]&lt;br /&gt;
 --&amp;gt; [[What is the Cache-Control Header]]&lt;br /&gt;
 --&amp;gt; [[How do I block a host by ASN for apache - Example]]&lt;br /&gt;
 --&amp;gt; [[Whitelist IP in mod_security]]&lt;br /&gt;
&lt;br /&gt;
[[File:Haproxy.png|100px|frameless|right|alt=Mysql Percona]]&lt;br /&gt;
&lt;br /&gt;
===HAProxy===&lt;br /&gt;
 --&amp;gt; [[What is HAProxy]]&lt;br /&gt;
 --&amp;gt; [[HAProxy vs Nginx]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Load Balancing]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Cluster Setup Example]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Docker]]&lt;br /&gt;
 --&amp;gt; [[HAProxy with Varnish SSL Termination Example]]&lt;br /&gt;
 --&amp;gt; [[HAProxy http2]]&lt;br /&gt;
 --&amp;gt; [[HAProxy GUI]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Install on Centos7]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Cloud Load Balancer]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Block by User-Agent]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Restrict by IP Address]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Redirect domain to another domain]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Rate-Limiting Example]]&lt;br /&gt;
&lt;br /&gt;
[[File:Logo percona server new.png|100px|frameless|right|alt=Mysql Percona]]&lt;br /&gt;
&lt;br /&gt;
===Mysql/Percona===&lt;br /&gt;
 --&amp;gt; [[How to Optimize/Repair a Table]]&lt;br /&gt;
 --&amp;gt; [[MySQL - Check Which Query is Consuming Resources]]&lt;br /&gt;
 --&amp;gt; [[How to Set your MySQL Password]]&lt;br /&gt;
 --&amp;gt; [[Rest your MySQL Admin Password]]&lt;br /&gt;
 --&amp;gt; [[How to Convert Table to InnoDB]] &lt;br /&gt;
 --&amp;gt; [[How to install Percona Database Server]]&lt;br /&gt;
 --&amp;gt; [[How to Access the MySQL via Shell]]&lt;br /&gt;
 --&amp;gt; [[How to Add a User in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to Drop a User in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to Create and Delete a MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to Create a Table in MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to Create a MySQL Database Backup]]&lt;br /&gt;
 --&amp;gt; [[How to Import a MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to update the max_connections setting in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to view a list of MySQL users and their privileges]]&lt;br /&gt;
 --&amp;gt; [[Save MySQL query results into a text or CSV file]]&lt;br /&gt;
 --&amp;gt; [[How to optimize a MySQL database using phpMyAdmin]]&lt;br /&gt;
 --&amp;gt; [[How to solve MySQL max_user_connections error]]&lt;br /&gt;
 --&amp;gt; [[How to enable Show Engine Innodb Status]]&lt;br /&gt;
 --&amp;gt; [[Access mysql/mysqldump without password entry each time - Using .my.cnf]]&lt;br /&gt;
&lt;br /&gt;
[[File:Varnish-cache-log.jpeg|100px|frameless|right|alt=Varnish How tos]]&lt;br /&gt;
&lt;br /&gt;
===Varnish Cache===&lt;br /&gt;
 --&amp;gt; [[Setup Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for Magento]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for Wordpress]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for MediaWiki]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish - Multiple Domains]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish - Multiple Ipaddress]]&lt;br /&gt;
 --&amp;gt; [[Script to Clear a Page from Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Varnish will not restart WHY?]]&lt;br /&gt;
 --&amp;gt; [[Warm up Varnish Script using Sitemap.xml]]&lt;br /&gt;
 --&amp;gt; [[Varnish How to redirect non-www URLs to www]]&lt;br /&gt;
 --&amp;gt; [[Install libvmod-header with Varnish]]&lt;br /&gt;
&lt;br /&gt;
[[File:Nginx-logo.png|100px|frameless|right|Install Nginx|alt=Nginx How tos]]&lt;br /&gt;
&lt;br /&gt;
===Nginx Web Server===&lt;br /&gt;
 --&amp;gt; [[Setup Nginx PHP FPM Percona Mysql]]&lt;br /&gt;
 --&amp;gt; [[Wordpress Ngnix Rewrite Rules]]&lt;br /&gt;
 --&amp;gt; [[Setup up Nginx Caching]]&lt;br /&gt;
 --&amp;gt; [[Nginx Magento vhost Configuration]]&lt;br /&gt;
 --&amp;gt; [[Basic HTTP Authentication with Nginx]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with Nginx]]&lt;br /&gt;
 --&amp;gt; [[403 Forbidden Error Nginx - How to Solve]]&lt;br /&gt;
&lt;br /&gt;
[[File:Sword-of-Omens-Sword1.png|100px|frameless|right|alt=Brian Nelson]]&lt;br /&gt;
&lt;br /&gt;
===Other===&lt;br /&gt;
 --&amp;gt; [[How to add trusted root certificates]]&lt;br /&gt;
 --&amp;gt; [[Find:_10_Useful_Examples_of_Find]]&lt;br /&gt;
 --&amp;gt; [[Send email from PHP to a log file instead of sendmail]]&lt;br /&gt;
 --&amp;gt; [[Debugging Wordpress]]&lt;br /&gt;
 --&amp;gt; [[How to install Linux via USB]]&lt;br /&gt;
 --&amp;gt; [[Network Subnet Mask Cheat Sheet]]&lt;br /&gt;
 --&amp;gt; [[Linux Keyboard Shortcuts]]&lt;br /&gt;
 --&amp;gt; [[Setup a SSH Tunnel for Secure Browsing]]&lt;br /&gt;
 --&amp;gt; [[Install OpenSSH on Windows]]&lt;br /&gt;
 --&amp;gt; [[Install Qmail on a Fresh Centos Server]]&lt;br /&gt;
 --&amp;gt; [[Setup Qmail to Listen on port 587 for SMTP]]&lt;br /&gt;
 --&amp;gt; [[Qmail catch-all account with vpopmail]]&lt;br /&gt;
 --&amp;gt; [[Setup Incoming Email Pipe to Script for Qmail]]&lt;br /&gt;
 --&amp;gt; [[Qmail Control Files]]&lt;br /&gt;
 --&amp;gt; [[Install qmqtool for Qmail on Centos Server]]&lt;br /&gt;
 --&amp;gt; [[Rest Email Password for vpopmail]]&lt;br /&gt;
 --&amp;gt; [[How to check Used IP on your Home Network]]&lt;br /&gt;
 --&amp;gt; [[How to find GMAIL IPs to allow at Firewall]]&lt;br /&gt;
 --&amp;gt; [[Useful TCPDUMP commands]]&lt;br /&gt;
 --&amp;gt; [[Remove Email Block Lists]]&lt;br /&gt;
 --&amp;gt; [[How to disable qmail vpopmail email user]] &lt;br /&gt;
 --&amp;gt; [[Git Cheat Sheet - Git made easy]]&lt;br /&gt;
 --&amp;gt; [[Top Chmod Command Examples for Beginners]]&lt;br /&gt;
 --&amp;gt; [[Benchmarking and Load Testing with Siege]]&lt;br /&gt;
 --&amp;gt; [[Benchmarking and Load Testing with Apache Bench(AB)]]&lt;br /&gt;
 --&amp;gt; [[How do I find out more about socket files in /proc/fd]]&lt;br /&gt;
 --&amp;gt; [[How to Disable the wp-cron.php in WordPress]]&lt;br /&gt;
 --&amp;gt; [[How to delete mail queue in Postfix]]&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Top Command Line Games - Linux CLI Games]] &amp;lt;sub&amp;gt;Cause Linux can be fun&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Centos Oneliners]]&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Bash Script to Check Memory with Email Alert when Low]]&lt;br /&gt;
 --&amp;gt; [[Bash Script to Check Site Code Status with Email Alert]]&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=HAProxy_Rate-Limiting_Example&amp;diff=1072</id>
		<title>HAProxy Rate-Limiting Example</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=HAProxy_Rate-Limiting_Example&amp;diff=1072"/>
				<updated>2024-08-14T04:17:51Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: Created page with &amp;quot;===HAProxy Rate-Limiting Example=== One of the benefits of haproxy is how easy it is to rate-limit aggressive ips.  Recently I had to start rate-limiting aggressive ips that a...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===HAProxy Rate-Limiting Example===&lt;br /&gt;
One of the benefits of haproxy is how easy it is to rate-limit aggressive ips.&lt;br /&gt;
&lt;br /&gt;
Recently I had to start rate-limiting aggressive ips that are attempting to hack your site or just cause a small ddos attack.&lt;br /&gt;
&lt;br /&gt;
I added the following to my configuration right before the backends.&lt;br /&gt;
&lt;br /&gt;
  ##Whitelist &lt;br /&gt;
    acl whitelist_ip hdr_ip(x-forwarded-for,1) -f /etc/haproxy/whitelist_ip.txt&lt;br /&gt;
    acl whitelist_ip src -m ip -f /etc/haproxy/whitelist_ip.txt&lt;br /&gt;
 &lt;br /&gt;
  ## IP Rate Limiting ##&lt;br /&gt;
    stick-table  type ipv6  size 100k  expire 30s  store http_req_rate(10s)&lt;br /&gt;
    http-request track-sc0 src&lt;br /&gt;
    http-request deny deny_status 429 if { sc_http_req_rate(0) gt 20 } !whitelist_ip&lt;br /&gt;
 &lt;br /&gt;
   ## Route to chosen backend&lt;br /&gt;
  use_backend     %[var(req.backend)]            if { var(req.backend) -m found }&lt;br /&gt;
  default_backend apache-backend&lt;br /&gt;
&lt;br /&gt;
===Rules Explained===&lt;br /&gt;
The rule says if they create 20 sessions in 10s from a specific ip address (aggressive ips), you block them for 30 seconds if the ip address is NOT whitelisted.&lt;br /&gt;
&lt;br /&gt;
I use the whitelist for my ip and most good bots.&lt;br /&gt;
&lt;br /&gt;
===Explainations and Customizations===&lt;br /&gt;
&lt;br /&gt;
The stick-table directive creates a key-value store for storing counters like the HTTP request rate per client. The key is the client’s IP address, as configured by the type parameter, which is used to store and aggregate that client’s number of requests. The http-request track-sc0 src line adds the client as a record in the stick table. The counters begin to be recorded as soon as the IP is added.&lt;br /&gt;
&lt;br /&gt;
A stick table record expires and is removed after a period of inactivity by the client, as set by the expire parameter. That’s just a way of freeing up space. Without an expire parameter, the oldest records are evicted when the storage becomes full. Here, we’re allowing 100,000 records.&lt;br /&gt;
&lt;br /&gt;
The http-request deny line sets the rate limit threshold and the action to take when someone exceeds it. Here, we’re allowing up to 20 concurrent requests and denying additional ones with a 429 Too Many Requests response until the count during the last 10 seconds is below the threshold again. Other actions include forwarding the client to a dedicated backend or silently dropping the connection. The sc_http_req_rate fetch method returns the client’s current request rate.&lt;br /&gt;
&lt;br /&gt;
You can play with the time period or the threshold. Instead of counting requests over 10 seconds, you might extend it to something like 1000 requests during the last 24 hours. Simply change the counter specified on the stick-table line from http_req_rate(10s) to http_req_rate(24h). Then update the http-request deny line to allow no more than 1000 requests.&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Main_Page&amp;diff=1071</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Main_Page&amp;diff=1071"/>
				<updated>2024-08-14T04:04:35Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* HAProxy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Welcome to Ramblings of a Centos Ninja==&lt;br /&gt;
&lt;br /&gt;
[[File:Centos-logo.png|100px|frameless|right|alt=Centos How-Tos]]&lt;br /&gt;
===Centos 7===&lt;br /&gt;
 --&amp;gt; [[Install Remi and EPEL yum repo Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Mysql Database Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Apache Web Server Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install PHP/PHP-FPM 5.4 Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install (LAMP) Linux Apache MySQL and PHP Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Redis on Centos 7 How To]]&lt;br /&gt;
 --&amp;gt; [[How To Configure SWAP on Centos 7]] &lt;br /&gt;
 --&amp;gt; [[How to find user memory usage in linux]]&lt;br /&gt;
 --&amp;gt; [[How to Configure letsencrypt with Apache on Centos 7 Server]]&lt;br /&gt;
 --&amp;gt; [[How to configure Gmail as a Mail Relay with Postfix]]&lt;br /&gt;
 --&amp;gt; [[How use GeoIP on the command line Centos7]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with .htpasswd/.htaccess]]&lt;br /&gt;
 --&amp;gt; [[Linux setfacl command]]&lt;br /&gt;
 --&amp;gt; [[How to disable SSH timeout]]  [[File:New.jpg|35px|frameless]]&lt;br /&gt;
 --&amp;gt; [[How to Install Squid Proxy Server on Cento7]]  [[File:New.jpg|35px|frameless]]&lt;br /&gt;
 --&amp;gt; [[How To Use Systemctl to Manage Systemd Services]]&lt;br /&gt;
&lt;br /&gt;
===Centos 6===&lt;br /&gt;
 --&amp;gt; [[Change Runlevel]]&lt;br /&gt;
 --&amp;gt; [[Check Current Runlevel]]&lt;br /&gt;
 --&amp;gt; [[Change Run Level at Bootup]]&lt;br /&gt;
 --&amp;gt; [[How to change the Hostname on Centos]]&lt;br /&gt;
 --&amp;gt; [[chkconfig settings]]&lt;br /&gt;
 --&amp;gt; [[How to extract a tar.gz file]]&lt;br /&gt;
 --&amp;gt; [[Install SIM - System Integrity Monitor]]&lt;br /&gt;
 --&amp;gt; [[Use Bash on a Non Bash User]]&lt;br /&gt;
 --&amp;gt; [[Quit Bash Shell without Saving Bash History]]&lt;br /&gt;
 --&amp;gt; [[Change the Timezone Centos]]&lt;br /&gt;
 --&amp;gt; [[Check the Version of Package]]&lt;br /&gt;
 --&amp;gt; [[How to install Sphinx on Centos Server]]&lt;br /&gt;
 --&amp;gt; [[How to install Redis on a Centos 6.4 Server]]&lt;br /&gt;
 --&amp;gt; [[Basic Redis commands - Cheat Sheet]]&lt;br /&gt;
 --&amp;gt; [[Adding a New Disk Drive with Centos]]&lt;br /&gt;
 --&amp;gt; [[Creating Backups using rsync with Examples]]&lt;br /&gt;
 --&amp;gt; [[Expand your bash_history to 2500]]&lt;br /&gt;
 --&amp;gt; [[Setup logrotate to rotate your logs]]&lt;br /&gt;
 --&amp;gt; [[GPG: Encrypt And Decrypt Files With A Password]]&lt;br /&gt;
 --&amp;gt; [[Install Remi and EPEL yum repo]] &lt;br /&gt;
 --&amp;gt; [[Install NewRelic on Centos6]]&lt;br /&gt;
 --&amp;gt; [[Setting Up An NFS Server And Client On CentOS 6]]&lt;br /&gt;
 --&amp;gt; [[Sar is not working how to restart]]&lt;br /&gt;
 --&amp;gt; [[Batch jpeg Image Optimization]]&lt;br /&gt;
 --&amp;gt; [[Howto Block or Open HTTP/HTTPs Ports IPTables]]&lt;br /&gt;
 --&amp;gt; [[Reset Root Password in CentOS]]&lt;br /&gt;
 --&amp;gt; [[Setup vsftp with SELinux]]&lt;br /&gt;
 --&amp;gt; [[Howto Setup NTP on CentOS]]&lt;br /&gt;
 --&amp;gt; [[Fix corrupted RPM database]]&lt;br /&gt;
 --&amp;gt; [[Crontab Usage]]&lt;br /&gt;
 --&amp;gt; [[Make an ISO from a Folder with mkisofs]]&lt;br /&gt;
 --&amp;gt; [[How to setup a VPN server with CentOS PPTPD]]&lt;br /&gt;
 --&amp;gt; [[APF Firewall -Advanced Policy Firewall - Basics]]&lt;br /&gt;
 --&amp;gt; [[How to Block Bittorrent Traffic with IPtables]]&lt;br /&gt;
 --&amp;gt; [[How to find user memory usage in linux]]&lt;br /&gt;
 --&amp;gt; [[How to install ccsrch on Centos 6]]&lt;br /&gt;
 --&amp;gt; [[How to install jpegoptim for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install optipng for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install gifsicle for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install jpegtran for CentOS]]&lt;br /&gt;
 --&amp;gt; [[IPTABLES quick command list]]&lt;br /&gt;
 --&amp;gt; [[Linux setfacl command]]&lt;br /&gt;
 --&amp;gt; [[Postfix Mail Queue Commands for Reviewing Emails]]&lt;br /&gt;
&lt;br /&gt;
[[File:Magentos.jpg|100px|frameless|right|alt=Magento How To's]]&lt;br /&gt;
&lt;br /&gt;
===Magento Community Edition/Magento Enterprise Edition===&lt;br /&gt;
 --&amp;gt; [[What is Magento?]]&lt;br /&gt;
 --&amp;gt; [[Clear Magento Cache]]&lt;br /&gt;
 --&amp;gt; [[Disable Magento Modules]]&lt;br /&gt;
 --&amp;gt; [[Turn on Manual Indexing]]&lt;br /&gt;
 --&amp;gt; [[How to Reset Magento Password]]&lt;br /&gt;
 --&amp;gt; [[How to Create Users in Mageento]]&lt;br /&gt;
 --&amp;gt; [[Enable Mysql Slow Query Logging]]&lt;br /&gt;
 --&amp;gt; [[Magento Connect is not Working]]&lt;br /&gt;
 --&amp;gt; [[Magento will NOT save my Product Updates]]&lt;br /&gt;
 --&amp;gt; [[Magento Internal Cron not Running]]&lt;br /&gt;
 --&amp;gt; [[Setting up the System Cron Job]]&lt;br /&gt;
 --&amp;gt; [[Magento Connect is not Working]]&lt;br /&gt;
 --&amp;gt; [[Changing the Minimum Search Query - MySQL Full Text Only]]&lt;br /&gt;
 --&amp;gt; [[Install Redis Caching for Magento]]&lt;br /&gt;
 --&amp;gt; [[Install Redis Full Page Caching for Magento Enterprise]]&lt;br /&gt;
 --&amp;gt; [[Setting up a Second Instance of Redis]]&lt;br /&gt;
 --&amp;gt; [[Magento Setup Return-Path Email]]&lt;br /&gt;
 --&amp;gt; [[Magento Server Compatibility Check]]&lt;br /&gt;
 --&amp;gt; [[Magento Database Optimization - Log Cleaning Script]]&lt;br /&gt;
 --&amp;gt; [[Magento Site Performance Optimization]] &lt;br /&gt;
 --&amp;gt; [[Magento Log Rotate with logrotate]]&lt;br /&gt;
 --&amp;gt; [[How to use CDN with Webfonts with Magento]] &lt;br /&gt;
 --&amp;gt; [[How to Disable Magento Newsletter Module]]&lt;br /&gt;
 --&amp;gt; [[Magento : Execute Custom Module Cron Manually]]&lt;br /&gt;
&lt;br /&gt;
[[File:Magentos.jpg|100px|frameless|right|alt=Magento2 How To's]]&lt;br /&gt;
&lt;br /&gt;
===Magento 2 Community Edition===&lt;br /&gt;
 --&amp;gt; [[Upgrade Magento2 via CLI]]&lt;br /&gt;
 --&amp;gt; [[Enable/Disable Magento2 Maintenance Page]]&lt;br /&gt;
 --&amp;gt; [[How to set Magento 2 permissions and avoid installation errors]]&lt;br /&gt;
 --&amp;gt; [[How to speed up Magento 2 out of the box]]&lt;br /&gt;
 --&amp;gt; [[How to Change Magento 2 mode]]&lt;br /&gt;
 --&amp;gt; [[How to Enable Disable Magento 2 caches]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 How to Add Alternative HTTP headers]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Purge Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Redis Page Cache and Default Cache Example]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 How to check Magento Version]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Reindex Error: Index is locked by another reindex process. Skipping]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Reindex via the CLI]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Custom 503 Maintenance page]]&lt;br /&gt;
&lt;br /&gt;
[[File:Memcahed.jpg|100px|frameless|right|alt=Memcache Caching]]&lt;br /&gt;
&lt;br /&gt;
===Memcached Server===&lt;br /&gt;
 --&amp;gt; [[Memcached Monitor Tool]]&lt;br /&gt;
 --&amp;gt; [[Setup Multi Instance Memcache]]&lt;br /&gt;
 --&amp;gt; [[Check if Memcached is Running]]&lt;br /&gt;
 --&amp;gt; [[Flush Your Memcached Instance]]&lt;br /&gt;
 --&amp;gt; [[Check Memory Usage of Memcached]]&lt;br /&gt;
 --&amp;gt; [[Memcache running out of Memory?]]&lt;br /&gt;
 --&amp;gt; [[Memcached List all Keys]]&lt;br /&gt;
&lt;br /&gt;
[[File:Apachelogo.gif|100px|right|alt=Apache How Tos]]&lt;br /&gt;
&lt;br /&gt;
===Apache/PHP===  &lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Deny access to my site with an .htaccess file]]&lt;br /&gt;
 --&amp;gt; [[Redirect site to www or non www]]&lt;br /&gt;
 --&amp;gt; [[Restrict POST request to Website]]&lt;br /&gt;
 --&amp;gt; [[Install Tomcat6 Server on Centos 6]]&lt;br /&gt;
 --&amp;gt; [[How to setup an SSL Certificate for Free]]&lt;br /&gt;
 --&amp;gt; [[Enable Apache to Create Core Dumps]]&lt;br /&gt;
 --&amp;gt; [[Enable php-fpm to create core dumps]]&lt;br /&gt;
 --&amp;gt; [[Debug PHP Enabling slow_log]] &lt;br /&gt;
 --&amp;gt; [[Block Bots by User Agent String]]&lt;br /&gt;
 --&amp;gt; [[Install mod_extact_forward - Show Real IP behind Proxy]]&lt;br /&gt;
 --&amp;gt; [[Install ionCube Loaders for Centos]]&lt;br /&gt;
 --&amp;gt; [[Install Zend Guard with PHP 5.3 on Centos]]&lt;br /&gt;
 --&amp;gt; [[Install Zend Guard 6.0 with PHP 5.4 on Centos]]&lt;br /&gt;
 --&amp;gt; [[Disable Mod_Security for a single vhost]]&lt;br /&gt;
 --&amp;gt; [[Hide PHP Version(X-Powered-By) in Headers]]&lt;br /&gt;
 --&amp;gt; [[Sessions are ending before MaxLifetime]]&lt;br /&gt;
 --&amp;gt; [[Apache mod_speling case insensitive urls issue]]&lt;br /&gt;
 --&amp;gt; [[Restrict access via htaccess via ipaddress]]&lt;br /&gt;
 --&amp;gt; [[Howto install mod_evasive with fail2ban]]&lt;br /&gt;
 --&amp;gt; [[Install the Latest version PHP on CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to bypass .htpasswd for certain IPs Apache]]&lt;br /&gt;
 --&amp;gt; [[Clear mod_pagespeed cache ]]&lt;br /&gt;
 --&amp;gt; [[Install GeoIP for Apache and PHP]]&lt;br /&gt;
 --&amp;gt; [[How to block or allow countries using GeoIP and .htaccess]]&lt;br /&gt;
 --&amp;gt; [[How to disable mod_security per vhost]]&lt;br /&gt;
 --&amp;gt; [[Force HTTPS for entire website via htaccess]]&lt;br /&gt;
 --&amp;gt; [[Restrict Access to wp-login.php and xmlrpc.php]]&lt;br /&gt;
 --&amp;gt; [[The X-Frame-Options response header]]&lt;br /&gt;
 --&amp;gt; [[Install Xdebug with php-fpm per pool]]&lt;br /&gt;
 --&amp;gt; [[How to Enable Gzip Compression]]&lt;br /&gt;
 --&amp;gt; [[Enable Apache rewrite logging]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with .htpasswd/.htaccess]]&lt;br /&gt;
 --&amp;gt; [[How to Disable PHP Execution in Certain Directories]]&lt;br /&gt;
 --&amp;gt; [[Directory listing in htaccess. Allow, Deny, Disable, Enable Directory Listing in .htaccess]]&lt;br /&gt;
 --&amp;gt; [[What is the Cache-Control Header]]&lt;br /&gt;
 --&amp;gt; [[How do I block a host by ASN for apache - Example]]&lt;br /&gt;
[[File:Haproxy.png|100px|frameless|right|alt=Mysql Percona]]&lt;br /&gt;
&lt;br /&gt;
===HAProxy===&lt;br /&gt;
 --&amp;gt; [[What is HAProxy]]&lt;br /&gt;
 --&amp;gt; [[HAProxy vs Nginx]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Load Balancing]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Cluster Setup Example]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Docker]]&lt;br /&gt;
 --&amp;gt; [[HAProxy with Varnish SSL Termination Example]]&lt;br /&gt;
 --&amp;gt; [[HAProxy http2]]&lt;br /&gt;
 --&amp;gt; [[HAProxy GUI]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Install on Centos7]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Cloud Load Balancer]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Block by User-Agent]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Restrict by IP Address]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Redirect domain to another domain]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Rate-Limiting Example]]&lt;br /&gt;
&lt;br /&gt;
[[File:Logo percona server new.png|100px|frameless|right|alt=Mysql Percona]]&lt;br /&gt;
&lt;br /&gt;
===Mysql/Percona===&lt;br /&gt;
 --&amp;gt; [[How to Optimize/Repair a Table]]&lt;br /&gt;
 --&amp;gt; [[MySQL - Check Which Query is Consuming Resources]]&lt;br /&gt;
 --&amp;gt; [[How to Set your MySQL Password]]&lt;br /&gt;
 --&amp;gt; [[Rest your MySQL Admin Password]]&lt;br /&gt;
 --&amp;gt; [[How to Convert Table to InnoDB]] &lt;br /&gt;
 --&amp;gt; [[How to install Percona Database Server]]&lt;br /&gt;
 --&amp;gt; [[How to Access the MySQL via Shell]]&lt;br /&gt;
 --&amp;gt; [[How to Add a User in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to Drop a User in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to Create and Delete a MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to Create a Table in MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to Create a MySQL Database Backup]]&lt;br /&gt;
 --&amp;gt; [[How to Import a MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to update the max_connections setting in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to view a list of MySQL users and their privileges]]&lt;br /&gt;
 --&amp;gt; [[Save MySQL query results into a text or CSV file]]&lt;br /&gt;
 --&amp;gt; [[How to optimize a MySQL database using phpMyAdmin]]&lt;br /&gt;
 --&amp;gt; [[How to solve MySQL max_user_connections error]]&lt;br /&gt;
 --&amp;gt; [[How to enable Show Engine Innodb Status]]&lt;br /&gt;
 --&amp;gt; [[Access mysql/mysqldump without password entry each time - Using .my.cnf]]&lt;br /&gt;
&lt;br /&gt;
[[File:Varnish-cache-log.jpeg|100px|frameless|right|alt=Varnish How tos]]&lt;br /&gt;
&lt;br /&gt;
===Varnish Cache===&lt;br /&gt;
 --&amp;gt; [[Setup Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for Magento]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for Wordpress]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for MediaWiki]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish - Multiple Domains]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish - Multiple Ipaddress]]&lt;br /&gt;
 --&amp;gt; [[Script to Clear a Page from Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Varnish will not restart WHY?]]&lt;br /&gt;
 --&amp;gt; [[Warm up Varnish Script using Sitemap.xml]]&lt;br /&gt;
 --&amp;gt; [[Varnish How to redirect non-www URLs to www]]&lt;br /&gt;
 --&amp;gt; [[Install libvmod-header with Varnish]]&lt;br /&gt;
&lt;br /&gt;
[[File:Nginx-logo.png|100px|frameless|right|Install Nginx|alt=Nginx How tos]]&lt;br /&gt;
&lt;br /&gt;
===Nginx Web Server===&lt;br /&gt;
 --&amp;gt; [[Setup Nginx PHP FPM Percona Mysql]]&lt;br /&gt;
 --&amp;gt; [[Wordpress Ngnix Rewrite Rules]]&lt;br /&gt;
 --&amp;gt; [[Setup up Nginx Caching]]&lt;br /&gt;
 --&amp;gt; [[Nginx Magento vhost Configuration]]&lt;br /&gt;
 --&amp;gt; [[Basic HTTP Authentication with Nginx]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with Nginx]]&lt;br /&gt;
 --&amp;gt; [[403 Forbidden Error Nginx - How to Solve]]&lt;br /&gt;
&lt;br /&gt;
[[File:Sword-of-Omens-Sword1.png|100px|frameless|right|alt=Brian Nelson]]&lt;br /&gt;
&lt;br /&gt;
===Other===&lt;br /&gt;
 --&amp;gt; [[How to add trusted root certificates]]&lt;br /&gt;
 --&amp;gt; [[Find:_10_Useful_Examples_of_Find]]&lt;br /&gt;
 --&amp;gt; [[Send email from PHP to a log file instead of sendmail]]&lt;br /&gt;
 --&amp;gt; [[Debugging Wordpress]]&lt;br /&gt;
 --&amp;gt; [[How to install Linux via USB]]&lt;br /&gt;
 --&amp;gt; [[Network Subnet Mask Cheat Sheet]]&lt;br /&gt;
 --&amp;gt; [[Linux Keyboard Shortcuts]]&lt;br /&gt;
 --&amp;gt; [[Setup a SSH Tunnel for Secure Browsing]]&lt;br /&gt;
 --&amp;gt; [[Install OpenSSH on Windows]]&lt;br /&gt;
 --&amp;gt; [[Install Qmail on a Fresh Centos Server]]&lt;br /&gt;
 --&amp;gt; [[Setup Qmail to Listen on port 587 for SMTP]]&lt;br /&gt;
 --&amp;gt; [[Qmail catch-all account with vpopmail]]&lt;br /&gt;
 --&amp;gt; [[Setup Incoming Email Pipe to Script for Qmail]]&lt;br /&gt;
 --&amp;gt; [[Qmail Control Files]]&lt;br /&gt;
 --&amp;gt; [[Install qmqtool for Qmail on Centos Server]]&lt;br /&gt;
 --&amp;gt; [[Rest Email Password for vpopmail]]&lt;br /&gt;
 --&amp;gt; [[How to check Used IP on your Home Network]]&lt;br /&gt;
 --&amp;gt; [[How to find GMAIL IPs to allow at Firewall]]&lt;br /&gt;
 --&amp;gt; [[Useful TCPDUMP commands]]&lt;br /&gt;
 --&amp;gt; [[Remove Email Block Lists]]&lt;br /&gt;
 --&amp;gt; [[How to disable qmail vpopmail email user]] &lt;br /&gt;
 --&amp;gt; [[Git Cheat Sheet - Git made easy]]&lt;br /&gt;
 --&amp;gt; [[Top Chmod Command Examples for Beginners]]&lt;br /&gt;
 --&amp;gt; [[Benchmarking and Load Testing with Siege]]&lt;br /&gt;
 --&amp;gt; [[Benchmarking and Load Testing with Apache Bench(AB)]]&lt;br /&gt;
 --&amp;gt; [[How do I find out more about socket files in /proc/fd]]&lt;br /&gt;
 --&amp;gt; [[How to Disable the wp-cron.php in WordPress]]&lt;br /&gt;
 --&amp;gt; [[How to delete mail queue in Postfix]]&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Top Command Line Games - Linux CLI Games]] &amp;lt;sub&amp;gt;Cause Linux can be fun&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Centos Oneliners]]&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Bash Script to Check Memory with Email Alert when Low]]&lt;br /&gt;
 --&amp;gt; [[Bash Script to Check Site Code Status with Email Alert]]&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Access_mysql/mysqldump_without_password_entry_each_time_-_Using_.my.cnf&amp;diff=1070</id>
		<title>Access mysql/mysqldump without password entry each time - Using .my.cnf</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Access_mysql/mysqldump_without_password_entry_each_time_-_Using_.my.cnf&amp;diff=1070"/>
				<updated>2023-08-26T02:59:31Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: Created page with &amp;quot;==Access mysql/mysqldump without password entry each time - Using .my.cnf==  In this guide we will show you have to save your mysql credentials so you do not have to enter the...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Access mysql/mysqldump without password entry each time - Using .my.cnf==&lt;br /&gt;
&lt;br /&gt;
In this guide we will show you have to save your mysql credentials so you do not have to enter them each time run mysql or mysqldump.&lt;br /&gt;
&lt;br /&gt;
This is done by creating a ~/.my.cnf file in your users home directory.&lt;br /&gt;
&lt;br /&gt;
 vim /home/bnelson/.my.cnf or vim ~/.my.cnf&lt;br /&gt;
&lt;br /&gt;
After you have created this file you can enter your credentials.&lt;br /&gt;
&lt;br /&gt;
  [client]&lt;br /&gt;
  user=mysqluser&lt;br /&gt;
  password=mysqlpass&lt;br /&gt;
&lt;br /&gt;
* It is best to use a superuser for this, so that you can have access to all databases.&lt;br /&gt;
&lt;br /&gt;
If you are attempting to create a script to do a mysql dump or optimization, this will allow you run that script without having it stop and wait for credentials.&lt;br /&gt;
&lt;br /&gt;
===Overview and Thoughts===&lt;br /&gt;
&lt;br /&gt;
'''For safety, make this file readable to you only by running chmod 0600 ~/.my.cnf &lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
Of course, if you specify username and password explicitly as part of commands arguments, they will be used.&lt;br /&gt;
&lt;br /&gt;
Next time you run mysql commands mysql, mysqlcheck, mysqdump, etc; they will pick username &amp;amp; password from this file if you do not provide them as argument (-u and -p).&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Main_Page&amp;diff=1069</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Main_Page&amp;diff=1069"/>
				<updated>2023-08-26T02:50:23Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Mysql/Percona */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Welcome to Ramblings of a Centos Ninja==&lt;br /&gt;
&lt;br /&gt;
[[File:Centos-logo.png|100px|frameless|right|alt=Centos How-Tos]]&lt;br /&gt;
===Centos 7===&lt;br /&gt;
 --&amp;gt; [[Install Remi and EPEL yum repo Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Mysql Database Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Apache Web Server Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install PHP/PHP-FPM 5.4 Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install (LAMP) Linux Apache MySQL and PHP Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Redis on Centos 7 How To]]&lt;br /&gt;
 --&amp;gt; [[How To Configure SWAP on Centos 7]] &lt;br /&gt;
 --&amp;gt; [[How to find user memory usage in linux]]&lt;br /&gt;
 --&amp;gt; [[How to Configure letsencrypt with Apache on Centos 7 Server]]&lt;br /&gt;
 --&amp;gt; [[How to configure Gmail as a Mail Relay with Postfix]]&lt;br /&gt;
 --&amp;gt; [[How use GeoIP on the command line Centos7]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with .htpasswd/.htaccess]]&lt;br /&gt;
 --&amp;gt; [[Linux setfacl command]]&lt;br /&gt;
 --&amp;gt; [[How to disable SSH timeout]]  [[File:New.jpg|35px|frameless]]&lt;br /&gt;
 --&amp;gt; [[How to Install Squid Proxy Server on Cento7]]  [[File:New.jpg|35px|frameless]]&lt;br /&gt;
 --&amp;gt; [[How To Use Systemctl to Manage Systemd Services]]&lt;br /&gt;
&lt;br /&gt;
===Centos 6===&lt;br /&gt;
 --&amp;gt; [[Change Runlevel]]&lt;br /&gt;
 --&amp;gt; [[Check Current Runlevel]]&lt;br /&gt;
 --&amp;gt; [[Change Run Level at Bootup]]&lt;br /&gt;
 --&amp;gt; [[How to change the Hostname on Centos]]&lt;br /&gt;
 --&amp;gt; [[chkconfig settings]]&lt;br /&gt;
 --&amp;gt; [[How to extract a tar.gz file]]&lt;br /&gt;
 --&amp;gt; [[Install SIM - System Integrity Monitor]]&lt;br /&gt;
 --&amp;gt; [[Use Bash on a Non Bash User]]&lt;br /&gt;
 --&amp;gt; [[Quit Bash Shell without Saving Bash History]]&lt;br /&gt;
 --&amp;gt; [[Change the Timezone Centos]]&lt;br /&gt;
 --&amp;gt; [[Check the Version of Package]]&lt;br /&gt;
 --&amp;gt; [[How to install Sphinx on Centos Server]]&lt;br /&gt;
 --&amp;gt; [[How to install Redis on a Centos 6.4 Server]]&lt;br /&gt;
 --&amp;gt; [[Basic Redis commands - Cheat Sheet]]&lt;br /&gt;
 --&amp;gt; [[Adding a New Disk Drive with Centos]]&lt;br /&gt;
 --&amp;gt; [[Creating Backups using rsync with Examples]]&lt;br /&gt;
 --&amp;gt; [[Expand your bash_history to 2500]]&lt;br /&gt;
 --&amp;gt; [[Setup logrotate to rotate your logs]]&lt;br /&gt;
 --&amp;gt; [[GPG: Encrypt And Decrypt Files With A Password]]&lt;br /&gt;
 --&amp;gt; [[Install Remi and EPEL yum repo]] &lt;br /&gt;
 --&amp;gt; [[Install NewRelic on Centos6]]&lt;br /&gt;
 --&amp;gt; [[Setting Up An NFS Server And Client On CentOS 6]]&lt;br /&gt;
 --&amp;gt; [[Sar is not working how to restart]]&lt;br /&gt;
 --&amp;gt; [[Batch jpeg Image Optimization]]&lt;br /&gt;
 --&amp;gt; [[Howto Block or Open HTTP/HTTPs Ports IPTables]]&lt;br /&gt;
 --&amp;gt; [[Reset Root Password in CentOS]]&lt;br /&gt;
 --&amp;gt; [[Setup vsftp with SELinux]]&lt;br /&gt;
 --&amp;gt; [[Howto Setup NTP on CentOS]]&lt;br /&gt;
 --&amp;gt; [[Fix corrupted RPM database]]&lt;br /&gt;
 --&amp;gt; [[Crontab Usage]]&lt;br /&gt;
 --&amp;gt; [[Make an ISO from a Folder with mkisofs]]&lt;br /&gt;
 --&amp;gt; [[How to setup a VPN server with CentOS PPTPD]]&lt;br /&gt;
 --&amp;gt; [[APF Firewall -Advanced Policy Firewall - Basics]]&lt;br /&gt;
 --&amp;gt; [[How to Block Bittorrent Traffic with IPtables]]&lt;br /&gt;
 --&amp;gt; [[How to find user memory usage in linux]]&lt;br /&gt;
 --&amp;gt; [[How to install ccsrch on Centos 6]]&lt;br /&gt;
 --&amp;gt; [[How to install jpegoptim for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install optipng for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install gifsicle for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install jpegtran for CentOS]]&lt;br /&gt;
 --&amp;gt; [[IPTABLES quick command list]]&lt;br /&gt;
 --&amp;gt; [[Linux setfacl command]]&lt;br /&gt;
 --&amp;gt; [[Postfix Mail Queue Commands for Reviewing Emails]]&lt;br /&gt;
&lt;br /&gt;
[[File:Magentos.jpg|100px|frameless|right|alt=Magento How To's]]&lt;br /&gt;
&lt;br /&gt;
===Magento Community Edition/Magento Enterprise Edition===&lt;br /&gt;
 --&amp;gt; [[What is Magento?]]&lt;br /&gt;
 --&amp;gt; [[Clear Magento Cache]]&lt;br /&gt;
 --&amp;gt; [[Disable Magento Modules]]&lt;br /&gt;
 --&amp;gt; [[Turn on Manual Indexing]]&lt;br /&gt;
 --&amp;gt; [[How to Reset Magento Password]]&lt;br /&gt;
 --&amp;gt; [[How to Create Users in Mageento]]&lt;br /&gt;
 --&amp;gt; [[Enable Mysql Slow Query Logging]]&lt;br /&gt;
 --&amp;gt; [[Magento Connect is not Working]]&lt;br /&gt;
 --&amp;gt; [[Magento will NOT save my Product Updates]]&lt;br /&gt;
 --&amp;gt; [[Magento Internal Cron not Running]]&lt;br /&gt;
 --&amp;gt; [[Setting up the System Cron Job]]&lt;br /&gt;
 --&amp;gt; [[Magento Connect is not Working]]&lt;br /&gt;
 --&amp;gt; [[Changing the Minimum Search Query - MySQL Full Text Only]]&lt;br /&gt;
 --&amp;gt; [[Install Redis Caching for Magento]]&lt;br /&gt;
 --&amp;gt; [[Install Redis Full Page Caching for Magento Enterprise]]&lt;br /&gt;
 --&amp;gt; [[Setting up a Second Instance of Redis]]&lt;br /&gt;
 --&amp;gt; [[Magento Setup Return-Path Email]]&lt;br /&gt;
 --&amp;gt; [[Magento Server Compatibility Check]]&lt;br /&gt;
 --&amp;gt; [[Magento Database Optimization - Log Cleaning Script]]&lt;br /&gt;
 --&amp;gt; [[Magento Site Performance Optimization]] &lt;br /&gt;
 --&amp;gt; [[Magento Log Rotate with logrotate]]&lt;br /&gt;
 --&amp;gt; [[How to use CDN with Webfonts with Magento]] &lt;br /&gt;
 --&amp;gt; [[How to Disable Magento Newsletter Module]]&lt;br /&gt;
 --&amp;gt; [[Magento : Execute Custom Module Cron Manually]]&lt;br /&gt;
&lt;br /&gt;
[[File:Magentos.jpg|100px|frameless|right|alt=Magento2 How To's]]&lt;br /&gt;
&lt;br /&gt;
===Magento 2 Community Edition===&lt;br /&gt;
 --&amp;gt; [[Upgrade Magento2 via CLI]]&lt;br /&gt;
 --&amp;gt; [[Enable/Disable Magento2 Maintenance Page]]&lt;br /&gt;
 --&amp;gt; [[How to set Magento 2 permissions and avoid installation errors]]&lt;br /&gt;
 --&amp;gt; [[How to speed up Magento 2 out of the box]]&lt;br /&gt;
 --&amp;gt; [[How to Change Magento 2 mode]]&lt;br /&gt;
 --&amp;gt; [[How to Enable Disable Magento 2 caches]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 How to Add Alternative HTTP headers]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Purge Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Redis Page Cache and Default Cache Example]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 How to check Magento Version]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Reindex Error: Index is locked by another reindex process. Skipping]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Reindex via the CLI]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Custom 503 Maintenance page]]&lt;br /&gt;
&lt;br /&gt;
[[File:Memcahed.jpg|100px|frameless|right|alt=Memcache Caching]]&lt;br /&gt;
&lt;br /&gt;
===Memcached Server===&lt;br /&gt;
 --&amp;gt; [[Memcached Monitor Tool]]&lt;br /&gt;
 --&amp;gt; [[Setup Multi Instance Memcache]]&lt;br /&gt;
 --&amp;gt; [[Check if Memcached is Running]]&lt;br /&gt;
 --&amp;gt; [[Flush Your Memcached Instance]]&lt;br /&gt;
 --&amp;gt; [[Check Memory Usage of Memcached]]&lt;br /&gt;
 --&amp;gt; [[Memcache running out of Memory?]]&lt;br /&gt;
 --&amp;gt; [[Memcached List all Keys]]&lt;br /&gt;
&lt;br /&gt;
[[File:Apachelogo.gif|100px|right|alt=Apache How Tos]]&lt;br /&gt;
&lt;br /&gt;
===Apache/PHP===  &lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Deny access to my site with an .htaccess file]]&lt;br /&gt;
 --&amp;gt; [[Redirect site to www or non www]]&lt;br /&gt;
 --&amp;gt; [[Restrict POST request to Website]]&lt;br /&gt;
 --&amp;gt; [[Install Tomcat6 Server on Centos 6]]&lt;br /&gt;
 --&amp;gt; [[How to setup an SSL Certificate for Free]]&lt;br /&gt;
 --&amp;gt; [[Enable Apache to Create Core Dumps]]&lt;br /&gt;
 --&amp;gt; [[Enable php-fpm to create core dumps]]&lt;br /&gt;
 --&amp;gt; [[Debug PHP Enabling slow_log]] &lt;br /&gt;
 --&amp;gt; [[Block Bots by User Agent String]]&lt;br /&gt;
 --&amp;gt; [[Install mod_extact_forward - Show Real IP behind Proxy]]&lt;br /&gt;
 --&amp;gt; [[Install ionCube Loaders for Centos]]&lt;br /&gt;
 --&amp;gt; [[Install Zend Guard with PHP 5.3 on Centos]]&lt;br /&gt;
 --&amp;gt; [[Install Zend Guard 6.0 with PHP 5.4 on Centos]]&lt;br /&gt;
 --&amp;gt; [[Disable Mod_Security for a single vhost]]&lt;br /&gt;
 --&amp;gt; [[Hide PHP Version(X-Powered-By) in Headers]]&lt;br /&gt;
 --&amp;gt; [[Sessions are ending before MaxLifetime]]&lt;br /&gt;
 --&amp;gt; [[Apache mod_speling case insensitive urls issue]]&lt;br /&gt;
 --&amp;gt; [[Restrict access via htaccess via ipaddress]]&lt;br /&gt;
 --&amp;gt; [[Howto install mod_evasive with fail2ban]]&lt;br /&gt;
 --&amp;gt; [[Install the Latest version PHP on CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to bypass .htpasswd for certain IPs Apache]]&lt;br /&gt;
 --&amp;gt; [[Clear mod_pagespeed cache ]]&lt;br /&gt;
 --&amp;gt; [[Install GeoIP for Apache and PHP]]&lt;br /&gt;
 --&amp;gt; [[How to block or allow countries using GeoIP and .htaccess]]&lt;br /&gt;
 --&amp;gt; [[How to disable mod_security per vhost]]&lt;br /&gt;
 --&amp;gt; [[Force HTTPS for entire website via htaccess]]&lt;br /&gt;
 --&amp;gt; [[Restrict Access to wp-login.php and xmlrpc.php]]&lt;br /&gt;
 --&amp;gt; [[The X-Frame-Options response header]]&lt;br /&gt;
 --&amp;gt; [[Install Xdebug with php-fpm per pool]]&lt;br /&gt;
 --&amp;gt; [[How to Enable Gzip Compression]]&lt;br /&gt;
 --&amp;gt; [[Enable Apache rewrite logging]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with .htpasswd/.htaccess]]&lt;br /&gt;
 --&amp;gt; [[How to Disable PHP Execution in Certain Directories]]&lt;br /&gt;
 --&amp;gt; [[Directory listing in htaccess. Allow, Deny, Disable, Enable Directory Listing in .htaccess]]&lt;br /&gt;
 --&amp;gt; [[What is the Cache-Control Header]]&lt;br /&gt;
 --&amp;gt; [[How do I block a host by ASN for apache - Example]]&lt;br /&gt;
[[File:Haproxy.png|100px|frameless|right|alt=Mysql Percona]]&lt;br /&gt;
&lt;br /&gt;
===HAProxy===&lt;br /&gt;
 --&amp;gt; [[What is HAProxy]]&lt;br /&gt;
 --&amp;gt; [[HAProxy vs Nginx]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Load Balancing]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Cluster Setup Example]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Docker]]&lt;br /&gt;
 --&amp;gt; [[HAProxy with Varnish SSL Termination Example]]&lt;br /&gt;
 --&amp;gt; [[HAProxy http2]]&lt;br /&gt;
 --&amp;gt; [[HAProxy GUI]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Install on Centos7]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Cloud Load Balancer]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Block by User-Agent]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Restrict by IP Address]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Redirect domain to another domain]]&lt;br /&gt;
&lt;br /&gt;
[[File:Logo percona server new.png|100px|frameless|right|alt=Mysql Percona]]&lt;br /&gt;
&lt;br /&gt;
===Mysql/Percona===&lt;br /&gt;
 --&amp;gt; [[How to Optimize/Repair a Table]]&lt;br /&gt;
 --&amp;gt; [[MySQL - Check Which Query is Consuming Resources]]&lt;br /&gt;
 --&amp;gt; [[How to Set your MySQL Password]]&lt;br /&gt;
 --&amp;gt; [[Rest your MySQL Admin Password]]&lt;br /&gt;
 --&amp;gt; [[How to Convert Table to InnoDB]] &lt;br /&gt;
 --&amp;gt; [[How to install Percona Database Server]]&lt;br /&gt;
 --&amp;gt; [[How to Access the MySQL via Shell]]&lt;br /&gt;
 --&amp;gt; [[How to Add a User in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to Drop a User in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to Create and Delete a MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to Create a Table in MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to Create a MySQL Database Backup]]&lt;br /&gt;
 --&amp;gt; [[How to Import a MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to update the max_connections setting in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to view a list of MySQL users and their privileges]]&lt;br /&gt;
 --&amp;gt; [[Save MySQL query results into a text or CSV file]]&lt;br /&gt;
 --&amp;gt; [[How to optimize a MySQL database using phpMyAdmin]]&lt;br /&gt;
 --&amp;gt; [[How to solve MySQL max_user_connections error]]&lt;br /&gt;
 --&amp;gt; [[How to enable Show Engine Innodb Status]]&lt;br /&gt;
 --&amp;gt; [[Access mysql/mysqldump without password entry each time - Using .my.cnf]]&lt;br /&gt;
&lt;br /&gt;
[[File:Varnish-cache-log.jpeg|100px|frameless|right|alt=Varnish How tos]]&lt;br /&gt;
&lt;br /&gt;
===Varnish Cache===&lt;br /&gt;
 --&amp;gt; [[Setup Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for Magento]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for Wordpress]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for MediaWiki]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish - Multiple Domains]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish - Multiple Ipaddress]]&lt;br /&gt;
 --&amp;gt; [[Script to Clear a Page from Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Varnish will not restart WHY?]]&lt;br /&gt;
 --&amp;gt; [[Warm up Varnish Script using Sitemap.xml]]&lt;br /&gt;
 --&amp;gt; [[Varnish How to redirect non-www URLs to www]]&lt;br /&gt;
 --&amp;gt; [[Install libvmod-header with Varnish]]&lt;br /&gt;
&lt;br /&gt;
[[File:Nginx-logo.png|100px|frameless|right|Install Nginx|alt=Nginx How tos]]&lt;br /&gt;
&lt;br /&gt;
===Nginx Web Server===&lt;br /&gt;
 --&amp;gt; [[Setup Nginx PHP FPM Percona Mysql]]&lt;br /&gt;
 --&amp;gt; [[Wordpress Ngnix Rewrite Rules]]&lt;br /&gt;
 --&amp;gt; [[Setup up Nginx Caching]]&lt;br /&gt;
 --&amp;gt; [[Nginx Magento vhost Configuration]]&lt;br /&gt;
 --&amp;gt; [[Basic HTTP Authentication with Nginx]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with Nginx]]&lt;br /&gt;
 --&amp;gt; [[403 Forbidden Error Nginx - How to Solve]]&lt;br /&gt;
&lt;br /&gt;
[[File:Sword-of-Omens-Sword1.png|100px|frameless|right|alt=Brian Nelson]]&lt;br /&gt;
&lt;br /&gt;
===Other===&lt;br /&gt;
 --&amp;gt; [[How to add trusted root certificates]]&lt;br /&gt;
 --&amp;gt; [[Find:_10_Useful_Examples_of_Find]]&lt;br /&gt;
 --&amp;gt; [[Send email from PHP to a log file instead of sendmail]]&lt;br /&gt;
 --&amp;gt; [[Debugging Wordpress]]&lt;br /&gt;
 --&amp;gt; [[How to install Linux via USB]]&lt;br /&gt;
 --&amp;gt; [[Network Subnet Mask Cheat Sheet]]&lt;br /&gt;
 --&amp;gt; [[Linux Keyboard Shortcuts]]&lt;br /&gt;
 --&amp;gt; [[Setup a SSH Tunnel for Secure Browsing]]&lt;br /&gt;
 --&amp;gt; [[Install OpenSSH on Windows]]&lt;br /&gt;
 --&amp;gt; [[Install Qmail on a Fresh Centos Server]]&lt;br /&gt;
 --&amp;gt; [[Setup Qmail to Listen on port 587 for SMTP]]&lt;br /&gt;
 --&amp;gt; [[Qmail catch-all account with vpopmail]]&lt;br /&gt;
 --&amp;gt; [[Setup Incoming Email Pipe to Script for Qmail]]&lt;br /&gt;
 --&amp;gt; [[Qmail Control Files]]&lt;br /&gt;
 --&amp;gt; [[Install qmqtool for Qmail on Centos Server]]&lt;br /&gt;
 --&amp;gt; [[Rest Email Password for vpopmail]]&lt;br /&gt;
 --&amp;gt; [[How to check Used IP on your Home Network]]&lt;br /&gt;
 --&amp;gt; [[How to find GMAIL IPs to allow at Firewall]]&lt;br /&gt;
 --&amp;gt; [[Useful TCPDUMP commands]]&lt;br /&gt;
 --&amp;gt; [[Remove Email Block Lists]]&lt;br /&gt;
 --&amp;gt; [[How to disable qmail vpopmail email user]] &lt;br /&gt;
 --&amp;gt; [[Git Cheat Sheet - Git made easy]]&lt;br /&gt;
 --&amp;gt; [[Top Chmod Command Examples for Beginners]]&lt;br /&gt;
 --&amp;gt; [[Benchmarking and Load Testing with Siege]]&lt;br /&gt;
 --&amp;gt; [[Benchmarking and Load Testing with Apache Bench(AB)]]&lt;br /&gt;
 --&amp;gt; [[How do I find out more about socket files in /proc/fd]]&lt;br /&gt;
 --&amp;gt; [[How to Disable the wp-cron.php in WordPress]]&lt;br /&gt;
 --&amp;gt; [[How to delete mail queue in Postfix]]&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Top Command Line Games - Linux CLI Games]] &amp;lt;sub&amp;gt;Cause Linux can be fun&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Centos Oneliners]]&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Bash Script to Check Memory with Email Alert when Low]]&lt;br /&gt;
 --&amp;gt; [[Bash Script to Check Site Code Status with Email Alert]]&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Resume&amp;diff=1068</id>
		<title>Resume</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Resume&amp;diff=1068"/>
				<updated>2023-06-10T03:15:08Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Resume */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Resume==&lt;br /&gt;
----&lt;br /&gt;
Brian S. Nelson&amp;lt;br&amp;gt;&lt;br /&gt;
Email: briansnelson@gmail.com&lt;br /&gt;
Telephone: Ask via Email&lt;br /&gt;
&lt;br /&gt;
===EXPERIENCE===&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;u&amp;gt;&amp;lt;big&amp;gt;Nexcess .NET LLC/Liquid Web LLC&amp;lt;/big&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;           &lt;br /&gt;
'''Support System Administrator II'''&amp;lt;br&amp;gt;&lt;br /&gt;
Oct 2012- Present&amp;lt;br&amp;gt;&lt;br /&gt;
* Provided advanced troubleshooting for server issues&lt;br /&gt;
*Optimizing server environments for web applications in a high availability cluster environment utilizing haproxy/apache/mysql&lt;br /&gt;
*Diagnosing and resolving IP email blacklisting issues&lt;br /&gt;
*Audited hacked accounts to prevent the hack from recurring&lt;br /&gt;
*Identified issues with varnish/haproxy/apache/php&lt;br /&gt;
*Advanced troubleshooting on CMS platforms (Magento,Wordpress,Joomla and Expression Engine)&lt;br /&gt;
*Stress test web sites for high availability(siege/ab testing/k6.io)&lt;br /&gt;
*Working with clients to resolve issues via phone and ticket system&lt;br /&gt;
*Write and maintain internal documentation for training purposes&lt;br /&gt;
*Assisting with training of new technicians.&lt;br /&gt;
*Diagnosing mysql errors and performance issues (locks,deadlocks)&lt;br /&gt;
*Addressing PCI compliance Issues&lt;br /&gt;
*Configured and managed firewalls to protect the network from malicious threats and ensure compliance with security policies&lt;br /&gt;
*Reviewed  and resolved complex technical issues to restore service to customers quickly&lt;br /&gt;
*Performed Website Backups and Restores from Backup Server to Live Server&lt;br /&gt;
*Installed and upgraded system services to keep up to date (mysql/haproxy/varnish/elasticsearch/php-fpm)&lt;br /&gt;
*Identified and escalated major technical issues to system operations for resolution&lt;br /&gt;
*Collaborated with cross-functional teams to identify and resolve customer issues&lt;br /&gt;
*Developed scripts to capture data to help identify the cause of system issues&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;&amp;lt;big&amp;gt;Triple Crown Ventures LLC&amp;lt;/big&amp;gt;&amp;lt;/u&amp;gt; &amp;lt;br&amp;gt;                                                        &lt;br /&gt;
'''System Administrator / PHP Web Developer / Database Administrator'''&amp;lt;br&amp;gt;&lt;br /&gt;
Feb 2006 - Oct 2012&amp;lt;br&amp;gt;&lt;br /&gt;
* Provided daily server maintenance on various applications Qmail Server, MySQL Server, LAMP Server / Varnish Caching Server, LNMP Servers, TinyDNS Server &lt;br /&gt;
*Configured Barracuda Load Balancer / Application Firewall application&lt;br /&gt;
*Established   Wordpress Blogs / Developed Plugins&lt;br /&gt;
*Developed Email Templates that resulted in a 10-15% increase in click through rate&lt;br /&gt;
*Integrated critical nightly backup system for website,email, and databases&lt;br /&gt;
*Optimized MySQL/Apache/Nginx services to provide peak performance that handled spikes in traffic&lt;br /&gt;
*Created an automated system for system patching and updates that improved system reliability and security&lt;br /&gt;
*Monitored database performance and identified and addressed any performance bottlenecks&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;&amp;lt;big&amp;gt;Peak Positions LLC&amp;lt;/big&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;                                                           &lt;br /&gt;
'''SEO Project Engineer'''&amp;lt;br&amp;gt;&lt;br /&gt;
May 2005 - Nov 2005&amp;lt;br&amp;gt;&lt;br /&gt;
* Provided Customers with monthly keyword rankings reports&lt;br /&gt;
*Developed content pages for various keywords to improve the overall rank on that keyword&lt;br /&gt;
*Designed Templates in FrontPage to be used for Content Pages&lt;br /&gt;
*Identified and resolved project issues quickly and efficiently, minimizing their impact on project progress&lt;br /&gt;
*Initiated  project plans and guidelines that provided a roadmap for successful completion of the project&lt;br /&gt;
*Implemented  an effective SEO strategy that increased organic search engine rankings and doubled website visits&lt;br /&gt;
*Conducted keyword research, to compose SEO-friendly content titles and meta descriptions to maximize content visibility&lt;br /&gt;
*Evaluated  keyword research to identify topics with high search volume and low competition for SEO optimization&lt;br /&gt;
*Cultivated  a search engine optimization (SEO) strategy that increased organic search engine rankings and increased visibility on search engines. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===SKILLS===&lt;br /&gt;
----&lt;br /&gt;
*Website/ Database Design  &lt;br /&gt;
*Linux Server Administrator &lt;br /&gt;
*System Administration &lt;br /&gt;
*Search Engine Optimization &lt;br /&gt;
*Customer Service&lt;br /&gt;
*Leadership and Teamwork&lt;br /&gt;
*Critical Thinking and problem solving&lt;br /&gt;
*Effective Time Management&lt;br /&gt;
*Ability to Multitask&lt;br /&gt;
*Ability to work Under Pressure&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===EDUCATION===&lt;br /&gt;
----&lt;br /&gt;
Northwood University – Midland, MI&amp;lt;br&amp;gt;&lt;br /&gt;
Bachelor of Business Administration&amp;lt;br&amp;gt;&lt;br /&gt;
Dual Major: Management Information Systems and Management&amp;lt;br&amp;gt;&lt;br /&gt;
Graduated May 2003&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Resume&amp;diff=1067</id>
		<title>Resume</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Resume&amp;diff=1067"/>
				<updated>2023-06-09T21:46:12Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Resume */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Resume==&lt;br /&gt;
----&lt;br /&gt;
Brian S. Nelson&amp;lt;br&amp;gt;&lt;br /&gt;
Email: brian@briansnelson.com&amp;lt;br&amp;gt;&lt;br /&gt;
Telephone: 586-921-3056&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===EXPERIENCE===&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;u&amp;gt;&amp;lt;big&amp;gt;Nexcess .NET LLC/Liquid Web LLC&amp;lt;/big&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;           &lt;br /&gt;
'''Support System Administrator II'''&amp;lt;br&amp;gt;&lt;br /&gt;
Oct 2012- Present&amp;lt;br&amp;gt;&lt;br /&gt;
* Provided advanced troubleshooting for server issues&lt;br /&gt;
*Optimizing server environments for web applications in a high availability cluster environment utilizing haproxy/apache/mysql&lt;br /&gt;
*Diagnosing and resolving IP email blacklisting issues&lt;br /&gt;
*Audited hacked accounts to prevent the hack from recurring&lt;br /&gt;
*Identified issues with varnish/haproxy/apache/php&lt;br /&gt;
*Advanced troubleshooting on CMS platforms (Magento,Wordpress,Joomla and Expression Engine)&lt;br /&gt;
*Stress test web sites for high availability(siege/ab testing/k6.io)&lt;br /&gt;
*Working with clients to resolve issues via phone and ticket system&lt;br /&gt;
*Write and maintain internal documentation for training purposes&lt;br /&gt;
*Assisting with training of new technicians.&lt;br /&gt;
*Diagnosing mysql errors and performance issues (locks,deadlocks)&lt;br /&gt;
*Addressing PCI compliance Issues&lt;br /&gt;
*Configured and managed firewalls to protect the network from malicious threats and ensure compliance with security policies&lt;br /&gt;
*Reviewed  and resolved complex technical issues to restore service to customers quickly&lt;br /&gt;
*Performed Website Backups and Restores from Backup Server to Live Server&lt;br /&gt;
*Installed and upgraded system services to keep up to date (mysql/haproxy/varnish/elasticsearch/php-fpm)&lt;br /&gt;
*Identified and escalated major technical issues to system operations for resolution&lt;br /&gt;
*Collaborated with cross-functional teams to identify and resolve customer issues&lt;br /&gt;
*Developed scripts to capture data to help identify the cause of system issues&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;&amp;lt;big&amp;gt;Triple Crown Ventures LLC&amp;lt;/big&amp;gt;&amp;lt;/u&amp;gt; &amp;lt;br&amp;gt;                                                        &lt;br /&gt;
'''System Administrator / PHP Web Developer / Database Administrator'''&amp;lt;br&amp;gt;&lt;br /&gt;
Feb 2006 - Oct 2012&amp;lt;br&amp;gt;&lt;br /&gt;
* Provided daily server maintenance on various applications Qmail Server, MySQL Server, LAMP Server / Varnish Caching Server, LNMP Servers, TinyDNS Server &lt;br /&gt;
*Configured Barracuda Load Balancer / Application Firewall application&lt;br /&gt;
*Established   Wordpress Blogs / Developed Plugins&lt;br /&gt;
*Developed Email Templates that resulted in a 10-15% increase in click through rate&lt;br /&gt;
*Integrated critical nightly backup system for website,email, and databases&lt;br /&gt;
*Optimized MySQL/Apache/Nginx services to provide peak performance that handled spikes in traffic&lt;br /&gt;
*Created an automated system for system patching and updates that improved system reliability and security&lt;br /&gt;
*Monitored database performance and identified and addressed any performance bottlenecks&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;&amp;lt;big&amp;gt;Peak Positions LLC&amp;lt;/big&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;                                                           &lt;br /&gt;
'''SEO Project Engineer'''&amp;lt;br&amp;gt;&lt;br /&gt;
May 2005 - Nov 2005&amp;lt;br&amp;gt;&lt;br /&gt;
* Provided Customers with monthly keyword rankings reports&lt;br /&gt;
*Developed content pages for various keywords to improve the overall rank on that keyword&lt;br /&gt;
*Designed Templates in FrontPage to be used for Content Pages&lt;br /&gt;
*Identified and resolved project issues quickly and efficiently, minimizing their impact on project progress&lt;br /&gt;
*Initiated  project plans and guidelines that provided a roadmap for successful completion of the project&lt;br /&gt;
*Implemented  an effective SEO strategy that increased organic search engine rankings and doubled website visits&lt;br /&gt;
*Conducted keyword research, to compose SEO-friendly content titles and meta descriptions to maximize content visibility&lt;br /&gt;
*Evaluated  keyword research to identify topics with high search volume and low competition for SEO optimization&lt;br /&gt;
*Cultivated  a search engine optimization (SEO) strategy that increased organic search engine rankings and increased visibility on search engines. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===SKILLS===&lt;br /&gt;
----&lt;br /&gt;
*Website/ Database Design  &lt;br /&gt;
*Linux Server Administrator &lt;br /&gt;
*System Administration &lt;br /&gt;
*Search Engine Optimization &lt;br /&gt;
*Customer Service&lt;br /&gt;
*Leadership and Teamwork&lt;br /&gt;
*Critical Thinking and problem solving&lt;br /&gt;
*Effective Time Management&lt;br /&gt;
*Ability to Multitask&lt;br /&gt;
*Ability to work Under Pressure&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===EDUCATION===&lt;br /&gt;
----&lt;br /&gt;
Northwood University – Midland, MI&amp;lt;br&amp;gt;&lt;br /&gt;
Bachelor of Business Administration&amp;lt;br&amp;gt;&lt;br /&gt;
Dual Major: Management Information Systems and Management&amp;lt;br&amp;gt;&lt;br /&gt;
Graduated May 2003&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Resume&amp;diff=1066</id>
		<title>Resume</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Resume&amp;diff=1066"/>
				<updated>2023-06-09T21:37:23Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Resume */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Resume==&lt;br /&gt;
----&lt;br /&gt;
Brian S. Nelson&amp;lt;br&amp;gt;&lt;br /&gt;
Email: brian@briansnelson.com&amp;lt;br&amp;gt;&lt;br /&gt;
Telephone: 586-921-3056&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===EXPERIENCE===&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;u&amp;gt;&amp;lt;big&amp;gt;Nexcess .NET LLC&amp;lt;/big&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;           &lt;br /&gt;
'''Level 2 Linux Support/Tier 2 Support Analyst'''&amp;lt;br&amp;gt;&lt;br /&gt;
July 2013 - Present&amp;lt;br&amp;gt;&lt;br /&gt;
* Provided advanced troubleshooting for server issues&lt;br /&gt;
* Optimizing server environments for web applications.&lt;br /&gt;
* Diagnosing and resolving IP email blacklisting issues&lt;br /&gt;
* Audited hacked accounts to prevent the hack from recurring&lt;br /&gt;
* Resolved issues/installed  redis, memcached, sphinx and varnish&lt;br /&gt;
* Advanced troubleshooting on CMS platforms (Magento,Wordpress,Joomla and Expression Engine)    &lt;br /&gt;
* Stress test web sites for high availability(siege/ab testing)&lt;br /&gt;
* Working with clients to resolve issues via phone and ticket system    &lt;br /&gt;
* Write and maintain internal documentation for training purposes&lt;br /&gt;
* Assisting with training for new technicians.&lt;br /&gt;
* Diagnosing mysql errors and performance issues (locks,deadlocks)&lt;br /&gt;
* Diagnosing/Addressing PCI compliance Issues&lt;br /&gt;
&lt;br /&gt;
'''Level 1 Linux Support'''&amp;lt;br&amp;gt;                         &lt;br /&gt;
Oct 2012 - July 2013&amp;lt;br&amp;gt;&lt;br /&gt;
* Provided daily support to over 10,000+ clients via phone and ticket system&lt;br /&gt;
* Performed Website Backups and Restores from Backup Server to Live Server&lt;br /&gt;
* Monitored thousands of Centos web servers utilizing Apache/MySQL/PHP/PHP-FPM&lt;br /&gt;
* Familiarity with Linux Web hosting software (Apache httpd, FTP, SSH, MySQL, DNS) &lt;br /&gt;
* Experience with qmail and other parts of the djb suite (vpopmail,daemontools, djbdns, tcpserver, etc).&lt;br /&gt;
* Installing/upgrading web software with yum/pecl &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;&amp;lt;big&amp;gt;Triple Crown Ventures LLC&amp;lt;/big&amp;gt;&amp;lt;/u&amp;gt; &amp;lt;br&amp;gt;                                                        &lt;br /&gt;
'''System Administrator / PHP Web Developer / Database Administrator'''&amp;lt;br&amp;gt;&lt;br /&gt;
Feb 2006 - Oct 2012&amp;lt;br&amp;gt;&lt;br /&gt;
* Provided daily server maintenance on various applications&lt;br /&gt;
* Qmail Server, MySQL Server, LAMP Server / Varnish Caching Server, LNMP Servers, TinyDNS Server ,Centos / Debian&lt;br /&gt;
* Configured Barracuda Load Balancer / Application Firewall&lt;br /&gt;
* Designed and Setup Wordpress Blogs / Plugins&lt;br /&gt;
* Designed and Developed Email Templates that resulted in a 10-15% increase in click through rate&lt;br /&gt;
* Designed critical nightly backup system for website,email, and databases&lt;br /&gt;
* Optimized MySQL/Apache/Nginx services to provide peak performance&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;&amp;lt;big&amp;gt;Peak Positions LLC&amp;lt;/big&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;                                                           &lt;br /&gt;
'''SEO Project Engineer'''&amp;lt;br&amp;gt;&lt;br /&gt;
May 2005 - Nov 2005&amp;lt;br&amp;gt;&lt;br /&gt;
* Provided Customers with monthly keyword rankings reports&lt;br /&gt;
* Gained expert knowledge of Organic SEO&lt;br /&gt;
* Developed content pages for various keywords to improve the overall rank on that keyword&lt;br /&gt;
* Designed Templates in FrontPage to be used for Content Pages&lt;br /&gt;
* Used HTML, DHTML, CSS, FrontPage, Photoshop daily&lt;br /&gt;
&lt;br /&gt;
===SKILLS===&lt;br /&gt;
----&lt;br /&gt;
HTML, DHTML, Database Design, Knowledge of PHP, Cascading Style Sheets (CSS), Photoshop, Problem Solving, DNS/rDNS,SPF Records, FTP, SSH, Centos/Debian Administrator, Microsoft Office, Web Design/Development, Apache 2/MySQL, Search Engine Optimization, HTML Validation, Web Server Administration, Nginx, Varnish, Memcached, Postfix, Dovecot, Qmail&lt;br /&gt;
&lt;br /&gt;
===EDUCATION===&lt;br /&gt;
----&lt;br /&gt;
Northwood University – Midland, MI&amp;lt;br&amp;gt;&lt;br /&gt;
Bachelor of Business Administration&amp;lt;br&amp;gt;&lt;br /&gt;
Dual Major: Management Information Systems and Management&amp;lt;br&amp;gt;&lt;br /&gt;
Graduated May 2003&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Resume&amp;diff=1065</id>
		<title>Resume</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Resume&amp;diff=1065"/>
				<updated>2023-06-09T21:35:46Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Resume */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Resume==&lt;br /&gt;
----&lt;br /&gt;
Brian S. Nelson&amp;lt;br&amp;gt;&lt;br /&gt;
Email: brian@briansnelson.com&amp;lt;br&amp;gt;&lt;br /&gt;
Telephone: 586-921-3056&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===EXPERIENCE===&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;u&amp;gt;&amp;lt;big&amp;gt;Nexcess .NET LLC&amp;lt;/big&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;           &lt;br /&gt;
'''Level 2 Linux Support/Tier 2 Support Analyst'''&amp;lt;br&amp;gt;&lt;br /&gt;
July 2013 - Present&amp;lt;br&amp;gt;&lt;br /&gt;
* Provided advanced troubleshooting for server issues&lt;br /&gt;
* Optimizing server environments for web applications.&lt;br /&gt;
* Diagnosing and resolving IP email blacklisting issues&lt;br /&gt;
* Audited hacked accounts to prevent the hack from recurring&lt;br /&gt;
* Resolved issues/installed  redis, memcached, sphinx and varnish&lt;br /&gt;
* Advanced troubleshooting on CMS platforms (Magento,Wordpress,Joomla and Expression Engine)    &lt;br /&gt;
* Stress test web sites for high availability(siege/ab testing)&lt;br /&gt;
* Working with clients to resolve issues via phone and ticket system    &lt;br /&gt;
* Write and maintain internal documentation for training purposes&lt;br /&gt;
* Assisting with training for new technicians.&lt;br /&gt;
* Diagnosing mysql errors and performance issues (locks,deadlocks)&lt;br /&gt;
* Diagnosing/Addressing PCI compliance Issues&lt;br /&gt;
&lt;br /&gt;
'''Level 1 Linux Support'''&amp;lt;br&amp;gt;                         &lt;br /&gt;
Oct 2012 - July 2013&amp;lt;br&amp;gt;&lt;br /&gt;
* Provided daily support to over 10,000+ clients via phone and ticket system&lt;br /&gt;
* Performed Website Backups and Restores from Backup Server to Live Server&lt;br /&gt;
* Monitored thousands of Centos web servers utilizing Apache/MySQL/PHP/PHP-FPM&lt;br /&gt;
* Familiarity with Linux Web hosting software (Apache httpd, FTP, SSH, MySQL, DNS) &lt;br /&gt;
* Experience with qmail and other parts of the djb suite (vpopmail,daemontools, djbdns, tcpserver, etc).&lt;br /&gt;
* Installing/upgrading web software with yum/pecl &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;&amp;lt;big&amp;gt;Triple Crown Ventures LLC&amp;lt;/big&amp;gt;&amp;lt;/u&amp;gt; &amp;lt;br&amp;gt;                                                        &lt;br /&gt;
'''System Administrator / PHP Web Developer / Database Administrator'''&amp;lt;br&amp;gt;&lt;br /&gt;
Feb 2006 - Oct 2012&amp;lt;br&amp;gt;&lt;br /&gt;
* Provided daily server maintenance on various applications&lt;br /&gt;
* Qmail Server, MySQL Server, LAMP Server / Varnish Caching Server, LNMP Servers, TinyDNS Server ,Centos / Debian&lt;br /&gt;
* Configured Barracuda Load Balancer / Application Firewall&lt;br /&gt;
* Designed and Setup Wordpress Blogs / Plugins&lt;br /&gt;
* Designed and Developed Email Templates that resulted in a 10-15% increase in click through rate&lt;br /&gt;
* Designed critical nightly backup system for website,email, and databases&lt;br /&gt;
* Optimized MySQL/Apache/Nginx services to provide peak performance&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;&amp;lt;big&amp;gt;Peak Positions LLC&amp;lt;/big&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;                                                           &lt;br /&gt;
'''SEO Project Engineer'''&amp;lt;br&amp;gt;&lt;br /&gt;
May 2005 - Nov 2005&amp;lt;br&amp;gt;&lt;br /&gt;
* Provided Customers with monthly keyword rankings reports&lt;br /&gt;
* Gained expert knowledge of Organic SEO&lt;br /&gt;
* Developed content pages for various keywords to improve the overall rank on that keyword&lt;br /&gt;
* Designed Templates in FrontPage to be used for Content Pages&lt;br /&gt;
* Used HTML, DHTML, CSS, FrontPage, Photoshop daily&lt;br /&gt;
&lt;br /&gt;
===SKILLS===&lt;br /&gt;
----&lt;br /&gt;
HTML, DHTML, Database Design, Knowledge of PHP, Cascading Style Sheets (CSS), Photoshop, Problem Solving, DNS/rDNS,SPF Records, FTP, SSH, Centos/Debian Administrator, Microsoft Office, Web Design/Development, Apache 2/MySQL, Search Engine Optimization, HTML Validation, Web Server Administration, Nginx, Varnish, Memcached, Postfix, Dovecot, Qmail&lt;br /&gt;
&lt;br /&gt;
===EDUCATION===&lt;br /&gt;
----&lt;br /&gt;
Northwood University – Midland, MI&amp;lt;br&amp;gt;&lt;br /&gt;
Bachelor of Business Administration&amp;lt;br&amp;gt;&lt;br /&gt;
Dual Major: Management Information Systems and Management&amp;lt;br&amp;gt;&lt;br /&gt;
Graduated May 2003&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_do_I_block_a_host_by_ASN_for_apache_-_Example&amp;diff=1064</id>
		<title>How do I block a host by ASN for apache - Example</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_do_I_block_a_host_by_ASN_for_apache_-_Example&amp;diff=1064"/>
				<updated>2022-03-27T17:51:08Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Save the script to /blockasn/cron.script then add it to a cron */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How do I block a host by ASN for apache - Example==&lt;br /&gt;
&lt;br /&gt;
Do you have issues with bots attempting to cause issues with your site?  This is can disrupt your business and cause all types of performance issue.&lt;br /&gt;
&lt;br /&gt;
Working to solve this we found it best to block entire ASN's for known bad ranges.&lt;br /&gt;
&lt;br /&gt;
During my investigation I found a list of known bad ASN&lt;br /&gt;
&lt;br /&gt;
https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv&lt;br /&gt;
&lt;br /&gt;
I took this list by downloading, and then parsing out the ASN numbers.&lt;br /&gt;
&lt;br /&gt;
===Get the contents of the bad ASN list===&lt;br /&gt;
&lt;br /&gt;
First create a directory to download this list to.&lt;br /&gt;
&lt;br /&gt;
 mkdir /blockasn&lt;br /&gt;
&lt;br /&gt;
Down the above csv file:&lt;br /&gt;
&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
&lt;br /&gt;
===Parsing the ASN number===&lt;br /&gt;
&lt;br /&gt;
 cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2&lt;br /&gt;
&lt;br /&gt;
You can use this with the following to download the ips for that ASN NUMBER, just replace ASN NUMBER&lt;br /&gt;
&lt;br /&gt;
 wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS[[ASN NUMBER]]&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This will save the contents to file: &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 AS9925_htaccess.txt&lt;br /&gt;
&lt;br /&gt;
Then you can copy this over to apache configuration directory:&lt;br /&gt;
&lt;br /&gt;
 cp AS9925_htaccess.txt /etc/httpd/conf.d/AS9925.conf&lt;br /&gt;
&lt;br /&gt;
Then just restart apache and it will be blocked&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
At this point you have blocked all the ips in that ASN&lt;br /&gt;
&lt;br /&gt;
==Making a Script that you can apply to a cron to auto update the list==&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #Block bad ASN&lt;br /&gt;
 #https://briansnelson.com/How_do_I_block_a_host_by_ASN_for_apache_-_Example&lt;br /&gt;
 ###########################&lt;br /&gt;
 #Download List to use&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 &lt;br /&gt;
 #Get all the ASN lists download to your blockasn directory&lt;br /&gt;
 for x in $(cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2| grep -v ASN); do&lt;br /&gt;
   wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS$x&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
 done;&lt;br /&gt;
 #Lets add them to apache&lt;br /&gt;
 echo '&amp;lt;Directory /&amp;gt;' &amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo 'Order Deny,Allow' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 cat /blockasn/AS*.txt | grep -v Order &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo '&amp;lt;/Directory&amp;gt;' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf;&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
===Save the script to /blockasn/cron.script then add it to a cron===&lt;br /&gt;
&lt;br /&gt;
 echo '0 0 * * 6 /blockasn/cron.script &amp;gt;/dev/null 2&amp;gt;&amp;amp;1' &amp;gt;&amp;gt; /var/spool/cron/root&lt;br /&gt;
 chmod +x cron.script&lt;br /&gt;
&lt;br /&gt;
Now with everything setup you can easily block bad ASN from causing issues on your network, you can also add ASN that are not part of that list that you find over time, by adding an echo statement to update the badasnlist.list file before it goes into the add to apache&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #Block bad ASN&lt;br /&gt;
 #https://briansnelson.com/How_do_I_block_a_host_by_ASN_for_apache_-_Example&lt;br /&gt;
 ###########################&lt;br /&gt;
 #Download List to use&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 #Add non listed ASN numbers to auto block list&lt;br /&gt;
 echo '32934' &amp;gt;&amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 #Get all the ASN lists download to your blockasn directory&lt;br /&gt;
 for x in $(cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2| grep -v ASN); do&lt;br /&gt;
   wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS$x&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
 done;&lt;br /&gt;
 #Lets add them to apache&lt;br /&gt;
 echo '&amp;lt;Directory /&amp;gt;' &amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo 'Order Deny,Allow' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 cat /blockasn/AS*.txt | grep -v Order &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo '&amp;lt;/Directory&amp;gt;' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf;&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
Use with caution, as come copy and paste will mixup the quotes in the above script&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_do_I_block_a_host_by_ASN_for_apache_-_Example&amp;diff=1063</id>
		<title>How do I block a host by ASN for apache - Example</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_do_I_block_a_host_by_ASN_for_apache_-_Example&amp;diff=1063"/>
				<updated>2022-03-27T17:50:56Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Making a Script that you can apply to a cron to auto update the list */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How do I block a host by ASN for apache - Example==&lt;br /&gt;
&lt;br /&gt;
Do you have issues with bots attempting to cause issues with your site?  This is can disrupt your business and cause all types of performance issue.&lt;br /&gt;
&lt;br /&gt;
Working to solve this we found it best to block entire ASN's for known bad ranges.&lt;br /&gt;
&lt;br /&gt;
During my investigation I found a list of known bad ASN&lt;br /&gt;
&lt;br /&gt;
https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv&lt;br /&gt;
&lt;br /&gt;
I took this list by downloading, and then parsing out the ASN numbers.&lt;br /&gt;
&lt;br /&gt;
===Get the contents of the bad ASN list===&lt;br /&gt;
&lt;br /&gt;
First create a directory to download this list to.&lt;br /&gt;
&lt;br /&gt;
 mkdir /blockasn&lt;br /&gt;
&lt;br /&gt;
Down the above csv file:&lt;br /&gt;
&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
&lt;br /&gt;
===Parsing the ASN number===&lt;br /&gt;
&lt;br /&gt;
 cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2&lt;br /&gt;
&lt;br /&gt;
You can use this with the following to download the ips for that ASN NUMBER, just replace ASN NUMBER&lt;br /&gt;
&lt;br /&gt;
 wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS[[ASN NUMBER]]&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This will save the contents to file: &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 AS9925_htaccess.txt&lt;br /&gt;
&lt;br /&gt;
Then you can copy this over to apache configuration directory:&lt;br /&gt;
&lt;br /&gt;
 cp AS9925_htaccess.txt /etc/httpd/conf.d/AS9925.conf&lt;br /&gt;
&lt;br /&gt;
Then just restart apache and it will be blocked&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
At this point you have blocked all the ips in that ASN&lt;br /&gt;
&lt;br /&gt;
==Making a Script that you can apply to a cron to auto update the list==&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #Block bad ASN&lt;br /&gt;
 #https://briansnelson.com/How_do_I_block_a_host_by_ASN_for_apache_-_Example&lt;br /&gt;
 ###########################&lt;br /&gt;
 #Download List to use&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 &lt;br /&gt;
 #Get all the ASN lists download to your blockasn directory&lt;br /&gt;
 for x in $(cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2| grep -v ASN); do&lt;br /&gt;
   wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS$x&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
 done;&lt;br /&gt;
 #Lets add them to apache&lt;br /&gt;
 echo '&amp;lt;Directory /&amp;gt;' &amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo 'Order Deny,Allow' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 cat /blockasn/AS*.txt | grep -v Order &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo '&amp;lt;/Directory&amp;gt;' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf;&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
===Save the script to /blockasn/cron.script then add it to a cron===&lt;br /&gt;
&lt;br /&gt;
 echo '0 0 * * 6 /blockasn/cron.script &amp;gt;/dev/null 2&amp;gt;&amp;amp;1' &amp;gt;&amp;gt; /var/spool/cron/root&lt;br /&gt;
 chmod +x cron.script&lt;br /&gt;
&lt;br /&gt;
Now with everything setup you can easily block bad ASN from causing issues on your network, you can also add ASN that are not part of that list that you find over time, by adding an echo statement to update the badasnlist.list file before it goes into the add to apache&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #Block bad ASN&lt;br /&gt;
 #https://briansnelson.com/&lt;br /&gt;
 ###########################&lt;br /&gt;
 #Download List to use&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 #Add non listed ASN numbers to auto block list&lt;br /&gt;
 echo '32934' &amp;gt;&amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 #Get all the ASN lists download to your blockasn directory&lt;br /&gt;
 for x in $(cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2| grep -v ASN); do&lt;br /&gt;
   wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS$x&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
 done;&lt;br /&gt;
 #Lets add them to apache&lt;br /&gt;
 echo '&amp;lt;Directory /&amp;gt;' &amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo 'Order Deny,Allow' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 cat /blockasn/AS*.txt | grep -v Order &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo '&amp;lt;/Directory&amp;gt;' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf;&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
Use with caution, as come copy and paste will mixup the quotes in the above script&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_do_I_block_a_host_by_ASN_for_apache_-_Example&amp;diff=1062</id>
		<title>How do I block a host by ASN for apache - Example</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_do_I_block_a_host_by_ASN_for_apache_-_Example&amp;diff=1062"/>
				<updated>2022-03-27T17:41:32Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Save the script to /blockasn/cron.script then add it to a cron */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How do I block a host by ASN for apache - Example==&lt;br /&gt;
&lt;br /&gt;
Do you have issues with bots attempting to cause issues with your site?  This is can disrupt your business and cause all types of performance issue.&lt;br /&gt;
&lt;br /&gt;
Working to solve this we found it best to block entire ASN's for known bad ranges.&lt;br /&gt;
&lt;br /&gt;
During my investigation I found a list of known bad ASN&lt;br /&gt;
&lt;br /&gt;
https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv&lt;br /&gt;
&lt;br /&gt;
I took this list by downloading, and then parsing out the ASN numbers.&lt;br /&gt;
&lt;br /&gt;
===Get the contents of the bad ASN list===&lt;br /&gt;
&lt;br /&gt;
First create a directory to download this list to.&lt;br /&gt;
&lt;br /&gt;
 mkdir /blockasn&lt;br /&gt;
&lt;br /&gt;
Down the above csv file:&lt;br /&gt;
&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
&lt;br /&gt;
===Parsing the ASN number===&lt;br /&gt;
&lt;br /&gt;
 cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2&lt;br /&gt;
&lt;br /&gt;
You can use this with the following to download the ips for that ASN NUMBER, just replace ASN NUMBER&lt;br /&gt;
&lt;br /&gt;
 wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS[[ASN NUMBER]]&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This will save the contents to file: &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 AS9925_htaccess.txt&lt;br /&gt;
&lt;br /&gt;
Then you can copy this over to apache configuration directory:&lt;br /&gt;
&lt;br /&gt;
 cp AS9925_htaccess.txt /etc/httpd/conf.d/AS9925.conf&lt;br /&gt;
&lt;br /&gt;
Then just restart apache and it will be blocked&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
At this point you have blocked all the ips in that ASN&lt;br /&gt;
&lt;br /&gt;
==Making a Script that you can apply to a cron to auto update the list==&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #Block bad ASN&lt;br /&gt;
 #https://briansnelson.com/&lt;br /&gt;
 ###########################&lt;br /&gt;
 #Download List to use&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 &lt;br /&gt;
 #Get all the ASN lists download to your blockasn directory&lt;br /&gt;
 for x in $(cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2| grep -v ASN); do&lt;br /&gt;
   wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS$x&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
 done;&lt;br /&gt;
 #Lets add them to apache&lt;br /&gt;
 echo '&amp;lt;Directory /&amp;gt;' &amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo 'Order Deny,Allow' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 cat /blockasn/AS*.txt | grep -v Order &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo '&amp;lt;/Directory&amp;gt;' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf;&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
===Save the script to /blockasn/cron.script then add it to a cron===&lt;br /&gt;
&lt;br /&gt;
 echo '0 0 * * 6 /blockasn/cron.script &amp;gt;/dev/null 2&amp;gt;&amp;amp;1' &amp;gt;&amp;gt; /var/spool/cron/root&lt;br /&gt;
 chmod +x cron.script&lt;br /&gt;
&lt;br /&gt;
Now with everything setup you can easily block bad ASN from causing issues on your network, you can also add ASN that are not part of that list that you find over time, by adding an echo statement to update the badasnlist.list file before it goes into the add to apache&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #Block bad ASN&lt;br /&gt;
 #https://briansnelson.com/&lt;br /&gt;
 ###########################&lt;br /&gt;
 #Download List to use&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 #Add non listed ASN numbers to auto block list&lt;br /&gt;
 echo '32934' &amp;gt;&amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 #Get all the ASN lists download to your blockasn directory&lt;br /&gt;
 for x in $(cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2| grep -v ASN); do&lt;br /&gt;
   wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS$x&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
 done;&lt;br /&gt;
 #Lets add them to apache&lt;br /&gt;
 echo '&amp;lt;Directory /&amp;gt;' &amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo 'Order Deny,Allow' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 cat /blockasn/AS*.txt | grep -v Order &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo '&amp;lt;/Directory&amp;gt;' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf;&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
Use with caution, as come copy and paste will mixup the quotes in the above script&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_do_I_block_a_host_by_ASN_for_apache_-_Example&amp;diff=1061</id>
		<title>How do I block a host by ASN for apache - Example</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_do_I_block_a_host_by_ASN_for_apache_-_Example&amp;diff=1061"/>
				<updated>2022-03-27T17:41:24Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Making a Script that you can apply to a cron to auto update the list */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How do I block a host by ASN for apache - Example==&lt;br /&gt;
&lt;br /&gt;
Do you have issues with bots attempting to cause issues with your site?  This is can disrupt your business and cause all types of performance issue.&lt;br /&gt;
&lt;br /&gt;
Working to solve this we found it best to block entire ASN's for known bad ranges.&lt;br /&gt;
&lt;br /&gt;
During my investigation I found a list of known bad ASN&lt;br /&gt;
&lt;br /&gt;
https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv&lt;br /&gt;
&lt;br /&gt;
I took this list by downloading, and then parsing out the ASN numbers.&lt;br /&gt;
&lt;br /&gt;
===Get the contents of the bad ASN list===&lt;br /&gt;
&lt;br /&gt;
First create a directory to download this list to.&lt;br /&gt;
&lt;br /&gt;
 mkdir /blockasn&lt;br /&gt;
&lt;br /&gt;
Down the above csv file:&lt;br /&gt;
&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
&lt;br /&gt;
===Parsing the ASN number===&lt;br /&gt;
&lt;br /&gt;
 cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2&lt;br /&gt;
&lt;br /&gt;
You can use this with the following to download the ips for that ASN NUMBER, just replace ASN NUMBER&lt;br /&gt;
&lt;br /&gt;
 wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS[[ASN NUMBER]]&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This will save the contents to file: &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 AS9925_htaccess.txt&lt;br /&gt;
&lt;br /&gt;
Then you can copy this over to apache configuration directory:&lt;br /&gt;
&lt;br /&gt;
 cp AS9925_htaccess.txt /etc/httpd/conf.d/AS9925.conf&lt;br /&gt;
&lt;br /&gt;
Then just restart apache and it will be blocked&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
At this point you have blocked all the ips in that ASN&lt;br /&gt;
&lt;br /&gt;
==Making a Script that you can apply to a cron to auto update the list==&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #Block bad ASN&lt;br /&gt;
 #https://briansnelson.com/&lt;br /&gt;
 ###########################&lt;br /&gt;
 #Download List to use&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 &lt;br /&gt;
 #Get all the ASN lists download to your blockasn directory&lt;br /&gt;
 for x in $(cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2| grep -v ASN); do&lt;br /&gt;
   wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS$x&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
 done;&lt;br /&gt;
 #Lets add them to apache&lt;br /&gt;
 echo '&amp;lt;Directory /&amp;gt;' &amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo 'Order Deny,Allow' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 cat /blockasn/AS*.txt | grep -v Order &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo '&amp;lt;/Directory&amp;gt;' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf;&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
===Save the script to /blockasn/cron.script then add it to a cron===&lt;br /&gt;
&lt;br /&gt;
 echo '0 0 * * 6 /blockasn/cron.script &amp;gt;/dev/null 2&amp;gt;&amp;amp;1' &amp;gt;&amp;gt; /var/spool/cron/root&lt;br /&gt;
 chmod +x cron.script&lt;br /&gt;
&lt;br /&gt;
Now with everything setup you can easily block bad ASN from causing issues on your network, you can also add ASN that are not part of that list that you find over time, by adding an echo statement to update the badasnlist.list file before it goes into the add to apache&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #Block bad ASN&lt;br /&gt;
 #https://briansnelson.com/&lt;br /&gt;
 ###########################&lt;br /&gt;
 #Download List to use&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 #Add non listed ASN numbers to auto block list&lt;br /&gt;
 echo '32934' &amp;gt;&amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 #Get all the ASN lists download to your blockasn directory&lt;br /&gt;
 for x in $(cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2| grep -v ASN); do&lt;br /&gt;
   wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS$x&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
 done;&lt;br /&gt;
 #Lets add them to apache&lt;br /&gt;
 echo '&amp;lt;Directory /&amp;gt;' &amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo 'Order Deny,Allow' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 cat //blockasn/AS*.txt | grep -v Order &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo '&amp;lt;/Directory&amp;gt;' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf;&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
Use with caution, as come copy and paste will mixup the quotes in the above script&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_do_I_block_a_host_by_ASN_for_apache_-_Example&amp;diff=1060</id>
		<title>How do I block a host by ASN for apache - Example</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_do_I_block_a_host_by_ASN_for_apache_-_Example&amp;diff=1060"/>
				<updated>2022-03-27T17:38:05Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Save the script to /blockasn/cron.script then add it to a cron */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How do I block a host by ASN for apache - Example==&lt;br /&gt;
&lt;br /&gt;
Do you have issues with bots attempting to cause issues with your site?  This is can disrupt your business and cause all types of performance issue.&lt;br /&gt;
&lt;br /&gt;
Working to solve this we found it best to block entire ASN's for known bad ranges.&lt;br /&gt;
&lt;br /&gt;
During my investigation I found a list of known bad ASN&lt;br /&gt;
&lt;br /&gt;
https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv&lt;br /&gt;
&lt;br /&gt;
I took this list by downloading, and then parsing out the ASN numbers.&lt;br /&gt;
&lt;br /&gt;
===Get the contents of the bad ASN list===&lt;br /&gt;
&lt;br /&gt;
First create a directory to download this list to.&lt;br /&gt;
&lt;br /&gt;
 mkdir /blockasn&lt;br /&gt;
&lt;br /&gt;
Down the above csv file:&lt;br /&gt;
&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
&lt;br /&gt;
===Parsing the ASN number===&lt;br /&gt;
&lt;br /&gt;
 cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2&lt;br /&gt;
&lt;br /&gt;
You can use this with the following to download the ips for that ASN NUMBER, just replace ASN NUMBER&lt;br /&gt;
&lt;br /&gt;
 wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS[[ASN NUMBER]]&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This will save the contents to file: &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 AS9925_htaccess.txt&lt;br /&gt;
&lt;br /&gt;
Then you can copy this over to apache configuration directory:&lt;br /&gt;
&lt;br /&gt;
 cp AS9925_htaccess.txt /etc/httpd/conf.d/AS9925.conf&lt;br /&gt;
&lt;br /&gt;
Then just restart apache and it will be blocked&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
At this point you have blocked all the ips in that ASN&lt;br /&gt;
&lt;br /&gt;
==Making a Script that you can apply to a cron to auto update the list==&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #Block bad ASN&lt;br /&gt;
 #https://briansnelson.com/&lt;br /&gt;
 ###########################&lt;br /&gt;
 #Download List to use&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 &lt;br /&gt;
 #Get all the ASN lists download to your blockasn directory&lt;br /&gt;
 for x in $(cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2| grep -v ASN); do&lt;br /&gt;
   wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS$x&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
 done;&lt;br /&gt;
 #Lets add them to apache&lt;br /&gt;
 echo '&amp;lt;Directory /&amp;gt;' &amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo 'Order Deny,Allow' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 cat //blockasn/AS*.txt | grep -v Order &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo '&amp;lt;/Directory&amp;gt;' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf;&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
===Save the script to /blockasn/cron.script then add it to a cron===&lt;br /&gt;
&lt;br /&gt;
 echo '0 0 * * 6 /blockasn/cron.script &amp;gt;/dev/null 2&amp;gt;&amp;amp;1' &amp;gt;&amp;gt; /var/spool/cron/root&lt;br /&gt;
 chmod +x cron.script&lt;br /&gt;
&lt;br /&gt;
Now with everything setup you can easily block bad ASN from causing issues on your network, you can also add ASN that are not part of that list that you find over time, by adding an echo statement to update the badasnlist.list file before it goes into the add to apache&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #Block bad ASN&lt;br /&gt;
 #https://briansnelson.com/&lt;br /&gt;
 ###########################&lt;br /&gt;
 #Download List to use&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 #Add non listed ASN numbers to auto block list&lt;br /&gt;
 echo '32934' &amp;gt;&amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 #Get all the ASN lists download to your blockasn directory&lt;br /&gt;
 for x in $(cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2| grep -v ASN); do&lt;br /&gt;
   wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS$x&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
 done;&lt;br /&gt;
 #Lets add them to apache&lt;br /&gt;
 echo '&amp;lt;Directory /&amp;gt;' &amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo 'Order Deny,Allow' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 cat //blockasn/AS*.txt | grep -v Order &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo '&amp;lt;/Directory&amp;gt;' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf;&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
Use with caution, as come copy and paste will mixup the quotes in the above script&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_do_I_block_a_host_by_ASN_for_apache_-_Example&amp;diff=1059</id>
		<title>How do I block a host by ASN for apache - Example</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_do_I_block_a_host_by_ASN_for_apache_-_Example&amp;diff=1059"/>
				<updated>2022-03-27T17:37:13Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Making a Script that you can apply to a cron to auto update the list */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How do I block a host by ASN for apache - Example==&lt;br /&gt;
&lt;br /&gt;
Do you have issues with bots attempting to cause issues with your site?  This is can disrupt your business and cause all types of performance issue.&lt;br /&gt;
&lt;br /&gt;
Working to solve this we found it best to block entire ASN's for known bad ranges.&lt;br /&gt;
&lt;br /&gt;
During my investigation I found a list of known bad ASN&lt;br /&gt;
&lt;br /&gt;
https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv&lt;br /&gt;
&lt;br /&gt;
I took this list by downloading, and then parsing out the ASN numbers.&lt;br /&gt;
&lt;br /&gt;
===Get the contents of the bad ASN list===&lt;br /&gt;
&lt;br /&gt;
First create a directory to download this list to.&lt;br /&gt;
&lt;br /&gt;
 mkdir /blockasn&lt;br /&gt;
&lt;br /&gt;
Down the above csv file:&lt;br /&gt;
&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
&lt;br /&gt;
===Parsing the ASN number===&lt;br /&gt;
&lt;br /&gt;
 cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2&lt;br /&gt;
&lt;br /&gt;
You can use this with the following to download the ips for that ASN NUMBER, just replace ASN NUMBER&lt;br /&gt;
&lt;br /&gt;
 wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS[[ASN NUMBER]]&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This will save the contents to file: &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 AS9925_htaccess.txt&lt;br /&gt;
&lt;br /&gt;
Then you can copy this over to apache configuration directory:&lt;br /&gt;
&lt;br /&gt;
 cp AS9925_htaccess.txt /etc/httpd/conf.d/AS9925.conf&lt;br /&gt;
&lt;br /&gt;
Then just restart apache and it will be blocked&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
At this point you have blocked all the ips in that ASN&lt;br /&gt;
&lt;br /&gt;
==Making a Script that you can apply to a cron to auto update the list==&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #Block bad ASN&lt;br /&gt;
 #https://briansnelson.com/&lt;br /&gt;
 ###########################&lt;br /&gt;
 #Download List to use&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 &lt;br /&gt;
 #Get all the ASN lists download to your blockasn directory&lt;br /&gt;
 for x in $(cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2| grep -v ASN); do&lt;br /&gt;
   wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS$x&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
 done;&lt;br /&gt;
 #Lets add them to apache&lt;br /&gt;
 echo '&amp;lt;Directory /&amp;gt;' &amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo 'Order Deny,Allow' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 cat //blockasn/AS*.txt | grep -v Order &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo '&amp;lt;/Directory&amp;gt;' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf;&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
===Save the script to /blockasn/cron.script then add it to a cron===&lt;br /&gt;
&lt;br /&gt;
 echo '0 0 * * 6 /blockasn/cron.script &amp;gt;/dev/null 2&amp;gt;&amp;amp;1' &amp;gt; /var/spool/cron/root&lt;br /&gt;
 chmod +x cron.script&lt;br /&gt;
&lt;br /&gt;
Now with everything setup you can easily block bad ASN from causing issues on your network, you can also add ASN that are not part of that list that you find over time, by adding an echo statement to update the badasnlist.list file before it goes into the add to apache&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #Block bad ASN&lt;br /&gt;
 #https://briansnelson.com/&lt;br /&gt;
 ###########################&lt;br /&gt;
 #Download List to use&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 #Add non listed ASN numbers to auto block list&lt;br /&gt;
 echo '32934' &amp;gt;&amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 #Get all the ASN lists download to your blockasn directory&lt;br /&gt;
 for x in $(cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2| grep -v ASN); do&lt;br /&gt;
   wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS$x&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
 done;&lt;br /&gt;
 #Lets add them to apache&lt;br /&gt;
 echo '&amp;lt;Directory /&amp;gt;' &amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo 'Order Deny,Allow' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 cat //blockasn/AS*.txt | grep -v Order &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo '&amp;lt;/Directory&amp;gt;' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf;&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
Use with caution, as come copy and paste will mixup the quotes in the above script&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_do_I_block_a_host_by_ASN_for_apache_-_Example&amp;diff=1058</id>
		<title>How do I block a host by ASN for apache - Example</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_do_I_block_a_host_by_ASN_for_apache_-_Example&amp;diff=1058"/>
				<updated>2022-03-27T17:37:02Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Save the script to /blockasn/cron.script then add it to a cron */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How do I block a host by ASN for apache - Example==&lt;br /&gt;
&lt;br /&gt;
Do you have issues with bots attempting to cause issues with your site?  This is can disrupt your business and cause all types of performance issue.&lt;br /&gt;
&lt;br /&gt;
Working to solve this we found it best to block entire ASN's for known bad ranges.&lt;br /&gt;
&lt;br /&gt;
During my investigation I found a list of known bad ASN&lt;br /&gt;
&lt;br /&gt;
https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv&lt;br /&gt;
&lt;br /&gt;
I took this list by downloading, and then parsing out the ASN numbers.&lt;br /&gt;
&lt;br /&gt;
===Get the contents of the bad ASN list===&lt;br /&gt;
&lt;br /&gt;
First create a directory to download this list to.&lt;br /&gt;
&lt;br /&gt;
 mkdir /blockasn&lt;br /&gt;
&lt;br /&gt;
Down the above csv file:&lt;br /&gt;
&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
&lt;br /&gt;
===Parsing the ASN number===&lt;br /&gt;
&lt;br /&gt;
 cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2&lt;br /&gt;
&lt;br /&gt;
You can use this with the following to download the ips for that ASN NUMBER, just replace ASN NUMBER&lt;br /&gt;
&lt;br /&gt;
 wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS[[ASN NUMBER]]&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This will save the contents to file: &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 AS9925_htaccess.txt&lt;br /&gt;
&lt;br /&gt;
Then you can copy this over to apache configuration directory:&lt;br /&gt;
&lt;br /&gt;
 cp AS9925_htaccess.txt /etc/httpd/conf.d/AS9925.conf&lt;br /&gt;
&lt;br /&gt;
Then just restart apache and it will be blocked&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
At this point you have blocked all the ips in that ASN&lt;br /&gt;
&lt;br /&gt;
==Making a Script that you can apply to a cron to auto update the list==&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #Block bad ASN&lt;br /&gt;
 #https://briansnelson.com/&lt;br /&gt;
 ###########################&lt;br /&gt;
 #Make the working directory&lt;br /&gt;
 mkdir /blockasn&lt;br /&gt;
 #Download List to use&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 &lt;br /&gt;
 #Get all the ASN lists download to your blockasn directory&lt;br /&gt;
 for x in $(cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2| grep -v ASN); do&lt;br /&gt;
   wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS$x&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
 done;&lt;br /&gt;
 #Lets add them to apache&lt;br /&gt;
 echo '&amp;lt;Directory /&amp;gt;' &amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo 'Order Deny,Allow' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 cat //blockasn/AS*.txt | grep -v Order &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo '&amp;lt;/Directory&amp;gt;' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf;&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
===Save the script to /blockasn/cron.script then add it to a cron===&lt;br /&gt;
&lt;br /&gt;
 echo '0 0 * * 6 /blockasn/cron.script &amp;gt;/dev/null 2&amp;gt;&amp;amp;1' &amp;gt; /var/spool/cron/root&lt;br /&gt;
 chmod +x cron.script&lt;br /&gt;
&lt;br /&gt;
Now with everything setup you can easily block bad ASN from causing issues on your network, you can also add ASN that are not part of that list that you find over time, by adding an echo statement to update the badasnlist.list file before it goes into the add to apache&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #Block bad ASN&lt;br /&gt;
 #https://briansnelson.com/&lt;br /&gt;
 ###########################&lt;br /&gt;
 #Download List to use&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 #Add non listed ASN numbers to auto block list&lt;br /&gt;
 echo '32934' &amp;gt;&amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 #Get all the ASN lists download to your blockasn directory&lt;br /&gt;
 for x in $(cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2| grep -v ASN); do&lt;br /&gt;
   wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS$x&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
 done;&lt;br /&gt;
 #Lets add them to apache&lt;br /&gt;
 echo '&amp;lt;Directory /&amp;gt;' &amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo 'Order Deny,Allow' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 cat //blockasn/AS*.txt | grep -v Order &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo '&amp;lt;/Directory&amp;gt;' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf;&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
Use with caution, as come copy and paste will mixup the quotes in the above script&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_do_I_block_a_host_by_ASN_for_apache_-_Example&amp;diff=1057</id>
		<title>How do I block a host by ASN for apache - Example</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_do_I_block_a_host_by_ASN_for_apache_-_Example&amp;diff=1057"/>
				<updated>2022-03-27T17:35:06Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Making a Script that you can apply to a cron to auto update the list */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How do I block a host by ASN for apache - Example==&lt;br /&gt;
&lt;br /&gt;
Do you have issues with bots attempting to cause issues with your site?  This is can disrupt your business and cause all types of performance issue.&lt;br /&gt;
&lt;br /&gt;
Working to solve this we found it best to block entire ASN's for known bad ranges.&lt;br /&gt;
&lt;br /&gt;
During my investigation I found a list of known bad ASN&lt;br /&gt;
&lt;br /&gt;
https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv&lt;br /&gt;
&lt;br /&gt;
I took this list by downloading, and then parsing out the ASN numbers.&lt;br /&gt;
&lt;br /&gt;
===Get the contents of the bad ASN list===&lt;br /&gt;
&lt;br /&gt;
First create a directory to download this list to.&lt;br /&gt;
&lt;br /&gt;
 mkdir /blockasn&lt;br /&gt;
&lt;br /&gt;
Down the above csv file:&lt;br /&gt;
&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
&lt;br /&gt;
===Parsing the ASN number===&lt;br /&gt;
&lt;br /&gt;
 cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2&lt;br /&gt;
&lt;br /&gt;
You can use this with the following to download the ips for that ASN NUMBER, just replace ASN NUMBER&lt;br /&gt;
&lt;br /&gt;
 wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS[[ASN NUMBER]]&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This will save the contents to file: &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 AS9925_htaccess.txt&lt;br /&gt;
&lt;br /&gt;
Then you can copy this over to apache configuration directory:&lt;br /&gt;
&lt;br /&gt;
 cp AS9925_htaccess.txt /etc/httpd/conf.d/AS9925.conf&lt;br /&gt;
&lt;br /&gt;
Then just restart apache and it will be blocked&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
At this point you have blocked all the ips in that ASN&lt;br /&gt;
&lt;br /&gt;
==Making a Script that you can apply to a cron to auto update the list==&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #Block bad ASN&lt;br /&gt;
 #https://briansnelson.com/&lt;br /&gt;
 ###########################&lt;br /&gt;
 #Make the working directory&lt;br /&gt;
 mkdir /blockasn&lt;br /&gt;
 #Download List to use&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 &lt;br /&gt;
 #Get all the ASN lists download to your blockasn directory&lt;br /&gt;
 for x in $(cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2| grep -v ASN); do&lt;br /&gt;
   wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS$x&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
 done;&lt;br /&gt;
 #Lets add them to apache&lt;br /&gt;
 echo '&amp;lt;Directory /&amp;gt;' &amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo 'Order Deny,Allow' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 cat //blockasn/AS*.txt | grep -v Order &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo '&amp;lt;/Directory&amp;gt;' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf;&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
===Save the script to /blockasn/cron.script then add it to a cron===&lt;br /&gt;
&lt;br /&gt;
 echo '0 0 * * 6 /blockasn/cron.script &amp;gt;/dev/null 2&amp;gt;&amp;amp;1' &amp;gt; /var/spool/cron/root&lt;br /&gt;
&lt;br /&gt;
Now with everything setup you can easily block bad ASN from causing issues on your network, you can also add ASN that are not part of that list that you find over time, by adding an echo statement to update the badasnlist.list file before it goes into the add to apache&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #Block bad ASN&lt;br /&gt;
 #https://briansnelson.com/&lt;br /&gt;
 ###########################&lt;br /&gt;
 #Make the working directory&lt;br /&gt;
 mkdir /blockasn&lt;br /&gt;
 #Download List to use&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 #Add non listed ASN numbers to auto block list&lt;br /&gt;
 echo '32934' &amp;gt;&amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 #Get all the ASN lists download to your blockasn directory&lt;br /&gt;
 for x in $(cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2| grep -v ASN); do&lt;br /&gt;
   wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS$x&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
 done;&lt;br /&gt;
 #Lets add them to apache&lt;br /&gt;
 echo '&amp;lt;Directory /&amp;gt;' &amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo 'Order Deny,Allow' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 cat //blockasn/AS*.txt | grep -v Order &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo '&amp;lt;/Directory&amp;gt;' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf;&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
Use with caution, as come copy and paste will mixup the quotes in the above script&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_do_I_block_a_host_by_ASN_for_apache_-_Example&amp;diff=1056</id>
		<title>How do I block a host by ASN for apache - Example</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_do_I_block_a_host_by_ASN_for_apache_-_Example&amp;diff=1056"/>
				<updated>2022-03-27T17:33:41Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: Created page with &amp;quot;==How do I block a host by ASN for apache - Example==  Do you have issues with bots attempting to cause issues with your site?  This is can disrupt your business and cause all...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How do I block a host by ASN for apache - Example==&lt;br /&gt;
&lt;br /&gt;
Do you have issues with bots attempting to cause issues with your site?  This is can disrupt your business and cause all types of performance issue.&lt;br /&gt;
&lt;br /&gt;
Working to solve this we found it best to block entire ASN's for known bad ranges.&lt;br /&gt;
&lt;br /&gt;
During my investigation I found a list of known bad ASN&lt;br /&gt;
&lt;br /&gt;
https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv&lt;br /&gt;
&lt;br /&gt;
I took this list by downloading, and then parsing out the ASN numbers.&lt;br /&gt;
&lt;br /&gt;
===Get the contents of the bad ASN list===&lt;br /&gt;
&lt;br /&gt;
First create a directory to download this list to.&lt;br /&gt;
&lt;br /&gt;
 mkdir /blockasn&lt;br /&gt;
&lt;br /&gt;
Down the above csv file:&lt;br /&gt;
&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
&lt;br /&gt;
===Parsing the ASN number===&lt;br /&gt;
&lt;br /&gt;
 cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2&lt;br /&gt;
&lt;br /&gt;
You can use this with the following to download the ips for that ASN NUMBER, just replace ASN NUMBER&lt;br /&gt;
&lt;br /&gt;
 wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS[[ASN NUMBER]]&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This will save the contents to file: &lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 AS9925_htaccess.txt&lt;br /&gt;
&lt;br /&gt;
Then you can copy this over to apache configuration directory:&lt;br /&gt;
&lt;br /&gt;
 cp AS9925_htaccess.txt /etc/httpd/conf.d/AS9925.conf&lt;br /&gt;
&lt;br /&gt;
Then just restart apache and it will be blocked&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
At this point you have blocked all the ips in that ASN&lt;br /&gt;
&lt;br /&gt;
==Making a Script that you can apply to a cron to auto update the list==&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #Block bad ASN&lt;br /&gt;
 #https://briansnelson.com/&lt;br /&gt;
 #Download List to use&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 &lt;br /&gt;
 #Get all the ASN lists download to your blockasn directory&lt;br /&gt;
 for x in $(cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2| grep -v ASN); do&lt;br /&gt;
   wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS$x&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
 done;&lt;br /&gt;
 #Lets add them to apache&lt;br /&gt;
 echo '&amp;lt;Directory /&amp;gt;' &amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo 'Order Deny,Allow' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 cat //blockasn/AS*.txt | grep -v Order &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo '&amp;lt;/Directory&amp;gt;' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf;&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
===Save the script to /blockasn/cron.script then add it to a cron===&lt;br /&gt;
&lt;br /&gt;
 echo '0 0 * * 6 /blockasn/cron.script &amp;gt;/dev/null 2&amp;gt;&amp;amp;1' &amp;gt; /var/spool/cron/root&lt;br /&gt;
&lt;br /&gt;
Now with everything setup you can easily block bad ASN from causing issues on your network, you can also add ASN that are not part of that list that you find over time, by adding an echo statement to update the badasnlist.list file before it goes into the add to apache&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #Block bad ASN&lt;br /&gt;
 #https://briansnelson.com/&lt;br /&gt;
 #Download List to use&lt;br /&gt;
 curl https://raw.githubusercontent.com/brianhama/bad-asn-list/master/bad-asn-list.csv &amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 #Add non listed ASN numbers to auto block list&lt;br /&gt;
 echo '32934' &amp;gt;&amp;gt; /blockasn/badasnlist.list&lt;br /&gt;
 #Get all the ASN lists download to your blockasn directory&lt;br /&gt;
 for x in $(cat /blockasn/badasnlist.list | awk -F',' '{print $1}' | cut -d'&amp;quot;' -f2| grep -v ASN); do&lt;br /&gt;
   wget --content-disposition &amp;quot;https://www.enjen.net/asn-blocklist/index.php?asn=AS$x&amp;amp;type=htaccess&amp;amp;api=1&amp;quot;&lt;br /&gt;
 done;&lt;br /&gt;
 #Lets add them to apache&lt;br /&gt;
 echo '&amp;lt;Directory /&amp;gt;' &amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo 'Order Deny,Allow' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 cat //blockasn/AS*.txt | grep -v Order &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf; &lt;br /&gt;
 echo '&amp;lt;/Directory&amp;gt;' &amp;gt;&amp;gt; /etc/httpd/conf.d/blockASN.conf;&lt;br /&gt;
 sudo systemctl restart httpd.service&lt;br /&gt;
&lt;br /&gt;
Use with caution, as come copy and paste will mixup the quotes in the above script&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Main_Page&amp;diff=1055</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Main_Page&amp;diff=1055"/>
				<updated>2022-03-27T17:06:06Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Apache/PHP */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Welcome to Ramblings of a Centos Ninja==&lt;br /&gt;
&lt;br /&gt;
[[File:Centos-logo.png|100px|frameless|right|alt=Centos How-Tos]]&lt;br /&gt;
===Centos 7===&lt;br /&gt;
 --&amp;gt; [[Install Remi and EPEL yum repo Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Mysql Database Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Apache Web Server Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install PHP/PHP-FPM 5.4 Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install (LAMP) Linux Apache MySQL and PHP Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Redis on Centos 7 How To]]&lt;br /&gt;
 --&amp;gt; [[How To Configure SWAP on Centos 7]] &lt;br /&gt;
 --&amp;gt; [[How to find user memory usage in linux]]&lt;br /&gt;
 --&amp;gt; [[How to Configure letsencrypt with Apache on Centos 7 Server]]&lt;br /&gt;
 --&amp;gt; [[How to configure Gmail as a Mail Relay with Postfix]]&lt;br /&gt;
 --&amp;gt; [[How use GeoIP on the command line Centos7]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with .htpasswd/.htaccess]]&lt;br /&gt;
 --&amp;gt; [[Linux setfacl command]]&lt;br /&gt;
 --&amp;gt; [[How to disable SSH timeout]]  [[File:New.jpg|35px|frameless]]&lt;br /&gt;
 --&amp;gt; [[How to Install Squid Proxy Server on Cento7]]  [[File:New.jpg|35px|frameless]]&lt;br /&gt;
 --&amp;gt; [[How To Use Systemctl to Manage Systemd Services]]&lt;br /&gt;
&lt;br /&gt;
===Centos 6===&lt;br /&gt;
 --&amp;gt; [[Change Runlevel]]&lt;br /&gt;
 --&amp;gt; [[Check Current Runlevel]]&lt;br /&gt;
 --&amp;gt; [[Change Run Level at Bootup]]&lt;br /&gt;
 --&amp;gt; [[How to change the Hostname on Centos]]&lt;br /&gt;
 --&amp;gt; [[chkconfig settings]]&lt;br /&gt;
 --&amp;gt; [[How to extract a tar.gz file]]&lt;br /&gt;
 --&amp;gt; [[Install SIM - System Integrity Monitor]]&lt;br /&gt;
 --&amp;gt; [[Use Bash on a Non Bash User]]&lt;br /&gt;
 --&amp;gt; [[Quit Bash Shell without Saving Bash History]]&lt;br /&gt;
 --&amp;gt; [[Change the Timezone Centos]]&lt;br /&gt;
 --&amp;gt; [[Check the Version of Package]]&lt;br /&gt;
 --&amp;gt; [[How to install Sphinx on Centos Server]]&lt;br /&gt;
 --&amp;gt; [[How to install Redis on a Centos 6.4 Server]]&lt;br /&gt;
 --&amp;gt; [[Basic Redis commands - Cheat Sheet]]&lt;br /&gt;
 --&amp;gt; [[Adding a New Disk Drive with Centos]]&lt;br /&gt;
 --&amp;gt; [[Creating Backups using rsync with Examples]]&lt;br /&gt;
 --&amp;gt; [[Expand your bash_history to 2500]]&lt;br /&gt;
 --&amp;gt; [[Setup logrotate to rotate your logs]]&lt;br /&gt;
 --&amp;gt; [[GPG: Encrypt And Decrypt Files With A Password]]&lt;br /&gt;
 --&amp;gt; [[Install Remi and EPEL yum repo]] &lt;br /&gt;
 --&amp;gt; [[Install NewRelic on Centos6]]&lt;br /&gt;
 --&amp;gt; [[Setting Up An NFS Server And Client On CentOS 6]]&lt;br /&gt;
 --&amp;gt; [[Sar is not working how to restart]]&lt;br /&gt;
 --&amp;gt; [[Batch jpeg Image Optimization]]&lt;br /&gt;
 --&amp;gt; [[Howto Block or Open HTTP/HTTPs Ports IPTables]]&lt;br /&gt;
 --&amp;gt; [[Reset Root Password in CentOS]]&lt;br /&gt;
 --&amp;gt; [[Setup vsftp with SELinux]]&lt;br /&gt;
 --&amp;gt; [[Howto Setup NTP on CentOS]]&lt;br /&gt;
 --&amp;gt; [[Fix corrupted RPM database]]&lt;br /&gt;
 --&amp;gt; [[Crontab Usage]]&lt;br /&gt;
 --&amp;gt; [[Make an ISO from a Folder with mkisofs]]&lt;br /&gt;
 --&amp;gt; [[How to setup a VPN server with CentOS PPTPD]]&lt;br /&gt;
 --&amp;gt; [[APF Firewall -Advanced Policy Firewall - Basics]]&lt;br /&gt;
 --&amp;gt; [[How to Block Bittorrent Traffic with IPtables]]&lt;br /&gt;
 --&amp;gt; [[How to find user memory usage in linux]]&lt;br /&gt;
 --&amp;gt; [[How to install ccsrch on Centos 6]]&lt;br /&gt;
 --&amp;gt; [[How to install jpegoptim for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install optipng for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install gifsicle for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install jpegtran for CentOS]]&lt;br /&gt;
 --&amp;gt; [[IPTABLES quick command list]]&lt;br /&gt;
 --&amp;gt; [[Linux setfacl command]]&lt;br /&gt;
 --&amp;gt; [[Postfix Mail Queue Commands for Reviewing Emails]]&lt;br /&gt;
&lt;br /&gt;
[[File:Magentos.jpg|100px|frameless|right|alt=Magento How To's]]&lt;br /&gt;
&lt;br /&gt;
===Magento Community Edition/Magento Enterprise Edition===&lt;br /&gt;
 --&amp;gt; [[What is Magento?]]&lt;br /&gt;
 --&amp;gt; [[Clear Magento Cache]]&lt;br /&gt;
 --&amp;gt; [[Disable Magento Modules]]&lt;br /&gt;
 --&amp;gt; [[Turn on Manual Indexing]]&lt;br /&gt;
 --&amp;gt; [[How to Reset Magento Password]]&lt;br /&gt;
 --&amp;gt; [[How to Create Users in Mageento]]&lt;br /&gt;
 --&amp;gt; [[Enable Mysql Slow Query Logging]]&lt;br /&gt;
 --&amp;gt; [[Magento Connect is not Working]]&lt;br /&gt;
 --&amp;gt; [[Magento will NOT save my Product Updates]]&lt;br /&gt;
 --&amp;gt; [[Magento Internal Cron not Running]]&lt;br /&gt;
 --&amp;gt; [[Setting up the System Cron Job]]&lt;br /&gt;
 --&amp;gt; [[Magento Connect is not Working]]&lt;br /&gt;
 --&amp;gt; [[Changing the Minimum Search Query - MySQL Full Text Only]]&lt;br /&gt;
 --&amp;gt; [[Install Redis Caching for Magento]]&lt;br /&gt;
 --&amp;gt; [[Install Redis Full Page Caching for Magento Enterprise]]&lt;br /&gt;
 --&amp;gt; [[Setting up a Second Instance of Redis]]&lt;br /&gt;
 --&amp;gt; [[Magento Setup Return-Path Email]]&lt;br /&gt;
 --&amp;gt; [[Magento Server Compatibility Check]]&lt;br /&gt;
 --&amp;gt; [[Magento Database Optimization - Log Cleaning Script]]&lt;br /&gt;
 --&amp;gt; [[Magento Site Performance Optimization]] &lt;br /&gt;
 --&amp;gt; [[Magento Log Rotate with logrotate]]&lt;br /&gt;
 --&amp;gt; [[How to use CDN with Webfonts with Magento]] &lt;br /&gt;
 --&amp;gt; [[How to Disable Magento Newsletter Module]]&lt;br /&gt;
 --&amp;gt; [[Magento : Execute Custom Module Cron Manually]]&lt;br /&gt;
&lt;br /&gt;
[[File:Magentos.jpg|100px|frameless|right|alt=Magento2 How To's]]&lt;br /&gt;
&lt;br /&gt;
===Magento 2 Community Edition===&lt;br /&gt;
 --&amp;gt; [[Upgrade Magento2 via CLI]]&lt;br /&gt;
 --&amp;gt; [[Enable/Disable Magento2 Maintenance Page]]&lt;br /&gt;
 --&amp;gt; [[How to set Magento 2 permissions and avoid installation errors]]&lt;br /&gt;
 --&amp;gt; [[How to speed up Magento 2 out of the box]]&lt;br /&gt;
 --&amp;gt; [[How to Change Magento 2 mode]]&lt;br /&gt;
 --&amp;gt; [[How to Enable Disable Magento 2 caches]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 How to Add Alternative HTTP headers]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Purge Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Redis Page Cache and Default Cache Example]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 How to check Magento Version]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Reindex Error: Index is locked by another reindex process. Skipping]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Reindex via the CLI]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Custom 503 Maintenance page]]&lt;br /&gt;
&lt;br /&gt;
[[File:Memcahed.jpg|100px|frameless|right|alt=Memcache Caching]]&lt;br /&gt;
&lt;br /&gt;
===Memcached Server===&lt;br /&gt;
 --&amp;gt; [[Memcached Monitor Tool]]&lt;br /&gt;
 --&amp;gt; [[Setup Multi Instance Memcache]]&lt;br /&gt;
 --&amp;gt; [[Check if Memcached is Running]]&lt;br /&gt;
 --&amp;gt; [[Flush Your Memcached Instance]]&lt;br /&gt;
 --&amp;gt; [[Check Memory Usage of Memcached]]&lt;br /&gt;
 --&amp;gt; [[Memcache running out of Memory?]]&lt;br /&gt;
 --&amp;gt; [[Memcached List all Keys]]&lt;br /&gt;
&lt;br /&gt;
[[File:Apachelogo.gif|100px|right|alt=Apache How Tos]]&lt;br /&gt;
&lt;br /&gt;
===Apache/PHP===  &lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Deny access to my site with an .htaccess file]]&lt;br /&gt;
 --&amp;gt; [[Redirect site to www or non www]]&lt;br /&gt;
 --&amp;gt; [[Restrict POST request to Website]]&lt;br /&gt;
 --&amp;gt; [[Install Tomcat6 Server on Centos 6]]&lt;br /&gt;
 --&amp;gt; [[How to setup an SSL Certificate for Free]]&lt;br /&gt;
 --&amp;gt; [[Enable Apache to Create Core Dumps]]&lt;br /&gt;
 --&amp;gt; [[Enable php-fpm to create core dumps]]&lt;br /&gt;
 --&amp;gt; [[Debug PHP Enabling slow_log]] &lt;br /&gt;
 --&amp;gt; [[Block Bots by User Agent String]]&lt;br /&gt;
 --&amp;gt; [[Install mod_extact_forward - Show Real IP behind Proxy]]&lt;br /&gt;
 --&amp;gt; [[Install ionCube Loaders for Centos]]&lt;br /&gt;
 --&amp;gt; [[Install Zend Guard with PHP 5.3 on Centos]]&lt;br /&gt;
 --&amp;gt; [[Install Zend Guard 6.0 with PHP 5.4 on Centos]]&lt;br /&gt;
 --&amp;gt; [[Disable Mod_Security for a single vhost]]&lt;br /&gt;
 --&amp;gt; [[Hide PHP Version(X-Powered-By) in Headers]]&lt;br /&gt;
 --&amp;gt; [[Sessions are ending before MaxLifetime]]&lt;br /&gt;
 --&amp;gt; [[Apache mod_speling case insensitive urls issue]]&lt;br /&gt;
 --&amp;gt; [[Restrict access via htaccess via ipaddress]]&lt;br /&gt;
 --&amp;gt; [[Howto install mod_evasive with fail2ban]]&lt;br /&gt;
 --&amp;gt; [[Install the Latest version PHP on CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to bypass .htpasswd for certain IPs Apache]]&lt;br /&gt;
 --&amp;gt; [[Clear mod_pagespeed cache ]]&lt;br /&gt;
 --&amp;gt; [[Install GeoIP for Apache and PHP]]&lt;br /&gt;
 --&amp;gt; [[How to block or allow countries using GeoIP and .htaccess]]&lt;br /&gt;
 --&amp;gt; [[How to disable mod_security per vhost]]&lt;br /&gt;
 --&amp;gt; [[Force HTTPS for entire website via htaccess]]&lt;br /&gt;
 --&amp;gt; [[Restrict Access to wp-login.php and xmlrpc.php]]&lt;br /&gt;
 --&amp;gt; [[The X-Frame-Options response header]]&lt;br /&gt;
 --&amp;gt; [[Install Xdebug with php-fpm per pool]]&lt;br /&gt;
 --&amp;gt; [[How to Enable Gzip Compression]]&lt;br /&gt;
 --&amp;gt; [[Enable Apache rewrite logging]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with .htpasswd/.htaccess]]&lt;br /&gt;
 --&amp;gt; [[How to Disable PHP Execution in Certain Directories]]&lt;br /&gt;
 --&amp;gt; [[Directory listing in htaccess. Allow, Deny, Disable, Enable Directory Listing in .htaccess]]&lt;br /&gt;
 --&amp;gt; [[What is the Cache-Control Header]]&lt;br /&gt;
 --&amp;gt; [[How do I block a host by ASN for apache - Example]]&lt;br /&gt;
[[File:Haproxy.png|100px|frameless|right|alt=Mysql Percona]]&lt;br /&gt;
&lt;br /&gt;
===HAProxy===&lt;br /&gt;
 --&amp;gt; [[What is HAProxy]]&lt;br /&gt;
 --&amp;gt; [[HAProxy vs Nginx]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Load Balancing]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Cluster Setup Example]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Docker]]&lt;br /&gt;
 --&amp;gt; [[HAProxy with Varnish SSL Termination Example]]&lt;br /&gt;
 --&amp;gt; [[HAProxy http2]]&lt;br /&gt;
 --&amp;gt; [[HAProxy GUI]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Install on Centos7]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Cloud Load Balancer]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Block by User-Agent]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Restrict by IP Address]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Redirect domain to another domain]]&lt;br /&gt;
&lt;br /&gt;
[[File:Logo percona server new.png|100px|frameless|right|alt=Mysql Percona]]&lt;br /&gt;
&lt;br /&gt;
===Mysql/Percona===&lt;br /&gt;
 --&amp;gt; [[How to Optimize/Repair a Table]]&lt;br /&gt;
 --&amp;gt; [[MySQL - Check Which Query is Consuming Resources]]&lt;br /&gt;
 --&amp;gt; [[How to Set your MySQL Password]]&lt;br /&gt;
 --&amp;gt; [[Rest your MySQL Admin Password]]&lt;br /&gt;
 --&amp;gt; [[How to Convert Table to InnoDB]] &lt;br /&gt;
 --&amp;gt; [[How to install Percona Database Server]]&lt;br /&gt;
 --&amp;gt; [[How to Access the MySQL via Shell]]&lt;br /&gt;
 --&amp;gt; [[How to Add a User in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to Drop a User in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to Create and Delete a MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to Create a Table in MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to Create a MySQL Database Backup]]&lt;br /&gt;
 --&amp;gt; [[How to Import a MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to update the max_connections setting in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to view a list of MySQL users and their privileges]]&lt;br /&gt;
 --&amp;gt; [[Save MySQL query results into a text or CSV file]]&lt;br /&gt;
 --&amp;gt; [[How to optimize a MySQL database using phpMyAdmin]]&lt;br /&gt;
 --&amp;gt; [[How to solve MySQL max_user_connections error]]&lt;br /&gt;
 --&amp;gt; [[How to enable Show Engine Innodb Status]]&lt;br /&gt;
&lt;br /&gt;
[[File:Varnish-cache-log.jpeg|100px|frameless|right|alt=Varnish How tos]]&lt;br /&gt;
&lt;br /&gt;
===Varnish Cache===&lt;br /&gt;
 --&amp;gt; [[Setup Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for Magento]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for Wordpress]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for MediaWiki]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish - Multiple Domains]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish - Multiple Ipaddress]]&lt;br /&gt;
 --&amp;gt; [[Script to Clear a Page from Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Varnish will not restart WHY?]]&lt;br /&gt;
 --&amp;gt; [[Warm up Varnish Script using Sitemap.xml]]&lt;br /&gt;
 --&amp;gt; [[Varnish How to redirect non-www URLs to www]]&lt;br /&gt;
 --&amp;gt; [[Install libvmod-header with Varnish]]&lt;br /&gt;
&lt;br /&gt;
[[File:Nginx-logo.png|100px|frameless|right|Install Nginx|alt=Nginx How tos]]&lt;br /&gt;
&lt;br /&gt;
===Nginx Web Server===&lt;br /&gt;
 --&amp;gt; [[Setup Nginx PHP FPM Percona Mysql]]&lt;br /&gt;
 --&amp;gt; [[Wordpress Ngnix Rewrite Rules]]&lt;br /&gt;
 --&amp;gt; [[Setup up Nginx Caching]]&lt;br /&gt;
 --&amp;gt; [[Nginx Magento vhost Configuration]]&lt;br /&gt;
 --&amp;gt; [[Basic HTTP Authentication with Nginx]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with Nginx]]&lt;br /&gt;
 --&amp;gt; [[403 Forbidden Error Nginx - How to Solve]]&lt;br /&gt;
&lt;br /&gt;
[[File:Sword-of-Omens-Sword1.png|100px|frameless|right|alt=Brian Nelson]]&lt;br /&gt;
&lt;br /&gt;
===Other===&lt;br /&gt;
 --&amp;gt; [[How to add trusted root certificates]]&lt;br /&gt;
 --&amp;gt; [[Find:_10_Useful_Examples_of_Find]]&lt;br /&gt;
 --&amp;gt; [[Send email from PHP to a log file instead of sendmail]]&lt;br /&gt;
 --&amp;gt; [[Debugging Wordpress]]&lt;br /&gt;
 --&amp;gt; [[How to install Linux via USB]]&lt;br /&gt;
 --&amp;gt; [[Network Subnet Mask Cheat Sheet]]&lt;br /&gt;
 --&amp;gt; [[Linux Keyboard Shortcuts]]&lt;br /&gt;
 --&amp;gt; [[Setup a SSH Tunnel for Secure Browsing]]&lt;br /&gt;
 --&amp;gt; [[Install OpenSSH on Windows]]&lt;br /&gt;
 --&amp;gt; [[Install Qmail on a Fresh Centos Server]]&lt;br /&gt;
 --&amp;gt; [[Setup Qmail to Listen on port 587 for SMTP]]&lt;br /&gt;
 --&amp;gt; [[Qmail catch-all account with vpopmail]]&lt;br /&gt;
 --&amp;gt; [[Setup Incoming Email Pipe to Script for Qmail]]&lt;br /&gt;
 --&amp;gt; [[Qmail Control Files]]&lt;br /&gt;
 --&amp;gt; [[Install qmqtool for Qmail on Centos Server]]&lt;br /&gt;
 --&amp;gt; [[Rest Email Password for vpopmail]]&lt;br /&gt;
 --&amp;gt; [[How to check Used IP on your Home Network]]&lt;br /&gt;
 --&amp;gt; [[How to find GMAIL IPs to allow at Firewall]]&lt;br /&gt;
 --&amp;gt; [[Useful TCPDUMP commands]]&lt;br /&gt;
 --&amp;gt; [[Remove Email Block Lists]]&lt;br /&gt;
 --&amp;gt; [[How to disable qmail vpopmail email user]] &lt;br /&gt;
 --&amp;gt; [[Git Cheat Sheet - Git made easy]]&lt;br /&gt;
 --&amp;gt; [[Top Chmod Command Examples for Beginners]]&lt;br /&gt;
 --&amp;gt; [[Benchmarking and Load Testing with Siege]]&lt;br /&gt;
 --&amp;gt; [[Benchmarking and Load Testing with Apache Bench(AB)]]&lt;br /&gt;
 --&amp;gt; [[How do I find out more about socket files in /proc/fd]]&lt;br /&gt;
 --&amp;gt; [[How to Disable the wp-cron.php in WordPress]]&lt;br /&gt;
 --&amp;gt; [[How to delete mail queue in Postfix]]&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Top Command Line Games - Linux CLI Games]] &amp;lt;sub&amp;gt;Cause Linux can be fun&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Centos Oneliners]]&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Bash Script to Check Memory with Email Alert when Low]]&lt;br /&gt;
 --&amp;gt; [[Bash Script to Check Site Code Status with Email Alert]]&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_to_enable_Show_Engine_Innodb_Status&amp;diff=1054</id>
		<title>How to enable Show Engine Innodb Status</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_to_enable_Show_Engine_Innodb_Status&amp;diff=1054"/>
				<updated>2022-02-25T03:55:08Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* How to enable Show Engine Innodb Status */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How to enable Show Engine Innodb Status==&lt;br /&gt;
&lt;br /&gt;
Are you trying to see the latest deadlocks or foreign key errors but run in to the following error:&lt;br /&gt;
&lt;br /&gt;
[Error Code: 1227, SQL State: 42000] Access denied; you need (at least one of) the PROCESS privilege(s) for this operation&lt;br /&gt;
&lt;br /&gt;
When this happens you will need to grant your user the PROCESS privilege.&lt;br /&gt;
&lt;br /&gt;
 GRANT SELECT, PROCESS ON *.* TO '&amp;lt;youruser&amp;gt;'@'localhost';&lt;br /&gt;
&lt;br /&gt;
===Creating a new user to view Show Engine Innodb Status===&lt;br /&gt;
&lt;br /&gt;
Sometimes you find that a client or yourself wants to view Show Engine Innodb Status and they want a new user to do this with.&lt;br /&gt;
&lt;br /&gt;
Here are the standard commands to create and grant them the privileges:&lt;br /&gt;
&lt;br /&gt;
 CREATE USER '&amp;lt;newuser&amp;gt;'@'%' IDENTIFIED BY '&amp;lt;password&amp;gt;';&lt;br /&gt;
 GRANT SELECT, PROCESS ON *.* TO '&amp;lt;newuser&amp;gt;'@'%';&lt;br /&gt;
 FLUSH PRIVILEGES;&lt;br /&gt;
&lt;br /&gt;
This is the bare minimum to enable them to run (Show Engine Innodb Status)&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_to_enable_Show_Engine_Innodb_Status&amp;diff=1053</id>
		<title>How to enable Show Engine Innodb Status</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_to_enable_Show_Engine_Innodb_Status&amp;diff=1053"/>
				<updated>2022-02-25T03:54:40Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: Created page with &amp;quot;==How to enable Show Engine Innodb Status==  Are you trying to see the latest deadlocks or foreign key errors but run in to the following error:  [Error Code: 1227, SQL State:...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How to enable Show Engine Innodb Status==&lt;br /&gt;
&lt;br /&gt;
Are you trying to see the latest deadlocks or foreign key errors but run in to the following error:&lt;br /&gt;
&lt;br /&gt;
[Error Code: 1227, SQL State: 42000] Access denied; you need (at least one of) the PROCESS privilege(s) for this operation&lt;br /&gt;
&lt;br /&gt;
When this happens you will need to grant your user the PROCESS privilege.&lt;br /&gt;
&lt;br /&gt;
 GRANT SELECT, PROCESS ON *.* TO 'youruser'@'localhost';&lt;br /&gt;
&lt;br /&gt;
===Creating a new user to view Show Engine Innodb Status===&lt;br /&gt;
&lt;br /&gt;
Sometimes you find that a client or yourself wants to view Show Engine Innodb Status and they want a new user to do this with.&lt;br /&gt;
&lt;br /&gt;
Here are the standard commands to create and grant them the privileges:&lt;br /&gt;
&lt;br /&gt;
 CREATE USER '&amp;lt;youruser&amp;gt;'@'%' IDENTIFIED BY '&amp;lt;password&amp;gt;';&lt;br /&gt;
 GRANT SELECT, PROCESS ON *.* TO '&amp;lt;youruser&amp;gt;'@'%';&lt;br /&gt;
 FLUSH PRIVILEGES;&lt;br /&gt;
&lt;br /&gt;
This is the bare minimum to enable them to run (Show Engine Innodb Status)&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Main_Page&amp;diff=1052</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Main_Page&amp;diff=1052"/>
				<updated>2022-02-25T03:47:12Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Mysql/Percona */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Welcome to Ramblings of a Centos Ninja==&lt;br /&gt;
&lt;br /&gt;
[[File:Centos-logo.png|100px|frameless|right|alt=Centos How-Tos]]&lt;br /&gt;
===Centos 7===&lt;br /&gt;
 --&amp;gt; [[Install Remi and EPEL yum repo Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Mysql Database Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Apache Web Server Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install PHP/PHP-FPM 5.4 Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install (LAMP) Linux Apache MySQL and PHP Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Redis on Centos 7 How To]]&lt;br /&gt;
 --&amp;gt; [[How To Configure SWAP on Centos 7]] &lt;br /&gt;
 --&amp;gt; [[How to find user memory usage in linux]]&lt;br /&gt;
 --&amp;gt; [[How to Configure letsencrypt with Apache on Centos 7 Server]]&lt;br /&gt;
 --&amp;gt; [[How to configure Gmail as a Mail Relay with Postfix]]&lt;br /&gt;
 --&amp;gt; [[How use GeoIP on the command line Centos7]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with .htpasswd/.htaccess]]&lt;br /&gt;
 --&amp;gt; [[Linux setfacl command]]&lt;br /&gt;
 --&amp;gt; [[How to disable SSH timeout]]  [[File:New.jpg|35px|frameless]]&lt;br /&gt;
 --&amp;gt; [[How to Install Squid Proxy Server on Cento7]]  [[File:New.jpg|35px|frameless]]&lt;br /&gt;
 --&amp;gt; [[How To Use Systemctl to Manage Systemd Services]]&lt;br /&gt;
&lt;br /&gt;
===Centos 6===&lt;br /&gt;
 --&amp;gt; [[Change Runlevel]]&lt;br /&gt;
 --&amp;gt; [[Check Current Runlevel]]&lt;br /&gt;
 --&amp;gt; [[Change Run Level at Bootup]]&lt;br /&gt;
 --&amp;gt; [[How to change the Hostname on Centos]]&lt;br /&gt;
 --&amp;gt; [[chkconfig settings]]&lt;br /&gt;
 --&amp;gt; [[How to extract a tar.gz file]]&lt;br /&gt;
 --&amp;gt; [[Install SIM - System Integrity Monitor]]&lt;br /&gt;
 --&amp;gt; [[Use Bash on a Non Bash User]]&lt;br /&gt;
 --&amp;gt; [[Quit Bash Shell without Saving Bash History]]&lt;br /&gt;
 --&amp;gt; [[Change the Timezone Centos]]&lt;br /&gt;
 --&amp;gt; [[Check the Version of Package]]&lt;br /&gt;
 --&amp;gt; [[How to install Sphinx on Centos Server]]&lt;br /&gt;
 --&amp;gt; [[How to install Redis on a Centos 6.4 Server]]&lt;br /&gt;
 --&amp;gt; [[Basic Redis commands - Cheat Sheet]]&lt;br /&gt;
 --&amp;gt; [[Adding a New Disk Drive with Centos]]&lt;br /&gt;
 --&amp;gt; [[Creating Backups using rsync with Examples]]&lt;br /&gt;
 --&amp;gt; [[Expand your bash_history to 2500]]&lt;br /&gt;
 --&amp;gt; [[Setup logrotate to rotate your logs]]&lt;br /&gt;
 --&amp;gt; [[GPG: Encrypt And Decrypt Files With A Password]]&lt;br /&gt;
 --&amp;gt; [[Install Remi and EPEL yum repo]] &lt;br /&gt;
 --&amp;gt; [[Install NewRelic on Centos6]]&lt;br /&gt;
 --&amp;gt; [[Setting Up An NFS Server And Client On CentOS 6]]&lt;br /&gt;
 --&amp;gt; [[Sar is not working how to restart]]&lt;br /&gt;
 --&amp;gt; [[Batch jpeg Image Optimization]]&lt;br /&gt;
 --&amp;gt; [[Howto Block or Open HTTP/HTTPs Ports IPTables]]&lt;br /&gt;
 --&amp;gt; [[Reset Root Password in CentOS]]&lt;br /&gt;
 --&amp;gt; [[Setup vsftp with SELinux]]&lt;br /&gt;
 --&amp;gt; [[Howto Setup NTP on CentOS]]&lt;br /&gt;
 --&amp;gt; [[Fix corrupted RPM database]]&lt;br /&gt;
 --&amp;gt; [[Crontab Usage]]&lt;br /&gt;
 --&amp;gt; [[Make an ISO from a Folder with mkisofs]]&lt;br /&gt;
 --&amp;gt; [[How to setup a VPN server with CentOS PPTPD]]&lt;br /&gt;
 --&amp;gt; [[APF Firewall -Advanced Policy Firewall - Basics]]&lt;br /&gt;
 --&amp;gt; [[How to Block Bittorrent Traffic with IPtables]]&lt;br /&gt;
 --&amp;gt; [[How to find user memory usage in linux]]&lt;br /&gt;
 --&amp;gt; [[How to install ccsrch on Centos 6]]&lt;br /&gt;
 --&amp;gt; [[How to install jpegoptim for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install optipng for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install gifsicle for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install jpegtran for CentOS]]&lt;br /&gt;
 --&amp;gt; [[IPTABLES quick command list]]&lt;br /&gt;
 --&amp;gt; [[Linux setfacl command]]&lt;br /&gt;
 --&amp;gt; [[Postfix Mail Queue Commands for Reviewing Emails]]&lt;br /&gt;
&lt;br /&gt;
[[File:Magentos.jpg|100px|frameless|right|alt=Magento How To's]]&lt;br /&gt;
&lt;br /&gt;
===Magento Community Edition/Magento Enterprise Edition===&lt;br /&gt;
 --&amp;gt; [[What is Magento?]]&lt;br /&gt;
 --&amp;gt; [[Clear Magento Cache]]&lt;br /&gt;
 --&amp;gt; [[Disable Magento Modules]]&lt;br /&gt;
 --&amp;gt; [[Turn on Manual Indexing]]&lt;br /&gt;
 --&amp;gt; [[How to Reset Magento Password]]&lt;br /&gt;
 --&amp;gt; [[How to Create Users in Mageento]]&lt;br /&gt;
 --&amp;gt; [[Enable Mysql Slow Query Logging]]&lt;br /&gt;
 --&amp;gt; [[Magento Connect is not Working]]&lt;br /&gt;
 --&amp;gt; [[Magento will NOT save my Product Updates]]&lt;br /&gt;
 --&amp;gt; [[Magento Internal Cron not Running]]&lt;br /&gt;
 --&amp;gt; [[Setting up the System Cron Job]]&lt;br /&gt;
 --&amp;gt; [[Magento Connect is not Working]]&lt;br /&gt;
 --&amp;gt; [[Changing the Minimum Search Query - MySQL Full Text Only]]&lt;br /&gt;
 --&amp;gt; [[Install Redis Caching for Magento]]&lt;br /&gt;
 --&amp;gt; [[Install Redis Full Page Caching for Magento Enterprise]]&lt;br /&gt;
 --&amp;gt; [[Setting up a Second Instance of Redis]]&lt;br /&gt;
 --&amp;gt; [[Magento Setup Return-Path Email]]&lt;br /&gt;
 --&amp;gt; [[Magento Server Compatibility Check]]&lt;br /&gt;
 --&amp;gt; [[Magento Database Optimization - Log Cleaning Script]]&lt;br /&gt;
 --&amp;gt; [[Magento Site Performance Optimization]] &lt;br /&gt;
 --&amp;gt; [[Magento Log Rotate with logrotate]]&lt;br /&gt;
 --&amp;gt; [[How to use CDN with Webfonts with Magento]] &lt;br /&gt;
 --&amp;gt; [[How to Disable Magento Newsletter Module]]&lt;br /&gt;
 --&amp;gt; [[Magento : Execute Custom Module Cron Manually]]&lt;br /&gt;
&lt;br /&gt;
[[File:Magentos.jpg|100px|frameless|right|alt=Magento2 How To's]]&lt;br /&gt;
&lt;br /&gt;
===Magento 2 Community Edition===&lt;br /&gt;
 --&amp;gt; [[Upgrade Magento2 via CLI]]&lt;br /&gt;
 --&amp;gt; [[Enable/Disable Magento2 Maintenance Page]]&lt;br /&gt;
 --&amp;gt; [[How to set Magento 2 permissions and avoid installation errors]]&lt;br /&gt;
 --&amp;gt; [[How to speed up Magento 2 out of the box]]&lt;br /&gt;
 --&amp;gt; [[How to Change Magento 2 mode]]&lt;br /&gt;
 --&amp;gt; [[How to Enable Disable Magento 2 caches]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 How to Add Alternative HTTP headers]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Purge Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Redis Page Cache and Default Cache Example]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 How to check Magento Version]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Reindex Error: Index is locked by another reindex process. Skipping]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Reindex via the CLI]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Custom 503 Maintenance page]]&lt;br /&gt;
&lt;br /&gt;
[[File:Memcahed.jpg|100px|frameless|right|alt=Memcache Caching]]&lt;br /&gt;
&lt;br /&gt;
===Memcached Server===&lt;br /&gt;
 --&amp;gt; [[Memcached Monitor Tool]]&lt;br /&gt;
 --&amp;gt; [[Setup Multi Instance Memcache]]&lt;br /&gt;
 --&amp;gt; [[Check if Memcached is Running]]&lt;br /&gt;
 --&amp;gt; [[Flush Your Memcached Instance]]&lt;br /&gt;
 --&amp;gt; [[Check Memory Usage of Memcached]]&lt;br /&gt;
 --&amp;gt; [[Memcache running out of Memory?]]&lt;br /&gt;
 --&amp;gt; [[Memcached List all Keys]]&lt;br /&gt;
&lt;br /&gt;
[[File:Apachelogo.gif|100px|right|alt=Apache How Tos]]&lt;br /&gt;
&lt;br /&gt;
===Apache/PHP===  &lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Deny access to my site with an .htaccess file]]&lt;br /&gt;
 --&amp;gt; [[Redirect site to www or non www]]&lt;br /&gt;
 --&amp;gt; [[Restrict POST request to Website]]&lt;br /&gt;
 --&amp;gt; [[Install Tomcat6 Server on Centos 6]]&lt;br /&gt;
 --&amp;gt; [[How to setup an SSL Certificate for Free]]&lt;br /&gt;
 --&amp;gt; [[Enable Apache to Create Core Dumps]]&lt;br /&gt;
 --&amp;gt; [[Enable php-fpm to create core dumps]]&lt;br /&gt;
 --&amp;gt; [[Debug PHP Enabling slow_log]] &lt;br /&gt;
 --&amp;gt; [[Block Bots by User Agent String]]&lt;br /&gt;
 --&amp;gt; [[Install mod_extact_forward - Show Real IP behind Proxy]]&lt;br /&gt;
 --&amp;gt; [[Install ionCube Loaders for Centos]]&lt;br /&gt;
 --&amp;gt; [[Install Zend Guard with PHP 5.3 on Centos]]&lt;br /&gt;
 --&amp;gt; [[Install Zend Guard 6.0 with PHP 5.4 on Centos]]&lt;br /&gt;
 --&amp;gt; [[Disable Mod_Security for a single vhost]]&lt;br /&gt;
 --&amp;gt; [[Hide PHP Version(X-Powered-By) in Headers]]&lt;br /&gt;
 --&amp;gt; [[Sessions are ending before MaxLifetime]]&lt;br /&gt;
 --&amp;gt; [[Apache mod_speling case insensitive urls issue]]&lt;br /&gt;
 --&amp;gt; [[Restrict access via htaccess via ipaddress]]&lt;br /&gt;
 --&amp;gt; [[Howto install mod_evasive with fail2ban]]&lt;br /&gt;
 --&amp;gt; [[Install the Latest version PHP on CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to bypass .htpasswd for certain IPs Apache]]&lt;br /&gt;
 --&amp;gt; [[Clear mod_pagespeed cache ]]&lt;br /&gt;
 --&amp;gt; [[Install GeoIP for Apache and PHP]]&lt;br /&gt;
 --&amp;gt; [[How to block or allow countries using GeoIP and .htaccess]]&lt;br /&gt;
 --&amp;gt; [[How to disable mod_security per vhost]]&lt;br /&gt;
 --&amp;gt; [[Force HTTPS for entire website via htaccess]]&lt;br /&gt;
 --&amp;gt; [[Restrict Access to wp-login.php and xmlrpc.php]]&lt;br /&gt;
 --&amp;gt; [[The X-Frame-Options response header]]&lt;br /&gt;
 --&amp;gt; [[Install Xdebug with php-fpm per pool]]&lt;br /&gt;
 --&amp;gt; [[How to Enable Gzip Compression]]&lt;br /&gt;
 --&amp;gt; [[Enable Apache rewrite logging]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with .htpasswd/.htaccess]]&lt;br /&gt;
 --&amp;gt; [[How to Disable PHP Execution in Certain Directories]]&lt;br /&gt;
 --&amp;gt; [[Directory listing in htaccess. Allow, Deny, Disable, Enable Directory Listing in .htaccess]]&lt;br /&gt;
 --&amp;gt; [[What is the Cache-Control Header]]&lt;br /&gt;
[[File:Haproxy.png|100px|frameless|right|alt=Mysql Percona]]&lt;br /&gt;
&lt;br /&gt;
===HAProxy===&lt;br /&gt;
 --&amp;gt; [[What is HAProxy]]&lt;br /&gt;
 --&amp;gt; [[HAProxy vs Nginx]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Load Balancing]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Cluster Setup Example]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Docker]]&lt;br /&gt;
 --&amp;gt; [[HAProxy with Varnish SSL Termination Example]]&lt;br /&gt;
 --&amp;gt; [[HAProxy http2]]&lt;br /&gt;
 --&amp;gt; [[HAProxy GUI]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Install on Centos7]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Cloud Load Balancer]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Block by User-Agent]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Restrict by IP Address]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Redirect domain to another domain]]&lt;br /&gt;
&lt;br /&gt;
[[File:Logo percona server new.png|100px|frameless|right|alt=Mysql Percona]]&lt;br /&gt;
&lt;br /&gt;
===Mysql/Percona===&lt;br /&gt;
 --&amp;gt; [[How to Optimize/Repair a Table]]&lt;br /&gt;
 --&amp;gt; [[MySQL - Check Which Query is Consuming Resources]]&lt;br /&gt;
 --&amp;gt; [[How to Set your MySQL Password]]&lt;br /&gt;
 --&amp;gt; [[Rest your MySQL Admin Password]]&lt;br /&gt;
 --&amp;gt; [[How to Convert Table to InnoDB]] &lt;br /&gt;
 --&amp;gt; [[How to install Percona Database Server]]&lt;br /&gt;
 --&amp;gt; [[How to Access the MySQL via Shell]]&lt;br /&gt;
 --&amp;gt; [[How to Add a User in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to Drop a User in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to Create and Delete a MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to Create a Table in MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to Create a MySQL Database Backup]]&lt;br /&gt;
 --&amp;gt; [[How to Import a MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to update the max_connections setting in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to view a list of MySQL users and their privileges]]&lt;br /&gt;
 --&amp;gt; [[Save MySQL query results into a text or CSV file]]&lt;br /&gt;
 --&amp;gt; [[How to optimize a MySQL database using phpMyAdmin]]&lt;br /&gt;
 --&amp;gt; [[How to solve MySQL max_user_connections error]]&lt;br /&gt;
 --&amp;gt; [[How to enable Show Engine Innodb Status]]&lt;br /&gt;
&lt;br /&gt;
[[File:Varnish-cache-log.jpeg|100px|frameless|right|alt=Varnish How tos]]&lt;br /&gt;
&lt;br /&gt;
===Varnish Cache===&lt;br /&gt;
 --&amp;gt; [[Setup Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for Magento]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for Wordpress]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for MediaWiki]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish - Multiple Domains]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish - Multiple Ipaddress]]&lt;br /&gt;
 --&amp;gt; [[Script to Clear a Page from Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Varnish will not restart WHY?]]&lt;br /&gt;
 --&amp;gt; [[Warm up Varnish Script using Sitemap.xml]]&lt;br /&gt;
 --&amp;gt; [[Varnish How to redirect non-www URLs to www]]&lt;br /&gt;
 --&amp;gt; [[Install libvmod-header with Varnish]]&lt;br /&gt;
&lt;br /&gt;
[[File:Nginx-logo.png|100px|frameless|right|Install Nginx|alt=Nginx How tos]]&lt;br /&gt;
&lt;br /&gt;
===Nginx Web Server===&lt;br /&gt;
 --&amp;gt; [[Setup Nginx PHP FPM Percona Mysql]]&lt;br /&gt;
 --&amp;gt; [[Wordpress Ngnix Rewrite Rules]]&lt;br /&gt;
 --&amp;gt; [[Setup up Nginx Caching]]&lt;br /&gt;
 --&amp;gt; [[Nginx Magento vhost Configuration]]&lt;br /&gt;
 --&amp;gt; [[Basic HTTP Authentication with Nginx]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with Nginx]]&lt;br /&gt;
 --&amp;gt; [[403 Forbidden Error Nginx - How to Solve]]&lt;br /&gt;
&lt;br /&gt;
[[File:Sword-of-Omens-Sword1.png|100px|frameless|right|alt=Brian Nelson]]&lt;br /&gt;
&lt;br /&gt;
===Other===&lt;br /&gt;
 --&amp;gt; [[How to add trusted root certificates]]&lt;br /&gt;
 --&amp;gt; [[Find:_10_Useful_Examples_of_Find]]&lt;br /&gt;
 --&amp;gt; [[Send email from PHP to a log file instead of sendmail]]&lt;br /&gt;
 --&amp;gt; [[Debugging Wordpress]]&lt;br /&gt;
 --&amp;gt; [[How to install Linux via USB]]&lt;br /&gt;
 --&amp;gt; [[Network Subnet Mask Cheat Sheet]]&lt;br /&gt;
 --&amp;gt; [[Linux Keyboard Shortcuts]]&lt;br /&gt;
 --&amp;gt; [[Setup a SSH Tunnel for Secure Browsing]]&lt;br /&gt;
 --&amp;gt; [[Install OpenSSH on Windows]]&lt;br /&gt;
 --&amp;gt; [[Install Qmail on a Fresh Centos Server]]&lt;br /&gt;
 --&amp;gt; [[Setup Qmail to Listen on port 587 for SMTP]]&lt;br /&gt;
 --&amp;gt; [[Qmail catch-all account with vpopmail]]&lt;br /&gt;
 --&amp;gt; [[Setup Incoming Email Pipe to Script for Qmail]]&lt;br /&gt;
 --&amp;gt; [[Qmail Control Files]]&lt;br /&gt;
 --&amp;gt; [[Install qmqtool for Qmail on Centos Server]]&lt;br /&gt;
 --&amp;gt; [[Rest Email Password for vpopmail]]&lt;br /&gt;
 --&amp;gt; [[How to check Used IP on your Home Network]]&lt;br /&gt;
 --&amp;gt; [[How to find GMAIL IPs to allow at Firewall]]&lt;br /&gt;
 --&amp;gt; [[Useful TCPDUMP commands]]&lt;br /&gt;
 --&amp;gt; [[Remove Email Block Lists]]&lt;br /&gt;
 --&amp;gt; [[How to disable qmail vpopmail email user]] &lt;br /&gt;
 --&amp;gt; [[Git Cheat Sheet - Git made easy]]&lt;br /&gt;
 --&amp;gt; [[Top Chmod Command Examples for Beginners]]&lt;br /&gt;
 --&amp;gt; [[Benchmarking and Load Testing with Siege]]&lt;br /&gt;
 --&amp;gt; [[Benchmarking and Load Testing with Apache Bench(AB)]]&lt;br /&gt;
 --&amp;gt; [[How do I find out more about socket files in /proc/fd]]&lt;br /&gt;
 --&amp;gt; [[How to Disable the wp-cron.php in WordPress]]&lt;br /&gt;
 --&amp;gt; [[How to delete mail queue in Postfix]]&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Top Command Line Games - Linux CLI Games]] &amp;lt;sub&amp;gt;Cause Linux can be fun&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Centos Oneliners]]&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Bash Script to Check Memory with Email Alert when Low]]&lt;br /&gt;
 --&amp;gt; [[Bash Script to Check Site Code Status with Email Alert]]&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Magento_2_Custom_503_Maintenance_page&amp;diff=1051</id>
		<title>Magento 2 Custom 503 Maintenance page</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Magento_2_Custom_503_Maintenance_page&amp;diff=1051"/>
				<updated>2021-12-10T17:51:39Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Magento2 Custom 503 Maintenance Page ==&lt;br /&gt;
&lt;br /&gt;
I would start off by talking about the 503 Maintenance Page and how you can customize it and let your customer know they can still contact you.&lt;br /&gt;
&lt;br /&gt;
===(HTTP) 503 response code definition:===&lt;br /&gt;
&lt;br /&gt;
The HyperText Transfer Protocol (HTTP) 503 Service Unavailable server error response code indicates that the server is not ready to handle the request.&lt;br /&gt;
Common causes are a server that is down for maintenance or that is overloaded.&lt;br /&gt;
&lt;br /&gt;
Below is the basic magento2 maintenance page&lt;br /&gt;
&lt;br /&gt;
[[File:503-magneto2-maintenace-page.png|800px|frameless|alt=create custom magento2 maintenance page]]&lt;br /&gt;
&lt;br /&gt;
===How to Create a Custom Maintenance Page ===&lt;br /&gt;
&lt;br /&gt;
You will want to navigate to your html/pub/errors directory, this is where all the changes will happen.&lt;br /&gt;
&lt;br /&gt;
You will be tempted to change the 503 in html/pub/errors/default directory, however this is the wrong way to go about creating a custom 503 page, unless at some random update you want to lose your page.&lt;br /&gt;
&lt;br /&gt;
First we will want to copy the html/pub/errors/default to a new directory &lt;br /&gt;
&lt;br /&gt;
example:&lt;br /&gt;
 cd html/pub/errors/&lt;br /&gt;
 cp -rf default custom&lt;br /&gt;
&lt;br /&gt;
Next go into the new custom directory and start editing your 503.phtml&lt;br /&gt;
&lt;br /&gt;
Once you are all finished, you will want go back out to the html/pub/errors directory &lt;br /&gt;
&lt;br /&gt;
First, you have set the xml file&lt;br /&gt;
 cp local.xml.sample local.xml&lt;br /&gt;
&lt;br /&gt;
Next you will need to edit the local.xml file to use your new custom directory files&lt;br /&gt;
&lt;br /&gt;
 vim local.xml&lt;br /&gt;
&lt;br /&gt;
Near the top of the file you will find:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;config&amp;gt;&lt;br /&gt;
     &amp;lt;skin&amp;gt;default&amp;lt;/skin&amp;gt;&lt;br /&gt;
     &amp;lt;report&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will need to change this to use the custom directory:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;config&amp;gt;&lt;br /&gt;
     &amp;lt;skin&amp;gt;custom&amp;lt;/skin&amp;gt;&lt;br /&gt;
     &amp;lt;report&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Overall you can change any of the files in this directory to have custom 503, 404 and more..&lt;br /&gt;
&lt;br /&gt;
Now lets enable maintenance mode and show off your new custom 503 page&lt;br /&gt;
&lt;br /&gt;
 bin/magento maintenance:enable&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Magento_2_Custom_503_Maintenance_page&amp;diff=1050</id>
		<title>Magento 2 Custom 503 Maintenance page</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Magento_2_Custom_503_Maintenance_page&amp;diff=1050"/>
				<updated>2021-12-10T17:49:39Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: Created page with &amp;quot;==Magento2 Custom 503 Maintenance Page ==  I would start off by talking about the 503 Maintenance Page and how you can customize it and let your customer know they can still c...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Magento2 Custom 503 Maintenance Page ==&lt;br /&gt;
&lt;br /&gt;
I would start off by talking about the 503 Maintenance Page and how you can customize it and let your customer know they can still contact you.&lt;br /&gt;
&lt;br /&gt;
===(HTTP) 503 response code definition:===&lt;br /&gt;
&lt;br /&gt;
The HyperText Transfer Protocol (HTTP) 503 Service Unavailable server error response code indicates that the server is not ready to handle the request.&lt;br /&gt;
Common causes are a server that is down for maintenance or that is overloaded.&lt;br /&gt;
&lt;br /&gt;
Below is the basic magento2 maintenance page&lt;br /&gt;
&lt;br /&gt;
[[File:503-magneto2-maintenace-page.png|800px|frameless|alt=create custom magento2 maintenance page]]&lt;br /&gt;
&lt;br /&gt;
===How to Create a Custom Maintenance Page ===&lt;br /&gt;
&lt;br /&gt;
You will want to navigate to your html/pub/errors directory, this is where all the changes will happen.&lt;br /&gt;
&lt;br /&gt;
You will be tempted to change the 503 in html/pub/errors/default directory, however this is the wrong way to go about creating a custom 503 page, unless at some random update you want to lose your page.&lt;br /&gt;
&lt;br /&gt;
First we will want to copy the html/pub/errors/default to a new directory &lt;br /&gt;
&lt;br /&gt;
example:&lt;br /&gt;
 cd html/pub/errors/&lt;br /&gt;
 cp -rf default custom&lt;br /&gt;
&lt;br /&gt;
Next go into the new custom directory and start editing your 503.phtml&lt;br /&gt;
&lt;br /&gt;
Once you are all finished, you will want go back out to the html/pub/errors directory &lt;br /&gt;
&lt;br /&gt;
First, you have set the xml file&lt;br /&gt;
 cp local.xml.sample local.xml&lt;br /&gt;
&lt;br /&gt;
Next you will need to edit the local.xml file to use your new custom directory files&lt;br /&gt;
&lt;br /&gt;
 vim local.xml&lt;br /&gt;
&lt;br /&gt;
Near the top of the file you will find:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;config&amp;gt;&lt;br /&gt;
     &amp;lt;skin&amp;gt;default&amp;lt;/skin&amp;gt;&lt;br /&gt;
     &amp;lt;report&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will need to change this to use the custom directory:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;config&amp;gt;&lt;br /&gt;
     &amp;lt;skin&amp;gt;custom&amp;lt;/skin&amp;gt;&lt;br /&gt;
     &amp;lt;report&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Overall you can change any of the files in this directory to have custom 503, 404 and more..&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=File:Screen_Shot_2021-12-10_at_12.44.40_PM.png&amp;diff=1049</id>
		<title>File:Screen Shot 2021-12-10 at 12.44.40 PM.png</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=File:Screen_Shot_2021-12-10_at_12.44.40_PM.png&amp;diff=1049"/>
				<updated>2021-12-10T17:45:08Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=File:503-magneto2-maintenace-page.png&amp;diff=1048</id>
		<title>File:503-magneto2-maintenace-page.png</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=File:503-magneto2-maintenace-page.png&amp;diff=1048"/>
				<updated>2021-12-10T17:14:30Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: Brian uploaded a new version of File:503-magneto2-maintenace-page.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Magneto2 Maintenance page 503&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=File:503-magneto2-maintenace-page.png&amp;diff=1047</id>
		<title>File:503-magneto2-maintenace-page.png</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=File:503-magneto2-maintenace-page.png&amp;diff=1047"/>
				<updated>2021-12-10T17:12:17Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: Magneto2 Maintenance page 503&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Magneto2 Maintenance page 503&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Main_Page&amp;diff=1046</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Main_Page&amp;diff=1046"/>
				<updated>2021-12-10T17:03:14Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Magento 2 Community Edition */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Welcome to Ramblings of a Centos Ninja==&lt;br /&gt;
&lt;br /&gt;
[[File:Centos-logo.png|100px|frameless|right|alt=Centos How-Tos]]&lt;br /&gt;
===Centos 7===&lt;br /&gt;
 --&amp;gt; [[Install Remi and EPEL yum repo Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Mysql Database Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Apache Web Server Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install PHP/PHP-FPM 5.4 Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install (LAMP) Linux Apache MySQL and PHP Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Redis on Centos 7 How To]]&lt;br /&gt;
 --&amp;gt; [[How To Configure SWAP on Centos 7]] &lt;br /&gt;
 --&amp;gt; [[How to find user memory usage in linux]]&lt;br /&gt;
 --&amp;gt; [[How to Configure letsencrypt with Apache on Centos 7 Server]]&lt;br /&gt;
 --&amp;gt; [[How to configure Gmail as a Mail Relay with Postfix]]&lt;br /&gt;
 --&amp;gt; [[How use GeoIP on the command line Centos7]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with .htpasswd/.htaccess]]&lt;br /&gt;
 --&amp;gt; [[Linux setfacl command]]&lt;br /&gt;
 --&amp;gt; [[How to disable SSH timeout]]  [[File:New.jpg|35px|frameless]]&lt;br /&gt;
 --&amp;gt; [[How to Install Squid Proxy Server on Cento7]]  [[File:New.jpg|35px|frameless]]&lt;br /&gt;
 --&amp;gt; [[How To Use Systemctl to Manage Systemd Services]]&lt;br /&gt;
&lt;br /&gt;
===Centos 6===&lt;br /&gt;
 --&amp;gt; [[Change Runlevel]]&lt;br /&gt;
 --&amp;gt; [[Check Current Runlevel]]&lt;br /&gt;
 --&amp;gt; [[Change Run Level at Bootup]]&lt;br /&gt;
 --&amp;gt; [[How to change the Hostname on Centos]]&lt;br /&gt;
 --&amp;gt; [[chkconfig settings]]&lt;br /&gt;
 --&amp;gt; [[How to extract a tar.gz file]]&lt;br /&gt;
 --&amp;gt; [[Install SIM - System Integrity Monitor]]&lt;br /&gt;
 --&amp;gt; [[Use Bash on a Non Bash User]]&lt;br /&gt;
 --&amp;gt; [[Quit Bash Shell without Saving Bash History]]&lt;br /&gt;
 --&amp;gt; [[Change the Timezone Centos]]&lt;br /&gt;
 --&amp;gt; [[Check the Version of Package]]&lt;br /&gt;
 --&amp;gt; [[How to install Sphinx on Centos Server]]&lt;br /&gt;
 --&amp;gt; [[How to install Redis on a Centos 6.4 Server]]&lt;br /&gt;
 --&amp;gt; [[Basic Redis commands - Cheat Sheet]]&lt;br /&gt;
 --&amp;gt; [[Adding a New Disk Drive with Centos]]&lt;br /&gt;
 --&amp;gt; [[Creating Backups using rsync with Examples]]&lt;br /&gt;
 --&amp;gt; [[Expand your bash_history to 2500]]&lt;br /&gt;
 --&amp;gt; [[Setup logrotate to rotate your logs]]&lt;br /&gt;
 --&amp;gt; [[GPG: Encrypt And Decrypt Files With A Password]]&lt;br /&gt;
 --&amp;gt; [[Install Remi and EPEL yum repo]] &lt;br /&gt;
 --&amp;gt; [[Install NewRelic on Centos6]]&lt;br /&gt;
 --&amp;gt; [[Setting Up An NFS Server And Client On CentOS 6]]&lt;br /&gt;
 --&amp;gt; [[Sar is not working how to restart]]&lt;br /&gt;
 --&amp;gt; [[Batch jpeg Image Optimization]]&lt;br /&gt;
 --&amp;gt; [[Howto Block or Open HTTP/HTTPs Ports IPTables]]&lt;br /&gt;
 --&amp;gt; [[Reset Root Password in CentOS]]&lt;br /&gt;
 --&amp;gt; [[Setup vsftp with SELinux]]&lt;br /&gt;
 --&amp;gt; [[Howto Setup NTP on CentOS]]&lt;br /&gt;
 --&amp;gt; [[Fix corrupted RPM database]]&lt;br /&gt;
 --&amp;gt; [[Crontab Usage]]&lt;br /&gt;
 --&amp;gt; [[Make an ISO from a Folder with mkisofs]]&lt;br /&gt;
 --&amp;gt; [[How to setup a VPN server with CentOS PPTPD]]&lt;br /&gt;
 --&amp;gt; [[APF Firewall -Advanced Policy Firewall - Basics]]&lt;br /&gt;
 --&amp;gt; [[How to Block Bittorrent Traffic with IPtables]]&lt;br /&gt;
 --&amp;gt; [[How to find user memory usage in linux]]&lt;br /&gt;
 --&amp;gt; [[How to install ccsrch on Centos 6]]&lt;br /&gt;
 --&amp;gt; [[How to install jpegoptim for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install optipng for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install gifsicle for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install jpegtran for CentOS]]&lt;br /&gt;
 --&amp;gt; [[IPTABLES quick command list]]&lt;br /&gt;
 --&amp;gt; [[Linux setfacl command]]&lt;br /&gt;
 --&amp;gt; [[Postfix Mail Queue Commands for Reviewing Emails]]&lt;br /&gt;
&lt;br /&gt;
[[File:Magentos.jpg|100px|frameless|right|alt=Magento How To's]]&lt;br /&gt;
&lt;br /&gt;
===Magento Community Edition/Magento Enterprise Edition===&lt;br /&gt;
 --&amp;gt; [[What is Magento?]]&lt;br /&gt;
 --&amp;gt; [[Clear Magento Cache]]&lt;br /&gt;
 --&amp;gt; [[Disable Magento Modules]]&lt;br /&gt;
 --&amp;gt; [[Turn on Manual Indexing]]&lt;br /&gt;
 --&amp;gt; [[How to Reset Magento Password]]&lt;br /&gt;
 --&amp;gt; [[How to Create Users in Mageento]]&lt;br /&gt;
 --&amp;gt; [[Enable Mysql Slow Query Logging]]&lt;br /&gt;
 --&amp;gt; [[Magento Connect is not Working]]&lt;br /&gt;
 --&amp;gt; [[Magento will NOT save my Product Updates]]&lt;br /&gt;
 --&amp;gt; [[Magento Internal Cron not Running]]&lt;br /&gt;
 --&amp;gt; [[Setting up the System Cron Job]]&lt;br /&gt;
 --&amp;gt; [[Magento Connect is not Working]]&lt;br /&gt;
 --&amp;gt; [[Changing the Minimum Search Query - MySQL Full Text Only]]&lt;br /&gt;
 --&amp;gt; [[Install Redis Caching for Magento]]&lt;br /&gt;
 --&amp;gt; [[Install Redis Full Page Caching for Magento Enterprise]]&lt;br /&gt;
 --&amp;gt; [[Setting up a Second Instance of Redis]]&lt;br /&gt;
 --&amp;gt; [[Magento Setup Return-Path Email]]&lt;br /&gt;
 --&amp;gt; [[Magento Server Compatibility Check]]&lt;br /&gt;
 --&amp;gt; [[Magento Database Optimization - Log Cleaning Script]]&lt;br /&gt;
 --&amp;gt; [[Magento Site Performance Optimization]] &lt;br /&gt;
 --&amp;gt; [[Magento Log Rotate with logrotate]]&lt;br /&gt;
 --&amp;gt; [[How to use CDN with Webfonts with Magento]] &lt;br /&gt;
 --&amp;gt; [[How to Disable Magento Newsletter Module]]&lt;br /&gt;
 --&amp;gt; [[Magento : Execute Custom Module Cron Manually]]&lt;br /&gt;
&lt;br /&gt;
[[File:Magentos.jpg|100px|frameless|right|alt=Magento2 How To's]]&lt;br /&gt;
&lt;br /&gt;
===Magento 2 Community Edition===&lt;br /&gt;
 --&amp;gt; [[Upgrade Magento2 via CLI]]&lt;br /&gt;
 --&amp;gt; [[Enable/Disable Magento2 Maintenance Page]]&lt;br /&gt;
 --&amp;gt; [[How to set Magento 2 permissions and avoid installation errors]]&lt;br /&gt;
 --&amp;gt; [[How to speed up Magento 2 out of the box]]&lt;br /&gt;
 --&amp;gt; [[How to Change Magento 2 mode]]&lt;br /&gt;
 --&amp;gt; [[How to Enable Disable Magento 2 caches]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 How to Add Alternative HTTP headers]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Purge Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Redis Page Cache and Default Cache Example]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 How to check Magento Version]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Reindex Error: Index is locked by another reindex process. Skipping]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Reindex via the CLI]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Custom 503 Maintenance page]]&lt;br /&gt;
&lt;br /&gt;
[[File:Memcahed.jpg|100px|frameless|right|alt=Memcache Caching]]&lt;br /&gt;
&lt;br /&gt;
===Memcached Server===&lt;br /&gt;
 --&amp;gt; [[Memcached Monitor Tool]]&lt;br /&gt;
 --&amp;gt; [[Setup Multi Instance Memcache]]&lt;br /&gt;
 --&amp;gt; [[Check if Memcached is Running]]&lt;br /&gt;
 --&amp;gt; [[Flush Your Memcached Instance]]&lt;br /&gt;
 --&amp;gt; [[Check Memory Usage of Memcached]]&lt;br /&gt;
 --&amp;gt; [[Memcache running out of Memory?]]&lt;br /&gt;
 --&amp;gt; [[Memcached List all Keys]]&lt;br /&gt;
&lt;br /&gt;
[[File:Apachelogo.gif|100px|right|alt=Apache How Tos]]&lt;br /&gt;
&lt;br /&gt;
===Apache/PHP===  &lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Deny access to my site with an .htaccess file]]&lt;br /&gt;
 --&amp;gt; [[Redirect site to www or non www]]&lt;br /&gt;
 --&amp;gt; [[Restrict POST request to Website]]&lt;br /&gt;
 --&amp;gt; [[Install Tomcat6 Server on Centos 6]]&lt;br /&gt;
 --&amp;gt; [[How to setup an SSL Certificate for Free]]&lt;br /&gt;
 --&amp;gt; [[Enable Apache to Create Core Dumps]]&lt;br /&gt;
 --&amp;gt; [[Enable php-fpm to create core dumps]]&lt;br /&gt;
 --&amp;gt; [[Debug PHP Enabling slow_log]] &lt;br /&gt;
 --&amp;gt; [[Block Bots by User Agent String]]&lt;br /&gt;
 --&amp;gt; [[Install mod_extact_forward - Show Real IP behind Proxy]]&lt;br /&gt;
 --&amp;gt; [[Install ionCube Loaders for Centos]]&lt;br /&gt;
 --&amp;gt; [[Install Zend Guard with PHP 5.3 on Centos]]&lt;br /&gt;
 --&amp;gt; [[Install Zend Guard 6.0 with PHP 5.4 on Centos]]&lt;br /&gt;
 --&amp;gt; [[Disable Mod_Security for a single vhost]]&lt;br /&gt;
 --&amp;gt; [[Hide PHP Version(X-Powered-By) in Headers]]&lt;br /&gt;
 --&amp;gt; [[Sessions are ending before MaxLifetime]]&lt;br /&gt;
 --&amp;gt; [[Apache mod_speling case insensitive urls issue]]&lt;br /&gt;
 --&amp;gt; [[Restrict access via htaccess via ipaddress]]&lt;br /&gt;
 --&amp;gt; [[Howto install mod_evasive with fail2ban]]&lt;br /&gt;
 --&amp;gt; [[Install the Latest version PHP on CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to bypass .htpasswd for certain IPs Apache]]&lt;br /&gt;
 --&amp;gt; [[Clear mod_pagespeed cache ]]&lt;br /&gt;
 --&amp;gt; [[Install GeoIP for Apache and PHP]]&lt;br /&gt;
 --&amp;gt; [[How to block or allow countries using GeoIP and .htaccess]]&lt;br /&gt;
 --&amp;gt; [[How to disable mod_security per vhost]]&lt;br /&gt;
 --&amp;gt; [[Force HTTPS for entire website via htaccess]]&lt;br /&gt;
 --&amp;gt; [[Restrict Access to wp-login.php and xmlrpc.php]]&lt;br /&gt;
 --&amp;gt; [[The X-Frame-Options response header]]&lt;br /&gt;
 --&amp;gt; [[Install Xdebug with php-fpm per pool]]&lt;br /&gt;
 --&amp;gt; [[How to Enable Gzip Compression]]&lt;br /&gt;
 --&amp;gt; [[Enable Apache rewrite logging]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with .htpasswd/.htaccess]]&lt;br /&gt;
 --&amp;gt; [[How to Disable PHP Execution in Certain Directories]]&lt;br /&gt;
 --&amp;gt; [[Directory listing in htaccess. Allow, Deny, Disable, Enable Directory Listing in .htaccess]]&lt;br /&gt;
 --&amp;gt; [[What is the Cache-Control Header]]&lt;br /&gt;
[[File:Haproxy.png|100px|frameless|right|alt=Mysql Percona]]&lt;br /&gt;
&lt;br /&gt;
===HAProxy===&lt;br /&gt;
 --&amp;gt; [[What is HAProxy]]&lt;br /&gt;
 --&amp;gt; [[HAProxy vs Nginx]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Load Balancing]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Cluster Setup Example]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Docker]]&lt;br /&gt;
 --&amp;gt; [[HAProxy with Varnish SSL Termination Example]]&lt;br /&gt;
 --&amp;gt; [[HAProxy http2]]&lt;br /&gt;
 --&amp;gt; [[HAProxy GUI]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Install on Centos7]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Cloud Load Balancer]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Block by User-Agent]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Restrict by IP Address]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Redirect domain to another domain]]&lt;br /&gt;
&lt;br /&gt;
[[File:Logo percona server new.png|100px|frameless|right|alt=Mysql Percona]]&lt;br /&gt;
&lt;br /&gt;
===Mysql/Percona===&lt;br /&gt;
 --&amp;gt; [[How to Optimize/Repair a Table]]&lt;br /&gt;
 --&amp;gt; [[MySQL - Check Which Query is Consuming Resources]]&lt;br /&gt;
 --&amp;gt; [[How to Set your MySQL Password]]&lt;br /&gt;
 --&amp;gt; [[Rest your MySQL Admin Password]]&lt;br /&gt;
 --&amp;gt; [[How to Convert Table to InnoDB]] &lt;br /&gt;
 --&amp;gt; [[How to install Percona Database Server]]&lt;br /&gt;
 --&amp;gt; [[How to Access the MySQL via Shell]]&lt;br /&gt;
 --&amp;gt; [[How to Add a User in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to Drop a User in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to Create and Delete a MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to Create a Table in MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to Create a MySQL Database Backup]]&lt;br /&gt;
 --&amp;gt; [[How to Import a MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to update the max_connections setting in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to view a list of MySQL users and their privileges]]&lt;br /&gt;
 --&amp;gt; [[Save MySQL query results into a text or CSV file]]&lt;br /&gt;
 --&amp;gt; [[How to optimize a MySQL database using phpMyAdmin]]&lt;br /&gt;
 --&amp;gt; [[How to solve MySQL max_user_connections error]]&lt;br /&gt;
&lt;br /&gt;
[[File:Varnish-cache-log.jpeg|100px|frameless|right|alt=Varnish How tos]]&lt;br /&gt;
&lt;br /&gt;
===Varnish Cache===&lt;br /&gt;
 --&amp;gt; [[Setup Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for Magento]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for Wordpress]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for MediaWiki]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish - Multiple Domains]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish - Multiple Ipaddress]]&lt;br /&gt;
 --&amp;gt; [[Script to Clear a Page from Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Varnish will not restart WHY?]]&lt;br /&gt;
 --&amp;gt; [[Warm up Varnish Script using Sitemap.xml]]&lt;br /&gt;
 --&amp;gt; [[Varnish How to redirect non-www URLs to www]]&lt;br /&gt;
 --&amp;gt; [[Install libvmod-header with Varnish]]&lt;br /&gt;
&lt;br /&gt;
[[File:Nginx-logo.png|100px|frameless|right|Install Nginx|alt=Nginx How tos]]&lt;br /&gt;
&lt;br /&gt;
===Nginx Web Server===&lt;br /&gt;
 --&amp;gt; [[Setup Nginx PHP FPM Percona Mysql]]&lt;br /&gt;
 --&amp;gt; [[Wordpress Ngnix Rewrite Rules]]&lt;br /&gt;
 --&amp;gt; [[Setup up Nginx Caching]]&lt;br /&gt;
 --&amp;gt; [[Nginx Magento vhost Configuration]]&lt;br /&gt;
 --&amp;gt; [[Basic HTTP Authentication with Nginx]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with Nginx]]&lt;br /&gt;
 --&amp;gt; [[403 Forbidden Error Nginx - How to Solve]]&lt;br /&gt;
&lt;br /&gt;
[[File:Sword-of-Omens-Sword1.png|100px|frameless|right|alt=Brian Nelson]]&lt;br /&gt;
&lt;br /&gt;
===Other===&lt;br /&gt;
 --&amp;gt; [[How to add trusted root certificates]]&lt;br /&gt;
 --&amp;gt; [[Find:_10_Useful_Examples_of_Find]]&lt;br /&gt;
 --&amp;gt; [[Send email from PHP to a log file instead of sendmail]]&lt;br /&gt;
 --&amp;gt; [[Debugging Wordpress]]&lt;br /&gt;
 --&amp;gt; [[How to install Linux via USB]]&lt;br /&gt;
 --&amp;gt; [[Network Subnet Mask Cheat Sheet]]&lt;br /&gt;
 --&amp;gt; [[Linux Keyboard Shortcuts]]&lt;br /&gt;
 --&amp;gt; [[Setup a SSH Tunnel for Secure Browsing]]&lt;br /&gt;
 --&amp;gt; [[Install OpenSSH on Windows]]&lt;br /&gt;
 --&amp;gt; [[Install Qmail on a Fresh Centos Server]]&lt;br /&gt;
 --&amp;gt; [[Setup Qmail to Listen on port 587 for SMTP]]&lt;br /&gt;
 --&amp;gt; [[Qmail catch-all account with vpopmail]]&lt;br /&gt;
 --&amp;gt; [[Setup Incoming Email Pipe to Script for Qmail]]&lt;br /&gt;
 --&amp;gt; [[Qmail Control Files]]&lt;br /&gt;
 --&amp;gt; [[Install qmqtool for Qmail on Centos Server]]&lt;br /&gt;
 --&amp;gt; [[Rest Email Password for vpopmail]]&lt;br /&gt;
 --&amp;gt; [[How to check Used IP on your Home Network]]&lt;br /&gt;
 --&amp;gt; [[How to find GMAIL IPs to allow at Firewall]]&lt;br /&gt;
 --&amp;gt; [[Useful TCPDUMP commands]]&lt;br /&gt;
 --&amp;gt; [[Remove Email Block Lists]]&lt;br /&gt;
 --&amp;gt; [[How to disable qmail vpopmail email user]] &lt;br /&gt;
 --&amp;gt; [[Git Cheat Sheet - Git made easy]]&lt;br /&gt;
 --&amp;gt; [[Top Chmod Command Examples for Beginners]]&lt;br /&gt;
 --&amp;gt; [[Benchmarking and Load Testing with Siege]]&lt;br /&gt;
 --&amp;gt; [[Benchmarking and Load Testing with Apache Bench(AB)]]&lt;br /&gt;
 --&amp;gt; [[How do I find out more about socket files in /proc/fd]]&lt;br /&gt;
 --&amp;gt; [[How to Disable the wp-cron.php in WordPress]]&lt;br /&gt;
 --&amp;gt; [[How to delete mail queue in Postfix]]&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Top Command Line Games - Linux CLI Games]] &amp;lt;sub&amp;gt;Cause Linux can be fun&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Centos Oneliners]]&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Bash Script to Check Memory with Email Alert when Low]]&lt;br /&gt;
 --&amp;gt; [[Bash Script to Check Site Code Status with Email Alert]]&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_to_solve_MySQL_max_user_connections_error&amp;diff=1045</id>
		<title>How to solve MySQL max user connections error</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_to_solve_MySQL_max_user_connections_error&amp;diff=1045"/>
				<updated>2021-01-16T05:14:01Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: Created page with &amp;quot;==How to solve MySQL max connections/user connections error==  If clients encounter Too many connections errors when attempting to connect to the mysqld server, all available...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How to solve MySQL max connections/user connections error==&lt;br /&gt;
&lt;br /&gt;
If clients encounter Too many connections errors when attempting to connect to the mysqld server, all available connections are in use by other clients.&lt;br /&gt;
&lt;br /&gt;
The permitted number of connections is controlled by the max_connections system variable. The default value is 151 to improve performance when MySQL is used with the Apache Web server. To support more connections, set max_connections to a larger value&lt;br /&gt;
&lt;br /&gt;
===Checking the max_connections===&lt;br /&gt;
&lt;br /&gt;
You can run the following command to check the current value of max_connections&lt;br /&gt;
&lt;br /&gt;
 MariaDB [(none)]&amp;gt; show variables like 'max_connections';&lt;br /&gt;
 +-----------------+-------+&lt;br /&gt;
 | Variable_name   | Value |&lt;br /&gt;
 +-----------------+-------+&lt;br /&gt;
 | max_connections | 151   |&lt;br /&gt;
 +-----------------+-------+&lt;br /&gt;
 1 row in set (0.00 sec)&lt;br /&gt;
&lt;br /&gt;
This shows the current value, you can check the current number of connections by running:&lt;br /&gt;
&lt;br /&gt;
 MariaDB [(none)]&amp;gt; show status where variable_name = 'threads_connected';&lt;br /&gt;
 +-------------------+-------+&lt;br /&gt;
 | Variable_name     | Value |&lt;br /&gt;
 +-------------------+-------+&lt;br /&gt;
 | Threads_connected | 146   |&lt;br /&gt;
 +-------------------+-------+&lt;br /&gt;
 1 row in set (0.02 sec)&lt;br /&gt;
&lt;br /&gt;
===You can increase this value in two ways:===&lt;br /&gt;
&lt;br /&gt;
====Without restarting mysql (temp change) ====&lt;br /&gt;
&lt;br /&gt;
  MariaDB [(none)]&amp;gt; SET GLOBAL max_connections = 300;&lt;br /&gt;
  Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;
&lt;br /&gt;
'''Checking the new value:&lt;br /&gt;
'''&lt;br /&gt;
 MariaDB [(none)]&amp;gt; show variables like 'max_connections';&lt;br /&gt;
 +-----------------+-------+&lt;br /&gt;
 | Variable_name   | Value |&lt;br /&gt;
 +-----------------+-------+&lt;br /&gt;
 | max_connections | 300   |&lt;br /&gt;
 +-----------------+-------+&lt;br /&gt;
 1 row in set (0.00 sec)&lt;br /&gt;
&lt;br /&gt;
====Restarting Mysql via my.cnf (permanent change)====&lt;br /&gt;
&lt;br /&gt;
Or set this parameter in my.cnf that located at /etc/my.cnf&lt;br /&gt;
&lt;br /&gt;
 vi /etc/my.cnf&lt;br /&gt;
 max_connections = 300&lt;br /&gt;
&lt;br /&gt;
Then restart mysql, this is a permanent change to the max_connections at this point&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Main_Page&amp;diff=1044</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Main_Page&amp;diff=1044"/>
				<updated>2021-01-16T04:49:44Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Mysql/Percona */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Welcome to Ramblings of a Centos Ninja==&lt;br /&gt;
&lt;br /&gt;
[[File:Centos-logo.png|100px|frameless|right|alt=Centos How-Tos]]&lt;br /&gt;
===Centos 7===&lt;br /&gt;
 --&amp;gt; [[Install Remi and EPEL yum repo Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Mysql Database Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Apache Web Server Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install PHP/PHP-FPM 5.4 Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install (LAMP) Linux Apache MySQL and PHP Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Redis on Centos 7 How To]]&lt;br /&gt;
 --&amp;gt; [[How To Configure SWAP on Centos 7]] &lt;br /&gt;
 --&amp;gt; [[How to find user memory usage in linux]]&lt;br /&gt;
 --&amp;gt; [[How to Configure letsencrypt with Apache on Centos 7 Server]]&lt;br /&gt;
 --&amp;gt; [[How to configure Gmail as a Mail Relay with Postfix]]&lt;br /&gt;
 --&amp;gt; [[How use GeoIP on the command line Centos7]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with .htpasswd/.htaccess]]&lt;br /&gt;
 --&amp;gt; [[Linux setfacl command]]&lt;br /&gt;
 --&amp;gt; [[How to disable SSH timeout]]  [[File:New.jpg|35px|frameless]]&lt;br /&gt;
 --&amp;gt; [[How to Install Squid Proxy Server on Cento7]]  [[File:New.jpg|35px|frameless]]&lt;br /&gt;
 --&amp;gt; [[How To Use Systemctl to Manage Systemd Services]]&lt;br /&gt;
&lt;br /&gt;
===Centos 6===&lt;br /&gt;
 --&amp;gt; [[Change Runlevel]]&lt;br /&gt;
 --&amp;gt; [[Check Current Runlevel]]&lt;br /&gt;
 --&amp;gt; [[Change Run Level at Bootup]]&lt;br /&gt;
 --&amp;gt; [[How to change the Hostname on Centos]]&lt;br /&gt;
 --&amp;gt; [[chkconfig settings]]&lt;br /&gt;
 --&amp;gt; [[How to extract a tar.gz file]]&lt;br /&gt;
 --&amp;gt; [[Install SIM - System Integrity Monitor]]&lt;br /&gt;
 --&amp;gt; [[Use Bash on a Non Bash User]]&lt;br /&gt;
 --&amp;gt; [[Quit Bash Shell without Saving Bash History]]&lt;br /&gt;
 --&amp;gt; [[Change the Timezone Centos]]&lt;br /&gt;
 --&amp;gt; [[Check the Version of Package]]&lt;br /&gt;
 --&amp;gt; [[How to install Sphinx on Centos Server]]&lt;br /&gt;
 --&amp;gt; [[How to install Redis on a Centos 6.4 Server]]&lt;br /&gt;
 --&amp;gt; [[Basic Redis commands - Cheat Sheet]]&lt;br /&gt;
 --&amp;gt; [[Adding a New Disk Drive with Centos]]&lt;br /&gt;
 --&amp;gt; [[Creating Backups using rsync with Examples]]&lt;br /&gt;
 --&amp;gt; [[Expand your bash_history to 2500]]&lt;br /&gt;
 --&amp;gt; [[Setup logrotate to rotate your logs]]&lt;br /&gt;
 --&amp;gt; [[GPG: Encrypt And Decrypt Files With A Password]]&lt;br /&gt;
 --&amp;gt; [[Install Remi and EPEL yum repo]] &lt;br /&gt;
 --&amp;gt; [[Install NewRelic on Centos6]]&lt;br /&gt;
 --&amp;gt; [[Setting Up An NFS Server And Client On CentOS 6]]&lt;br /&gt;
 --&amp;gt; [[Sar is not working how to restart]]&lt;br /&gt;
 --&amp;gt; [[Batch jpeg Image Optimization]]&lt;br /&gt;
 --&amp;gt; [[Howto Block or Open HTTP/HTTPs Ports IPTables]]&lt;br /&gt;
 --&amp;gt; [[Reset Root Password in CentOS]]&lt;br /&gt;
 --&amp;gt; [[Setup vsftp with SELinux]]&lt;br /&gt;
 --&amp;gt; [[Howto Setup NTP on CentOS]]&lt;br /&gt;
 --&amp;gt; [[Fix corrupted RPM database]]&lt;br /&gt;
 --&amp;gt; [[Crontab Usage]]&lt;br /&gt;
 --&amp;gt; [[Make an ISO from a Folder with mkisofs]]&lt;br /&gt;
 --&amp;gt; [[How to setup a VPN server with CentOS PPTPD]]&lt;br /&gt;
 --&amp;gt; [[APF Firewall -Advanced Policy Firewall - Basics]]&lt;br /&gt;
 --&amp;gt; [[How to Block Bittorrent Traffic with IPtables]]&lt;br /&gt;
 --&amp;gt; [[How to find user memory usage in linux]]&lt;br /&gt;
 --&amp;gt; [[How to install ccsrch on Centos 6]]&lt;br /&gt;
 --&amp;gt; [[How to install jpegoptim for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install optipng for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install gifsicle for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install jpegtran for CentOS]]&lt;br /&gt;
 --&amp;gt; [[IPTABLES quick command list]]&lt;br /&gt;
 --&amp;gt; [[Linux setfacl command]]&lt;br /&gt;
 --&amp;gt; [[Postfix Mail Queue Commands for Reviewing Emails]]&lt;br /&gt;
&lt;br /&gt;
[[File:Magentos.jpg|100px|frameless|right|alt=Magento How To's]]&lt;br /&gt;
&lt;br /&gt;
===Magento Community Edition/Magento Enterprise Edition===&lt;br /&gt;
 --&amp;gt; [[What is Magento?]]&lt;br /&gt;
 --&amp;gt; [[Clear Magento Cache]]&lt;br /&gt;
 --&amp;gt; [[Disable Magento Modules]]&lt;br /&gt;
 --&amp;gt; [[Turn on Manual Indexing]]&lt;br /&gt;
 --&amp;gt; [[How to Reset Magento Password]]&lt;br /&gt;
 --&amp;gt; [[How to Create Users in Mageento]]&lt;br /&gt;
 --&amp;gt; [[Enable Mysql Slow Query Logging]]&lt;br /&gt;
 --&amp;gt; [[Magento Connect is not Working]]&lt;br /&gt;
 --&amp;gt; [[Magento will NOT save my Product Updates]]&lt;br /&gt;
 --&amp;gt; [[Magento Internal Cron not Running]]&lt;br /&gt;
 --&amp;gt; [[Setting up the System Cron Job]]&lt;br /&gt;
 --&amp;gt; [[Magento Connect is not Working]]&lt;br /&gt;
 --&amp;gt; [[Changing the Minimum Search Query - MySQL Full Text Only]]&lt;br /&gt;
 --&amp;gt; [[Install Redis Caching for Magento]]&lt;br /&gt;
 --&amp;gt; [[Install Redis Full Page Caching for Magento Enterprise]]&lt;br /&gt;
 --&amp;gt; [[Setting up a Second Instance of Redis]]&lt;br /&gt;
 --&amp;gt; [[Magento Setup Return-Path Email]]&lt;br /&gt;
 --&amp;gt; [[Magento Server Compatibility Check]]&lt;br /&gt;
 --&amp;gt; [[Magento Database Optimization - Log Cleaning Script]]&lt;br /&gt;
 --&amp;gt; [[Magento Site Performance Optimization]] &lt;br /&gt;
 --&amp;gt; [[Magento Log Rotate with logrotate]]&lt;br /&gt;
 --&amp;gt; [[How to use CDN with Webfonts with Magento]] &lt;br /&gt;
 --&amp;gt; [[How to Disable Magento Newsletter Module]]&lt;br /&gt;
 --&amp;gt; [[Magento : Execute Custom Module Cron Manually]]&lt;br /&gt;
&lt;br /&gt;
[[File:Magentos.jpg|100px|frameless|right|alt=Magento2 How To's]]&lt;br /&gt;
&lt;br /&gt;
===Magento 2 Community Edition===&lt;br /&gt;
 --&amp;gt; [[Upgrade Magento2 via CLI]]&lt;br /&gt;
 --&amp;gt; [[Enable/Disable Magento2 Maintenance Page]]&lt;br /&gt;
 --&amp;gt; [[How to set Magento 2 permissions and avoid installation errors]]&lt;br /&gt;
 --&amp;gt; [[How to speed up Magento 2 out of the box]]&lt;br /&gt;
 --&amp;gt; [[How to Change Magento 2 mode]]&lt;br /&gt;
 --&amp;gt; [[How to Enable Disable Magento 2 caches]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 How to Add Alternative HTTP headers]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Purge Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Redis Page Cache and Default Cache Example]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 How to check Magento Version]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Reindex Error: Index is locked by another reindex process. Skipping]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Reindex via the CLI]]&lt;br /&gt;
&lt;br /&gt;
[[File:Memcahed.jpg|100px|frameless|right|alt=Mecache Caching]]&lt;br /&gt;
&lt;br /&gt;
===Memcached Server===&lt;br /&gt;
 --&amp;gt; [[Memcached Monitor Tool]]&lt;br /&gt;
 --&amp;gt; [[Setup Multi Instance Memcache]]&lt;br /&gt;
 --&amp;gt; [[Check if Memcached is Running]]&lt;br /&gt;
 --&amp;gt; [[Flush Your Memcached Instance]]&lt;br /&gt;
 --&amp;gt; [[Check Memory Usage of Memcached]]&lt;br /&gt;
 --&amp;gt; [[Memcache running out of Memory?]]&lt;br /&gt;
 --&amp;gt; [[Memcached List all Keys]]&lt;br /&gt;
&lt;br /&gt;
[[File:Apachelogo.gif|100px|right|alt=Apache How Tos]]&lt;br /&gt;
&lt;br /&gt;
===Apache/PHP===  &lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Deny access to my site with an .htaccess file]]&lt;br /&gt;
 --&amp;gt; [[Redirect site to www or non www]]&lt;br /&gt;
 --&amp;gt; [[Restrict POST request to Website]]&lt;br /&gt;
 --&amp;gt; [[Install Tomcat6 Server on Centos 6]]&lt;br /&gt;
 --&amp;gt; [[How to setup an SSL Certificate for Free]]&lt;br /&gt;
 --&amp;gt; [[Enable Apache to Create Core Dumps]]&lt;br /&gt;
 --&amp;gt; [[Enable php-fpm to create core dumps]]&lt;br /&gt;
 --&amp;gt; [[Debug PHP Enabling slow_log]] &lt;br /&gt;
 --&amp;gt; [[Block Bots by User Agent String]]&lt;br /&gt;
 --&amp;gt; [[Install mod_extact_forward - Show Real IP behind Proxy]]&lt;br /&gt;
 --&amp;gt; [[Install ionCube Loaders for Centos]]&lt;br /&gt;
 --&amp;gt; [[Install Zend Guard with PHP 5.3 on Centos]]&lt;br /&gt;
 --&amp;gt; [[Install Zend Guard 6.0 with PHP 5.4 on Centos]]&lt;br /&gt;
 --&amp;gt; [[Disable Mod_Security for a single vhost]]&lt;br /&gt;
 --&amp;gt; [[Hide PHP Version(X-Powered-By) in Headers]]&lt;br /&gt;
 --&amp;gt; [[Sessions are ending before MaxLifetime]]&lt;br /&gt;
 --&amp;gt; [[Apache mod_speling case insensitive urls issue]]&lt;br /&gt;
 --&amp;gt; [[Restrict access via htaccess via ipaddress]]&lt;br /&gt;
 --&amp;gt; [[Howto install mod_evasive with fail2ban]]&lt;br /&gt;
 --&amp;gt; [[Install the Latest version PHP on CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to bypass .htpasswd for certain IPs Apache]]&lt;br /&gt;
 --&amp;gt; [[Clear mod_pagespeed cache ]]&lt;br /&gt;
 --&amp;gt; [[Install GeoIP for Apache and PHP]]&lt;br /&gt;
 --&amp;gt; [[How to block or allow countries using GeoIP and .htaccess]]&lt;br /&gt;
 --&amp;gt; [[How to disable mod_security per vhost]]&lt;br /&gt;
 --&amp;gt; [[Force HTTPS for entire website via htaccess]]&lt;br /&gt;
 --&amp;gt; [[Restrict Access to wp-login.php and xmlrpc.php]]&lt;br /&gt;
 --&amp;gt; [[The X-Frame-Options response header]]&lt;br /&gt;
 --&amp;gt; [[Install Xdebug with php-fpm per pool]]&lt;br /&gt;
 --&amp;gt; [[How to Enable Gzip Compression]]&lt;br /&gt;
 --&amp;gt; [[Enable Apache rewrite logging]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with .htpasswd/.htaccess]]&lt;br /&gt;
 --&amp;gt; [[How to Disable PHP Execution in Certain Directories]]&lt;br /&gt;
 --&amp;gt; [[Directory listing in htaccess. Allow, Deny, Disable, Enable Directory Listing in .htaccess]]&lt;br /&gt;
 --&amp;gt; [[What is the Cache-Control Header]]&lt;br /&gt;
[[File:Haproxy.png|100px|frameless|right|alt=Mysql Percona]]&lt;br /&gt;
&lt;br /&gt;
===HAProxy===&lt;br /&gt;
 --&amp;gt; [[What is HAProxy]]&lt;br /&gt;
 --&amp;gt; [[HAProxy vs Nginx]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Load Balancing]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Cluster Setup Example]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Docker]]&lt;br /&gt;
 --&amp;gt; [[HAProxy with Varnish SSL Termination Example]]&lt;br /&gt;
 --&amp;gt; [[HAProxy http2]]&lt;br /&gt;
 --&amp;gt; [[HAProxy GUI]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Install on Centos7]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Cloud Load Balancer]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Block by User-Agent]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Restrict by IP Address]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Redirect domain to another domain]]&lt;br /&gt;
&lt;br /&gt;
[[File:Logo percona server new.png|100px|frameless|right|alt=Mysql Percona]]&lt;br /&gt;
&lt;br /&gt;
===Mysql/Percona===&lt;br /&gt;
 --&amp;gt; [[How to Optimize/Repair a Table]]&lt;br /&gt;
 --&amp;gt; [[MySQL - Check Which Query is Consuming Resources]]&lt;br /&gt;
 --&amp;gt; [[How to Set your MySQL Password]]&lt;br /&gt;
 --&amp;gt; [[Rest your MySQL Admin Password]]&lt;br /&gt;
 --&amp;gt; [[How to Convert Table to InnoDB]] &lt;br /&gt;
 --&amp;gt; [[How to install Percona Database Server]]&lt;br /&gt;
 --&amp;gt; [[How to Access the MySQL via Shell]]&lt;br /&gt;
 --&amp;gt; [[How to Add a User in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to Drop a User in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to Create and Delete a MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to Create a Table in MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to Create a MySQL Database Backup]]&lt;br /&gt;
 --&amp;gt; [[How to Import a MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to update the max_connections setting in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to view a list of MySQL users and their privileges]]&lt;br /&gt;
 --&amp;gt; [[Save MySQL query results into a text or CSV file]]&lt;br /&gt;
 --&amp;gt; [[How to optimize a MySQL database using phpMyAdmin]]&lt;br /&gt;
 --&amp;gt; [[How to solve MySQL max_user_connections error]]&lt;br /&gt;
&lt;br /&gt;
[[File:Varnish-cache-log.jpeg|100px|frameless|right|alt=Varnish How tos]]&lt;br /&gt;
&lt;br /&gt;
===Varnish Cache===&lt;br /&gt;
 --&amp;gt; [[Setup Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for Magento]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for Wordpress]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for MediaWiki]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish - Multiple Domains]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish - Multiple Ipaddress]]&lt;br /&gt;
 --&amp;gt; [[Script to Clear a Page from Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Varnish will not restart WHY?]]&lt;br /&gt;
 --&amp;gt; [[Warm up Varnish Script using Sitemap.xml]]&lt;br /&gt;
 --&amp;gt; [[Varnish How to redirect non-www URLs to www]]&lt;br /&gt;
 --&amp;gt; [[Install libvmod-header with Varnish]]&lt;br /&gt;
&lt;br /&gt;
[[File:Nginx-logo.png|100px|frameless|right|Install Nginx|alt=Nginx How tos]]&lt;br /&gt;
&lt;br /&gt;
===Nginx Web Server===&lt;br /&gt;
 --&amp;gt; [[Setup Nginx PHP FPM Percona Mysql]]&lt;br /&gt;
 --&amp;gt; [[Wordpress Ngnix Rewrite Rules]]&lt;br /&gt;
 --&amp;gt; [[Setup up Nginx Caching]]&lt;br /&gt;
 --&amp;gt; [[Nginx Magento vhost Configuration]]&lt;br /&gt;
 --&amp;gt; [[Basic HTTP Authentication with Nginx]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with Nginx]]&lt;br /&gt;
 --&amp;gt; [[403 Forbidden Error Nginx - How to Solve]]&lt;br /&gt;
&lt;br /&gt;
[[File:Sword-of-Omens-Sword1.png|100px|frameless|right|alt=Brian Nelson]]&lt;br /&gt;
&lt;br /&gt;
===Other===&lt;br /&gt;
 --&amp;gt; [[How to add trusted root certificates]]&lt;br /&gt;
 --&amp;gt; [[Find:_10_Useful_Examples_of_Find]]&lt;br /&gt;
 --&amp;gt; [[Send email from PHP to a log file instead of sendmail]]&lt;br /&gt;
 --&amp;gt; [[Debugging Wordpress]]&lt;br /&gt;
 --&amp;gt; [[How to install Linux via USB]]&lt;br /&gt;
 --&amp;gt; [[Network Subnet Mask Cheat Sheet]]&lt;br /&gt;
 --&amp;gt; [[Linux Keyboard Shortcuts]]&lt;br /&gt;
 --&amp;gt; [[Setup a SSH Tunnel for Secure Browsing]]&lt;br /&gt;
 --&amp;gt; [[Install OpenSSH on Windows]]&lt;br /&gt;
 --&amp;gt; [[Install Qmail on a Fresh Centos Server]]&lt;br /&gt;
 --&amp;gt; [[Setup Qmail to Listen on port 587 for SMTP]]&lt;br /&gt;
 --&amp;gt; [[Qmail catch-all account with vpopmail]]&lt;br /&gt;
 --&amp;gt; [[Setup Incoming Email Pipe to Script for Qmail]]&lt;br /&gt;
 --&amp;gt; [[Qmail Control Files]]&lt;br /&gt;
 --&amp;gt; [[Install qmqtool for Qmail on Centos Server]]&lt;br /&gt;
 --&amp;gt; [[Rest Email Password for vpopmail]]&lt;br /&gt;
 --&amp;gt; [[How to check Used IP on your Home Network]]&lt;br /&gt;
 --&amp;gt; [[How to find GMAIL IPs to allow at Firewall]]&lt;br /&gt;
 --&amp;gt; [[Useful TCPDUMP commands]]&lt;br /&gt;
 --&amp;gt; [[Remove Email Block Lists]]&lt;br /&gt;
 --&amp;gt; [[How to disable qmail vpopmail email user]] &lt;br /&gt;
 --&amp;gt; [[Git Cheat Sheet - Git made easy]]&lt;br /&gt;
 --&amp;gt; [[Top Chmod Command Examples for Beginners]]&lt;br /&gt;
 --&amp;gt; [[Benchmarking and Load Testing with Siege]]&lt;br /&gt;
 --&amp;gt; [[Benchmarking and Load Testing with Apache Bench(AB)]]&lt;br /&gt;
 --&amp;gt; [[How do I find out more about socket files in /proc/fd]]&lt;br /&gt;
 --&amp;gt; [[How to Disable the wp-cron.php in WordPress]]&lt;br /&gt;
 --&amp;gt; [[How to delete mail queue in Postfix]]&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Top Command Line Games - Linux CLI Games]] &amp;lt;sub&amp;gt;Cause Linux can be fun&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Centos Oneliners]]&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Bash Script to Check Memory with Email Alert when Low]]&lt;br /&gt;
 --&amp;gt; [[Bash Script to Check Site Code Status with Email Alert]]&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Restrict_Access_to_wp-login.php_and_xmlrpc.php&amp;diff=1043</id>
		<title>Restrict Access to wp-login.php and xmlrpc.php</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Restrict_Access_to_wp-login.php_and_xmlrpc.php&amp;diff=1043"/>
				<updated>2020-12-09T01:49:29Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Multiple IP address access: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Restrict Access to wp-login.php and xmlrpc.php==&lt;br /&gt;
&lt;br /&gt;
Wordpress Security alert!! Stop getting hacked by restricting access to wp-login.php and xmlrpc.php.&lt;br /&gt;
&lt;br /&gt;
Access your .htaccess file in your html directory&lt;br /&gt;
&lt;br /&gt;
 vim /var/www/html/.htaccess&lt;br /&gt;
&lt;br /&gt;
===Now we have options:===&lt;br /&gt;
&lt;br /&gt;
You can get your ip address by visiting: https://briansnelson.com/ip/&lt;br /&gt;
&lt;br /&gt;
====Single IP address access:====&lt;br /&gt;
&lt;br /&gt;
Add the following, don't forget to replace the ip address with your own&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;IfModule mod_rewrite.c&amp;gt;&lt;br /&gt;
 RewriteEngine on&lt;br /&gt;
 RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]&lt;br /&gt;
 RewriteCond %{REQUEST_URI} ^(.*)?xmlrpc\.php(.*)$ [OR]&lt;br /&gt;
 RewriteCond %{REQUEST_URI} ^(.*)?wp-admin(.*)$&lt;br /&gt;
 RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123$&lt;br /&gt;
 RewriteRule ^(.*)$ - [R=403,L]&lt;br /&gt;
 &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Multiple IP address access:====&lt;br /&gt;
&lt;br /&gt;
Add the following, don't forget to replace the ip address with your own&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;IfModule mod_rewrite.c&amp;gt;&lt;br /&gt;
 RewriteEngine on&lt;br /&gt;
 RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]&lt;br /&gt;
 RewriteCond %{REQUEST_URI} ^(.*)?xmlrpc\.php(.*)$ [OR]&lt;br /&gt;
 RewriteCond %{REQUEST_URI} ^(.*)?wp-admin(.*)$&lt;br /&gt;
 RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123$&lt;br /&gt;
 RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.124$&lt;br /&gt;
 RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.125$&lt;br /&gt;
 RewriteRule ^(.*)$ - [R=403,L]&lt;br /&gt;
 &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Side note, I would also allow your server's ip address, as some wp-cron.php scripts require access to xmlrpc.php&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Restrict_Access_to_wp-login.php_and_xmlrpc.php&amp;diff=1042</id>
		<title>Restrict Access to wp-login.php and xmlrpc.php</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Restrict_Access_to_wp-login.php_and_xmlrpc.php&amp;diff=1042"/>
				<updated>2020-12-09T01:49:19Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Single IP address access: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Restrict Access to wp-login.php and xmlrpc.php==&lt;br /&gt;
&lt;br /&gt;
Wordpress Security alert!! Stop getting hacked by restricting access to wp-login.php and xmlrpc.php.&lt;br /&gt;
&lt;br /&gt;
Access your .htaccess file in your html directory&lt;br /&gt;
&lt;br /&gt;
 vim /var/www/html/.htaccess&lt;br /&gt;
&lt;br /&gt;
===Now we have options:===&lt;br /&gt;
&lt;br /&gt;
You can get your ip address by visiting: https://briansnelson.com/ip/&lt;br /&gt;
&lt;br /&gt;
====Single IP address access:====&lt;br /&gt;
&lt;br /&gt;
Add the following, don't forget to replace the ip address with your own&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;IfModule mod_rewrite.c&amp;gt;&lt;br /&gt;
 RewriteEngine on&lt;br /&gt;
 RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]&lt;br /&gt;
 RewriteCond %{REQUEST_URI} ^(.*)?xmlrpc\.php(.*)$ [OR]&lt;br /&gt;
 RewriteCond %{REQUEST_URI} ^(.*)?wp-admin(.*)$&lt;br /&gt;
 RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123$&lt;br /&gt;
 RewriteRule ^(.*)$ - [R=403,L]&lt;br /&gt;
 &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Multiple IP address access:====&lt;br /&gt;
&lt;br /&gt;
Add the following, don't forget to replace the ip address with your own&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;IfModule mod_rewrite.c&amp;gt;&lt;br /&gt;
 RewriteEngine on&lt;br /&gt;
 RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]&lt;br /&gt;
 RewriteCond %{REQUEST_URI} ^(.*)?xmlrpc\.php(.*)$ [OR]&lt;br /&gt;
 RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$&lt;br /&gt;
 RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123$&lt;br /&gt;
 RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.124$&lt;br /&gt;
 RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.125$&lt;br /&gt;
 RewriteRule ^(.*)$ - [R=403,L]&lt;br /&gt;
 &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Side note, I would also allow your server's ip address, as some wp-cron.php scripts require access to xmlrpc.php&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=HAProxy_Redirect_domain_to_another_domain&amp;diff=1041</id>
		<title>HAProxy Redirect domain to another domain</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=HAProxy_Redirect_domain_to_another_domain&amp;diff=1041"/>
				<updated>2020-11-25T03:57:21Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Next restart or start the server to start blocking by ip address */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==HAProxy Redirect domain to another domain==&lt;br /&gt;
&lt;br /&gt;
From time to time, you may find yourself wanting to redirect a domain to a folder on another domain&lt;br /&gt;
&lt;br /&gt;
===You will want to edit the haproxy.cfg file===&lt;br /&gt;
&lt;br /&gt;
 vim /etc/haproxy/haproxy.cfg&lt;br /&gt;
&lt;br /&gt;
===Then add something like the following to the frontend in haproxy.===&lt;br /&gt;
&lt;br /&gt;
 acl demoredirect hdr_dom(host) -i demofolder.com&lt;br /&gt;
 acl demoredirect hdr_dom(host) -i www.demofolder.com&lt;br /&gt;
 http-request redirect location https://briansnelson.com/demofolder/ code 301 if demoredirect&lt;br /&gt;
&lt;br /&gt;
===Save and check your configuration===&lt;br /&gt;
&lt;br /&gt;
 service haproxy check&lt;br /&gt;
&lt;br /&gt;
You are looking for&lt;br /&gt;
&lt;br /&gt;
 Configuration file is valid&lt;br /&gt;
&lt;br /&gt;
===Next restart or start the server to start redirecting from one domain to another===&lt;br /&gt;
&lt;br /&gt;
 service haproxy restart/start&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Block_Bots_by_User_Agent_String&amp;diff=1040</id>
		<title>Block Bots by User Agent String</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Block_Bots_by_User_Agent_String&amp;diff=1040"/>
				<updated>2020-10-27T01:26:19Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Via BrowserMatch */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How to block a bot by User Agent Sting==&lt;br /&gt;
&lt;br /&gt;
Do you have those bandwidth hogging bots as much as Phil and I do?  Did you know you can block them in your .htaccess file?  &lt;br /&gt;
&lt;br /&gt;
===Block the BOT===&lt;br /&gt;
Let block the most annoying bot on the internet - Baidu spider&lt;br /&gt;
&lt;br /&gt;
 vim .htaccess&lt;br /&gt;
&lt;br /&gt;
Now Add the following to block bad bots&lt;br /&gt;
&lt;br /&gt;
===Via mod_rewrite===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Directory /&amp;gt;&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{HTTP_USER_AGENT} Baiduspider [NC,OR] &lt;br /&gt;
 RewriteCond %{HTTP_USER_AGENT} Baidu [NC] &lt;br /&gt;
 RewriteRule ^.*$ - [F,L]&lt;br /&gt;
 &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Via BrowserMatch===&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;Directory /&amp;gt;&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;Baiduspider&amp;quot; bots &lt;br /&gt;
 BrowserMatchNoCase &amp;quot;HTTrack&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;Yandex&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;AhrefsBot&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;Pinterestbot&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;YandexImages&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;YandexBot&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;Facebot&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;DotBot&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;PetalBot&amp;quot; bots&lt;br /&gt;
 &lt;br /&gt;
 Order Allow,Deny&lt;br /&gt;
 Allow from ALL&lt;br /&gt;
 Deny from env=bots&lt;br /&gt;
 &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That's it save the file, and you are now blocking the Baidu spider&lt;br /&gt;
&lt;br /&gt;
===Testing to see if its blocked===&lt;br /&gt;
&lt;br /&gt;
One way to do this is to use curl&lt;br /&gt;
&lt;br /&gt;
 curl -I http://www.briansnelson.com -A &amp;quot;Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Now you will get a 403 Forbidden &lt;br /&gt;
&lt;br /&gt;
 HTTP/1.1 403 Forbidden&lt;br /&gt;
 Date: Mon, 06 Jan 2014 19:18:11 GMT&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Block_Bots_by_User_Agent_String&amp;diff=1039</id>
		<title>Block Bots by User Agent String</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Block_Bots_by_User_Agent_String&amp;diff=1039"/>
				<updated>2020-10-27T01:24:10Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Via BrowserMatch */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How to block a bot by User Agent Sting==&lt;br /&gt;
&lt;br /&gt;
Do you have those bandwidth hogging bots as much as Phil and I do?  Did you know you can block them in your .htaccess file?  &lt;br /&gt;
&lt;br /&gt;
===Block the BOT===&lt;br /&gt;
Let block the most annoying bot on the internet - Baidu spider&lt;br /&gt;
&lt;br /&gt;
 vim .htaccess&lt;br /&gt;
&lt;br /&gt;
Now Add the following to block bad bots&lt;br /&gt;
&lt;br /&gt;
===Via mod_rewrite===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Directory /&amp;gt;&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{HTTP_USER_AGENT} Baiduspider [NC,OR] &lt;br /&gt;
 RewriteCond %{HTTP_USER_AGENT} Baidu [NC] &lt;br /&gt;
 RewriteRule ^.*$ - [F,L]&lt;br /&gt;
 &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Via BrowserMatch===&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;Directory /&amp;gt;&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;Baiduspider&amp;quot; bots &lt;br /&gt;
 BrowserMatchNoCase &amp;quot;HTTrack&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;Yandex&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;AhrefsBot&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;Pinterestbot&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;YandexImages&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;YandexBot&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;Facebot&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;DotBot&amp;quot; bots&lt;br /&gt;
 &lt;br /&gt;
 Order Allow,Deny&lt;br /&gt;
 Allow from ALL&lt;br /&gt;
 Deny from env=bots&lt;br /&gt;
 &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That's it save the file, and you are now blocking the Baidu spider&lt;br /&gt;
&lt;br /&gt;
===Testing to see if its blocked===&lt;br /&gt;
&lt;br /&gt;
One way to do this is to use curl&lt;br /&gt;
&lt;br /&gt;
 curl -I http://www.briansnelson.com -A &amp;quot;Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Now you will get a 403 Forbidden &lt;br /&gt;
&lt;br /&gt;
 HTTP/1.1 403 Forbidden&lt;br /&gt;
 Date: Mon, 06 Jan 2014 19:18:11 GMT&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Block_Bots_by_User_Agent_String&amp;diff=1038</id>
		<title>Block Bots by User Agent String</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Block_Bots_by_User_Agent_String&amp;diff=1038"/>
				<updated>2020-10-27T01:23:40Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Via mod_rewrite */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How to block a bot by User Agent Sting==&lt;br /&gt;
&lt;br /&gt;
Do you have those bandwidth hogging bots as much as Phil and I do?  Did you know you can block them in your .htaccess file?  &lt;br /&gt;
&lt;br /&gt;
===Block the BOT===&lt;br /&gt;
Let block the most annoying bot on the internet - Baidu spider&lt;br /&gt;
&lt;br /&gt;
 vim .htaccess&lt;br /&gt;
&lt;br /&gt;
Now Add the following to block bad bots&lt;br /&gt;
&lt;br /&gt;
===Via mod_rewrite===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Directory /&amp;gt;&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{HTTP_USER_AGENT} Baiduspider [NC,OR] &lt;br /&gt;
 RewriteCond %{HTTP_USER_AGENT} Baidu [NC] &lt;br /&gt;
 RewriteRule ^.*$ - [F,L]&lt;br /&gt;
 &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Via BrowserMatch===&lt;br /&gt;
&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;Baiduspider&amp;quot; bots &lt;br /&gt;
 BrowserMatchNoCase &amp;quot;HTTrack&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;Yandex&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;AhrefsBot&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;Pinterestbot&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;YandexImages&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;YandexBot&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;Facebot&amp;quot; bots&lt;br /&gt;
 BrowserMatchNoCase &amp;quot;DotBot&amp;quot; bots&lt;br /&gt;
 &lt;br /&gt;
 Order Allow,Deny&lt;br /&gt;
 Allow from ALL&lt;br /&gt;
 Deny from env=bots&lt;br /&gt;
&lt;br /&gt;
That's it save the file, and you are now blocking the Baidu spider&lt;br /&gt;
&lt;br /&gt;
===Testing to see if its blocked===&lt;br /&gt;
&lt;br /&gt;
One way to do this is to use curl&lt;br /&gt;
&lt;br /&gt;
 curl -I http://www.briansnelson.com -A &amp;quot;Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Now you will get a 403 Forbidden &lt;br /&gt;
&lt;br /&gt;
 HTTP/1.1 403 Forbidden&lt;br /&gt;
 Date: Mon, 06 Jan 2014 19:18:11 GMT&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=HAProxy_Redirect_domain_to_another_domain&amp;diff=1037</id>
		<title>HAProxy Redirect domain to another domain</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=HAProxy_Redirect_domain_to_another_domain&amp;diff=1037"/>
				<updated>2020-10-21T06:56:07Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: Created page with &amp;quot;==HAProxy Redirect domain to another domain==  From time to time, you may find yourself wanting to redirect a domain to a folder on another domain  ===You will want to edit th...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==HAProxy Redirect domain to another domain==&lt;br /&gt;
&lt;br /&gt;
From time to time, you may find yourself wanting to redirect a domain to a folder on another domain&lt;br /&gt;
&lt;br /&gt;
===You will want to edit the haproxy.cfg file===&lt;br /&gt;
&lt;br /&gt;
 vim /etc/haproxy/haproxy.cfg&lt;br /&gt;
&lt;br /&gt;
===Then add something like the following to the frontend in haproxy.===&lt;br /&gt;
&lt;br /&gt;
 acl demoredirect hdr_dom(host) -i demofolder.com&lt;br /&gt;
 acl demoredirect hdr_dom(host) -i www.demofolder.com&lt;br /&gt;
 http-request redirect location https://briansnelson.com/demofolder/ code 301 if demoredirect&lt;br /&gt;
&lt;br /&gt;
===Save and check your configuration===&lt;br /&gt;
&lt;br /&gt;
 service haproxy check&lt;br /&gt;
&lt;br /&gt;
You are looking for&lt;br /&gt;
&lt;br /&gt;
 Configuration file is valid&lt;br /&gt;
&lt;br /&gt;
===Next restart or start the server to start blocking by ip address===&lt;br /&gt;
&lt;br /&gt;
 service haproxy restart/start&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Main_Page&amp;diff=1036</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Main_Page&amp;diff=1036"/>
				<updated>2020-10-21T06:48:53Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* HAProxy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Welcome to Ramblings of a Centos Ninja==&lt;br /&gt;
&lt;br /&gt;
[[File:Centos-logo.png|100px|frameless|right|alt=Centos How-Tos]]&lt;br /&gt;
===Centos 7===&lt;br /&gt;
 --&amp;gt; [[Install Remi and EPEL yum repo Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Mysql Database Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Apache Web Server Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install PHP/PHP-FPM 5.4 Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install (LAMP) Linux Apache MySQL and PHP Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Redis on Centos 7 How To]]&lt;br /&gt;
 --&amp;gt; [[How To Configure SWAP on Centos 7]] &lt;br /&gt;
 --&amp;gt; [[How to find user memory usage in linux]]&lt;br /&gt;
 --&amp;gt; [[How to Configure letsencrypt with Apache on Centos 7 Server]]&lt;br /&gt;
 --&amp;gt; [[How to configure Gmail as a Mail Relay with Postfix]]&lt;br /&gt;
 --&amp;gt; [[How use GeoIP on the command line Centos7]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with .htpasswd/.htaccess]]&lt;br /&gt;
 --&amp;gt; [[Linux setfacl command]]&lt;br /&gt;
 --&amp;gt; [[How to disable SSH timeout]]  [[File:New.jpg|35px|frameless]]&lt;br /&gt;
 --&amp;gt; [[How to Install Squid Proxy Server on Cento7]]  [[File:New.jpg|35px|frameless]]&lt;br /&gt;
 --&amp;gt; [[How To Use Systemctl to Manage Systemd Services]]&lt;br /&gt;
&lt;br /&gt;
===Centos 6===&lt;br /&gt;
 --&amp;gt; [[Change Runlevel]]&lt;br /&gt;
 --&amp;gt; [[Check Current Runlevel]]&lt;br /&gt;
 --&amp;gt; [[Change Run Level at Bootup]]&lt;br /&gt;
 --&amp;gt; [[How to change the Hostname on Centos]]&lt;br /&gt;
 --&amp;gt; [[chkconfig settings]]&lt;br /&gt;
 --&amp;gt; [[How to extract a tar.gz file]]&lt;br /&gt;
 --&amp;gt; [[Install SIM - System Integrity Monitor]]&lt;br /&gt;
 --&amp;gt; [[Use Bash on a Non Bash User]]&lt;br /&gt;
 --&amp;gt; [[Quit Bash Shell without Saving Bash History]]&lt;br /&gt;
 --&amp;gt; [[Change the Timezone Centos]]&lt;br /&gt;
 --&amp;gt; [[Check the Version of Package]]&lt;br /&gt;
 --&amp;gt; [[How to install Sphinx on Centos Server]]&lt;br /&gt;
 --&amp;gt; [[How to install Redis on a Centos 6.4 Server]]&lt;br /&gt;
 --&amp;gt; [[Basic Redis commands - Cheat Sheet]]&lt;br /&gt;
 --&amp;gt; [[Adding a New Disk Drive with Centos]]&lt;br /&gt;
 --&amp;gt; [[Creating Backups using rsync with Examples]]&lt;br /&gt;
 --&amp;gt; [[Expand your bash_history to 2500]]&lt;br /&gt;
 --&amp;gt; [[Setup logrotate to rotate your logs]]&lt;br /&gt;
 --&amp;gt; [[GPG: Encrypt And Decrypt Files With A Password]]&lt;br /&gt;
 --&amp;gt; [[Install Remi and EPEL yum repo]] &lt;br /&gt;
 --&amp;gt; [[Install NewRelic on Centos6]]&lt;br /&gt;
 --&amp;gt; [[Setting Up An NFS Server And Client On CentOS 6]]&lt;br /&gt;
 --&amp;gt; [[Sar is not working how to restart]]&lt;br /&gt;
 --&amp;gt; [[Batch jpeg Image Optimization]]&lt;br /&gt;
 --&amp;gt; [[Howto Block or Open HTTP/HTTPs Ports IPTables]]&lt;br /&gt;
 --&amp;gt; [[Reset Root Password in CentOS]]&lt;br /&gt;
 --&amp;gt; [[Setup vsftp with SELinux]]&lt;br /&gt;
 --&amp;gt; [[Howto Setup NTP on CentOS]]&lt;br /&gt;
 --&amp;gt; [[Fix corrupted RPM database]]&lt;br /&gt;
 --&amp;gt; [[Crontab Usage]]&lt;br /&gt;
 --&amp;gt; [[Make an ISO from a Folder with mkisofs]]&lt;br /&gt;
 --&amp;gt; [[How to setup a VPN server with CentOS PPTPD]]&lt;br /&gt;
 --&amp;gt; [[APF Firewall -Advanced Policy Firewall - Basics]]&lt;br /&gt;
 --&amp;gt; [[How to Block Bittorrent Traffic with IPtables]]&lt;br /&gt;
 --&amp;gt; [[How to find user memory usage in linux]]&lt;br /&gt;
 --&amp;gt; [[How to install ccsrch on Centos 6]]&lt;br /&gt;
 --&amp;gt; [[How to install jpegoptim for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install optipng for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install gifsicle for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install jpegtran for CentOS]]&lt;br /&gt;
 --&amp;gt; [[IPTABLES quick command list]]&lt;br /&gt;
 --&amp;gt; [[Linux setfacl command]]&lt;br /&gt;
 --&amp;gt; [[Postfix Mail Queue Commands for Reviewing Emails]]&lt;br /&gt;
&lt;br /&gt;
[[File:Magentos.jpg|100px|frameless|right|alt=Magento How To's]]&lt;br /&gt;
&lt;br /&gt;
===Magento Community Edition/Magento Enterprise Edition===&lt;br /&gt;
 --&amp;gt; [[What is Magento?]]&lt;br /&gt;
 --&amp;gt; [[Clear Magento Cache]]&lt;br /&gt;
 --&amp;gt; [[Disable Magento Modules]]&lt;br /&gt;
 --&amp;gt; [[Turn on Manual Indexing]]&lt;br /&gt;
 --&amp;gt; [[How to Reset Magento Password]]&lt;br /&gt;
 --&amp;gt; [[How to Create Users in Mageento]]&lt;br /&gt;
 --&amp;gt; [[Enable Mysql Slow Query Logging]]&lt;br /&gt;
 --&amp;gt; [[Magento Connect is not Working]]&lt;br /&gt;
 --&amp;gt; [[Magento will NOT save my Product Updates]]&lt;br /&gt;
 --&amp;gt; [[Magento Internal Cron not Running]]&lt;br /&gt;
 --&amp;gt; [[Setting up the System Cron Job]]&lt;br /&gt;
 --&amp;gt; [[Magento Connect is not Working]]&lt;br /&gt;
 --&amp;gt; [[Changing the Minimum Search Query - MySQL Full Text Only]]&lt;br /&gt;
 --&amp;gt; [[Install Redis Caching for Magento]]&lt;br /&gt;
 --&amp;gt; [[Install Redis Full Page Caching for Magento Enterprise]]&lt;br /&gt;
 --&amp;gt; [[Setting up a Second Instance of Redis]]&lt;br /&gt;
 --&amp;gt; [[Magento Setup Return-Path Email]]&lt;br /&gt;
 --&amp;gt; [[Magento Server Compatibility Check]]&lt;br /&gt;
 --&amp;gt; [[Magento Database Optimization - Log Cleaning Script]]&lt;br /&gt;
 --&amp;gt; [[Magento Site Performance Optimization]] &lt;br /&gt;
 --&amp;gt; [[Magento Log Rotate with logrotate]]&lt;br /&gt;
 --&amp;gt; [[How to use CDN with Webfonts with Magento]] &lt;br /&gt;
 --&amp;gt; [[How to Disable Magento Newsletter Module]]&lt;br /&gt;
 --&amp;gt; [[Magento : Execute Custom Module Cron Manually]]&lt;br /&gt;
&lt;br /&gt;
[[File:Magentos.jpg|100px|frameless|right|alt=Magento2 How To's]]&lt;br /&gt;
&lt;br /&gt;
===Magento 2 Community Edition===&lt;br /&gt;
 --&amp;gt; [[Upgrade Magento2 via CLI]]&lt;br /&gt;
 --&amp;gt; [[Enable/Disable Magento2 Maintenance Page]]&lt;br /&gt;
 --&amp;gt; [[How to set Magento 2 permissions and avoid installation errors]]&lt;br /&gt;
 --&amp;gt; [[How to speed up Magento 2 out of the box]]&lt;br /&gt;
 --&amp;gt; [[How to Change Magento 2 mode]]&lt;br /&gt;
 --&amp;gt; [[How to Enable Disable Magento 2 caches]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 How to Add Alternative HTTP headers]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Purge Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Redis Page Cache and Default Cache Example]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 How to check Magento Version]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Reindex Error: Index is locked by another reindex process. Skipping]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Reindex via the CLI]]&lt;br /&gt;
&lt;br /&gt;
[[File:Memcahed.jpg|100px|frameless|right|alt=Mecache Caching]]&lt;br /&gt;
&lt;br /&gt;
===Memcached Server===&lt;br /&gt;
 --&amp;gt; [[Memcached Monitor Tool]]&lt;br /&gt;
 --&amp;gt; [[Setup Multi Instance Memcache]]&lt;br /&gt;
 --&amp;gt; [[Check if Memcached is Running]]&lt;br /&gt;
 --&amp;gt; [[Flush Your Memcached Instance]]&lt;br /&gt;
 --&amp;gt; [[Check Memory Usage of Memcached]]&lt;br /&gt;
 --&amp;gt; [[Memcache running out of Memory?]]&lt;br /&gt;
 --&amp;gt; [[Memcached List all Keys]]&lt;br /&gt;
&lt;br /&gt;
[[File:Apachelogo.gif|100px|right|alt=Apache How Tos]]&lt;br /&gt;
&lt;br /&gt;
===Apache/PHP===  &lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Deny access to my site with an .htaccess file]]&lt;br /&gt;
 --&amp;gt; [[Redirect site to www or non www]]&lt;br /&gt;
 --&amp;gt; [[Restrict POST request to Website]]&lt;br /&gt;
 --&amp;gt; [[Install Tomcat6 Server on Centos 6]]&lt;br /&gt;
 --&amp;gt; [[How to setup an SSL Certificate for Free]]&lt;br /&gt;
 --&amp;gt; [[Enable Apache to Create Core Dumps]]&lt;br /&gt;
 --&amp;gt; [[Enable php-fpm to create core dumps]]&lt;br /&gt;
 --&amp;gt; [[Debug PHP Enabling slow_log]] &lt;br /&gt;
 --&amp;gt; [[Block Bots by User Agent String]]&lt;br /&gt;
 --&amp;gt; [[Install mod_extact_forward - Show Real IP behind Proxy]]&lt;br /&gt;
 --&amp;gt; [[Install ionCube Loaders for Centos]]&lt;br /&gt;
 --&amp;gt; [[Install Zend Guard with PHP 5.3 on Centos]]&lt;br /&gt;
 --&amp;gt; [[Install Zend Guard 6.0 with PHP 5.4 on Centos]]&lt;br /&gt;
 --&amp;gt; [[Disable Mod_Security for a single vhost]]&lt;br /&gt;
 --&amp;gt; [[Hide PHP Version(X-Powered-By) in Headers]]&lt;br /&gt;
 --&amp;gt; [[Sessions are ending before MaxLifetime]]&lt;br /&gt;
 --&amp;gt; [[Apache mod_speling case insensitive urls issue]]&lt;br /&gt;
 --&amp;gt; [[Restrict access via htaccess via ipaddress]]&lt;br /&gt;
 --&amp;gt; [[Howto install mod_evasive with fail2ban]]&lt;br /&gt;
 --&amp;gt; [[Install the Latest version PHP on CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to bypass .htpasswd for certain IPs Apache]]&lt;br /&gt;
 --&amp;gt; [[Clear mod_pagespeed cache ]]&lt;br /&gt;
 --&amp;gt; [[Install GeoIP for Apache and PHP]]&lt;br /&gt;
 --&amp;gt; [[How to block or allow countries using GeoIP and .htaccess]]&lt;br /&gt;
 --&amp;gt; [[How to disable mod_security per vhost]]&lt;br /&gt;
 --&amp;gt; [[Force HTTPS for entire website via htaccess]]&lt;br /&gt;
 --&amp;gt; [[Restrict Access to wp-login.php and xmlrpc.php]]&lt;br /&gt;
 --&amp;gt; [[The X-Frame-Options response header]]&lt;br /&gt;
 --&amp;gt; [[Install Xdebug with php-fpm per pool]]&lt;br /&gt;
 --&amp;gt; [[How to Enable Gzip Compression]]&lt;br /&gt;
 --&amp;gt; [[Enable Apache rewrite logging]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with .htpasswd/.htaccess]]&lt;br /&gt;
 --&amp;gt; [[How to Disable PHP Execution in Certain Directories]]&lt;br /&gt;
 --&amp;gt; [[Directory listing in htaccess. Allow, Deny, Disable, Enable Directory Listing in .htaccess]]&lt;br /&gt;
 --&amp;gt; [[What is the Cache-Control Header]]&lt;br /&gt;
[[File:Haproxy.png|100px|frameless|right|alt=Mysql Percona]]&lt;br /&gt;
&lt;br /&gt;
===HAProxy===&lt;br /&gt;
 --&amp;gt; [[What is HAProxy]]&lt;br /&gt;
 --&amp;gt; [[HAProxy vs Nginx]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Load Balancing]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Cluster Setup Example]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Docker]]&lt;br /&gt;
 --&amp;gt; [[HAProxy with Varnish SSL Termination Example]]&lt;br /&gt;
 --&amp;gt; [[HAProxy http2]]&lt;br /&gt;
 --&amp;gt; [[HAProxy GUI]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Install on Centos7]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Cloud Load Balancer]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Block by User-Agent]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Restrict by IP Address]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Redirect domain to another domain]]&lt;br /&gt;
&lt;br /&gt;
[[File:Logo percona server new.png|100px|frameless|right|alt=Mysql Percona]]&lt;br /&gt;
&lt;br /&gt;
===Mysql/Percona===&lt;br /&gt;
 --&amp;gt; [[How to Optimize/Repair a Table]]&lt;br /&gt;
 --&amp;gt; [[MySQL - Check Which Query is Consuming Resources]]&lt;br /&gt;
 --&amp;gt; [[How to Set your MySQL Password]]&lt;br /&gt;
 --&amp;gt; [[Rest your MySQL Admin Password]]&lt;br /&gt;
 --&amp;gt; [[How to Convert Table to InnoDB]] &lt;br /&gt;
 --&amp;gt; [[How to install Percona Database Server]]&lt;br /&gt;
 --&amp;gt; [[How to Access the MySQL via Shell]]&lt;br /&gt;
 --&amp;gt; [[How to Add a User in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to Drop a User in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to Create and Delete a MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to Create a Table in MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to Create a MySQL Database Backup]]&lt;br /&gt;
 --&amp;gt; [[How to Import a MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to update the max_connections setting in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to view a list of MySQL users and their privileges]]&lt;br /&gt;
 --&amp;gt; [[Save MySQL query results into a text or CSV file]]&lt;br /&gt;
 --&amp;gt; [[How to optimize a MySQL database using phpMyAdmin]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Varnish-cache-log.jpeg|100px|frameless|right|alt=Varnish How tos]]&lt;br /&gt;
&lt;br /&gt;
===Varnish Cache===&lt;br /&gt;
 --&amp;gt; [[Setup Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for Magento]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for Wordpress]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for MediaWiki]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish - Multiple Domains]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish - Multiple Ipaddress]]&lt;br /&gt;
 --&amp;gt; [[Script to Clear a Page from Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Varnish will not restart WHY?]]&lt;br /&gt;
 --&amp;gt; [[Warm up Varnish Script using Sitemap.xml]]&lt;br /&gt;
 --&amp;gt; [[Varnish How to redirect non-www URLs to www]]&lt;br /&gt;
 --&amp;gt; [[Install libvmod-header with Varnish]]&lt;br /&gt;
&lt;br /&gt;
[[File:Nginx-logo.png|100px|frameless|right|Install Nginx|alt=Nginx How tos]]&lt;br /&gt;
&lt;br /&gt;
===Nginx Web Server===&lt;br /&gt;
 --&amp;gt; [[Setup Nginx PHP FPM Percona Mysql]]&lt;br /&gt;
 --&amp;gt; [[Wordpress Ngnix Rewrite Rules]]&lt;br /&gt;
 --&amp;gt; [[Setup up Nginx Caching]]&lt;br /&gt;
 --&amp;gt; [[Nginx Magento vhost Configuration]]&lt;br /&gt;
 --&amp;gt; [[Basic HTTP Authentication with Nginx]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with Nginx]]&lt;br /&gt;
 --&amp;gt; [[403 Forbidden Error Nginx - How to Solve]]&lt;br /&gt;
&lt;br /&gt;
[[File:Sword-of-Omens-Sword1.png|100px|frameless|right|alt=Brian Nelson]]&lt;br /&gt;
&lt;br /&gt;
===Other===&lt;br /&gt;
 --&amp;gt; [[How to add trusted root certificates]]&lt;br /&gt;
 --&amp;gt; [[Find:_10_Useful_Examples_of_Find]]&lt;br /&gt;
 --&amp;gt; [[Send email from PHP to a log file instead of sendmail]]&lt;br /&gt;
 --&amp;gt; [[Debugging Wordpress]]&lt;br /&gt;
 --&amp;gt; [[How to install Linux via USB]]&lt;br /&gt;
 --&amp;gt; [[Network Subnet Mask Cheat Sheet]]&lt;br /&gt;
 --&amp;gt; [[Linux Keyboard Shortcuts]]&lt;br /&gt;
 --&amp;gt; [[Setup a SSH Tunnel for Secure Browsing]]&lt;br /&gt;
 --&amp;gt; [[Install OpenSSH on Windows]]&lt;br /&gt;
 --&amp;gt; [[Install Qmail on a Fresh Centos Server]]&lt;br /&gt;
 --&amp;gt; [[Setup Qmail to Listen on port 587 for SMTP]]&lt;br /&gt;
 --&amp;gt; [[Qmail catch-all account with vpopmail]]&lt;br /&gt;
 --&amp;gt; [[Setup Incoming Email Pipe to Script for Qmail]]&lt;br /&gt;
 --&amp;gt; [[Qmail Control Files]]&lt;br /&gt;
 --&amp;gt; [[Install qmqtool for Qmail on Centos Server]]&lt;br /&gt;
 --&amp;gt; [[Rest Email Password for vpopmail]]&lt;br /&gt;
 --&amp;gt; [[How to check Used IP on your Home Network]]&lt;br /&gt;
 --&amp;gt; [[How to find GMAIL IPs to allow at Firewall]]&lt;br /&gt;
 --&amp;gt; [[Useful TCPDUMP commands]]&lt;br /&gt;
 --&amp;gt; [[Remove Email Block Lists]]&lt;br /&gt;
 --&amp;gt; [[How to disable qmail vpopmail email user]] &lt;br /&gt;
 --&amp;gt; [[Git Cheat Sheet - Git made easy]]&lt;br /&gt;
 --&amp;gt; [[Top Chmod Command Examples for Beginners]]&lt;br /&gt;
 --&amp;gt; [[Benchmarking and Load Testing with Siege]]&lt;br /&gt;
 --&amp;gt; [[Benchmarking and Load Testing with Apache Bench(AB)]]&lt;br /&gt;
 --&amp;gt; [[How do I find out more about socket files in /proc/fd]]&lt;br /&gt;
 --&amp;gt; [[How to Disable the wp-cron.php in WordPress]]&lt;br /&gt;
 --&amp;gt; [[How to delete mail queue in Postfix]]&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Top Command Line Games - Linux CLI Games]] &amp;lt;sub&amp;gt;Cause Linux can be fun&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Centos Oneliners]]&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Bash Script to Check Memory with Email Alert when Low]]&lt;br /&gt;
 --&amp;gt; [[Bash Script to Check Site Code Status with Email Alert]]&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_to_bypass_.htpasswd_for_certain_IPs_Apache&amp;diff=1035</id>
		<title>How to bypass .htpasswd for certain IPs Apache</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_to_bypass_.htpasswd_for_certain_IPs_Apache&amp;diff=1035"/>
				<updated>2020-04-01T03:14:23Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Wordpress wp-admin directory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How to bypass .htpasswd for certain IPs with Apache==&lt;br /&gt;
&lt;br /&gt;
If you would like to setup Apache authentication on your website to block out unwanted users, example a development site with public access and allow your ipaddress to bypass the authentication.&lt;br /&gt;
&lt;br /&gt;
Setting up your .htaccess or vhost configuration file.&lt;br /&gt;
&lt;br /&gt;
===Basic Usage===&lt;br /&gt;
&lt;br /&gt;
Add the following, with your variables &lt;br /&gt;
&lt;br /&gt;
 Order deny,allow&lt;br /&gt;
 Deny from all&lt;br /&gt;
 AuthType Basic&lt;br /&gt;
 AuthUserFile /path/to/.htpasswd&lt;br /&gt;
 AuthName &amp;quot;Protected Area&amp;quot;&lt;br /&gt;
 require valid-user&lt;br /&gt;
 Allow from xxx.xxx.xxx.xxx&lt;br /&gt;
 SetEnvIf X-FORWARDED-FOR xxx.xxx.xxx.xxx allowed&lt;br /&gt;
 Allow from env=allowed&lt;br /&gt;
 Satisfy Any&lt;br /&gt;
&lt;br /&gt;
You will want to replace the xxx.xxx.xxx.xxx with your ipaddress. &lt;br /&gt;
&lt;br /&gt;
This can be put in your vhost file or .htaccess file.&lt;br /&gt;
&lt;br /&gt;
===Wordpress wp-admin directory===&lt;br /&gt;
&lt;br /&gt;
Another example would be for wordpress wp-admin folder&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Directory &amp;quot;/var/www/wordpressdomain/wp-admin/&amp;quot;&amp;gt;&lt;br /&gt;
 Order deny,allow&lt;br /&gt;
 Deny from all&lt;br /&gt;
 AuthType Basic&lt;br /&gt;
 AuthUserFile /path/to/.htpasswd&lt;br /&gt;
 AuthName &amp;quot;Protected Area&amp;quot;&lt;br /&gt;
 require valid-user&lt;br /&gt;
 Allow from xxx.xxx.xxx.xxx&lt;br /&gt;
 SetEnvIf X-FORWARDED-FOR xxx.xxx.xxx.xxx allowed&lt;br /&gt;
 Allow from env=allowed&lt;br /&gt;
 Satisfy Any&lt;br /&gt;
 &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will protect your admin files from everyone but your ipaddress.&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_to_bypass_.htpasswd_for_certain_IPs_Apache&amp;diff=1034</id>
		<title>How to bypass .htpasswd for certain IPs Apache</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_to_bypass_.htpasswd_for_certain_IPs_Apache&amp;diff=1034"/>
				<updated>2020-04-01T03:14:10Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Wordpress wp-admin directory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How to bypass .htpasswd for certain IPs with Apache==&lt;br /&gt;
&lt;br /&gt;
If you would like to setup Apache authentication on your website to block out unwanted users, example a development site with public access and allow your ipaddress to bypass the authentication.&lt;br /&gt;
&lt;br /&gt;
Setting up your .htaccess or vhost configuration file.&lt;br /&gt;
&lt;br /&gt;
===Basic Usage===&lt;br /&gt;
&lt;br /&gt;
Add the following, with your variables &lt;br /&gt;
&lt;br /&gt;
 Order deny,allow&lt;br /&gt;
 Deny from all&lt;br /&gt;
 AuthType Basic&lt;br /&gt;
 AuthUserFile /path/to/.htpasswd&lt;br /&gt;
 AuthName &amp;quot;Protected Area&amp;quot;&lt;br /&gt;
 require valid-user&lt;br /&gt;
 Allow from xxx.xxx.xxx.xxx&lt;br /&gt;
 SetEnvIf X-FORWARDED-FOR xxx.xxx.xxx.xxx allowed&lt;br /&gt;
 Allow from env=allowed&lt;br /&gt;
 Satisfy Any&lt;br /&gt;
&lt;br /&gt;
You will want to replace the xxx.xxx.xxx.xxx with your ipaddress. &lt;br /&gt;
&lt;br /&gt;
This can be put in your vhost file or .htaccess file.&lt;br /&gt;
&lt;br /&gt;
===Wordpress wp-admin directory===&lt;br /&gt;
&lt;br /&gt;
Another example would be for wordpress wp-admin folder&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Directory &amp;quot;/var/www/wordpressdomain/wp-admin/&amp;quot;&amp;gt;&lt;br /&gt;
 Order deny,allow&lt;br /&gt;
 Deny from all&lt;br /&gt;
 AuthType Basic&lt;br /&gt;
 AuthUserFile /path/to/.htpasswd&lt;br /&gt;
 AuthName &amp;quot;Protected Area&amp;quot;&lt;br /&gt;
 require valid-user&lt;br /&gt;
 Allow from xxx.xxx.xxx.xxx&lt;br /&gt;
 SetEnvIf X-FORWARDED-FOR xxx.xxx.xxx.xxx allowed&lt;br /&gt;
 Allow from env=allowed&lt;br /&gt;
  Satisfy Any&lt;br /&gt;
 &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will protect your admin files from everyone but your ipaddress.&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_to_bypass_.htpasswd_for_certain_IPs_Apache&amp;diff=1033</id>
		<title>How to bypass .htpasswd for certain IPs Apache</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_to_bypass_.htpasswd_for_certain_IPs_Apache&amp;diff=1033"/>
				<updated>2020-04-01T03:11:51Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Basic Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How to bypass .htpasswd for certain IPs with Apache==&lt;br /&gt;
&lt;br /&gt;
If you would like to setup Apache authentication on your website to block out unwanted users, example a development site with public access and allow your ipaddress to bypass the authentication.&lt;br /&gt;
&lt;br /&gt;
Setting up your .htaccess or vhost configuration file.&lt;br /&gt;
&lt;br /&gt;
===Basic Usage===&lt;br /&gt;
&lt;br /&gt;
Add the following, with your variables &lt;br /&gt;
&lt;br /&gt;
 Order deny,allow&lt;br /&gt;
 Deny from all&lt;br /&gt;
 AuthType Basic&lt;br /&gt;
 AuthUserFile /path/to/.htpasswd&lt;br /&gt;
 AuthName &amp;quot;Protected Area&amp;quot;&lt;br /&gt;
 require valid-user&lt;br /&gt;
 Allow from xxx.xxx.xxx.xxx&lt;br /&gt;
 SetEnvIf X-FORWARDED-FOR xxx.xxx.xxx.xxx allowed&lt;br /&gt;
 Allow from env=allowed&lt;br /&gt;
 Satisfy Any&lt;br /&gt;
&lt;br /&gt;
You will want to replace the xxx.xxx.xxx.xxx with your ipaddress. &lt;br /&gt;
&lt;br /&gt;
This can be put in your vhost file or .htaccess file.&lt;br /&gt;
&lt;br /&gt;
===Wordpress wp-admin directory===&lt;br /&gt;
&lt;br /&gt;
Another example would be for wordpress wp-admin folder&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Directory &amp;quot;/var/www/wordpressdomain/wp-admin/&amp;quot;&amp;gt;&lt;br /&gt;
   AuthUserFile /path/to/your/.htpasswd&lt;br /&gt;
   AuthName &amp;quot;Please Log In&amp;quot;&lt;br /&gt;
   AuthType Basic&lt;br /&gt;
   require valid-user&lt;br /&gt;
   Order allow,deny&lt;br /&gt;
   Allow from xxx.xxx.xxx.xxx&lt;br /&gt;
   Satisfy any&lt;br /&gt;
 &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will protect your admin files from everyone but your ipaddress.&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_to_bypass_.htpasswd_for_certain_IPs_Apache&amp;diff=1032</id>
		<title>How to bypass .htpasswd for certain IPs Apache</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_to_bypass_.htpasswd_for_certain_IPs_Apache&amp;diff=1032"/>
				<updated>2020-04-01T03:11:23Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* Basic Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How to bypass .htpasswd for certain IPs with Apache==&lt;br /&gt;
&lt;br /&gt;
If you would like to setup Apache authentication on your website to block out unwanted users, example a development site with public access and allow your ipaddress to bypass the authentication.&lt;br /&gt;
&lt;br /&gt;
Setting up your .htaccess or vhost configuration file.&lt;br /&gt;
&lt;br /&gt;
===Basic Usage===&lt;br /&gt;
&lt;br /&gt;
Add the following, with your variables &lt;br /&gt;
&lt;br /&gt;
Order deny,allow&lt;br /&gt;
Deny from all&lt;br /&gt;
AuthType Basic&lt;br /&gt;
AuthUserFile /path/to/.htpasswd&lt;br /&gt;
AuthName &amp;quot;Protected Area&amp;quot;&lt;br /&gt;
require valid-user&lt;br /&gt;
Allow from xxx.xxx.xxx.xxx&lt;br /&gt;
SetEnvIf X-FORWARDED-FOR xxx.xxx.xxx.xxx allowed&lt;br /&gt;
Allow from env=allowed&lt;br /&gt;
Satisfy Any&lt;br /&gt;
&lt;br /&gt;
You will want to replace the xxx.xxx.xxx.xxx with your ipaddress. &lt;br /&gt;
&lt;br /&gt;
This can be put in your vhost file or .htaccess file.&lt;br /&gt;
&lt;br /&gt;
===Wordpress wp-admin directory===&lt;br /&gt;
&lt;br /&gt;
Another example would be for wordpress wp-admin folder&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Directory &amp;quot;/var/www/wordpressdomain/wp-admin/&amp;quot;&amp;gt;&lt;br /&gt;
   AuthUserFile /path/to/your/.htpasswd&lt;br /&gt;
   AuthName &amp;quot;Please Log In&amp;quot;&lt;br /&gt;
   AuthType Basic&lt;br /&gt;
   require valid-user&lt;br /&gt;
   Order allow,deny&lt;br /&gt;
   Allow from xxx.xxx.xxx.xxx&lt;br /&gt;
   Satisfy any&lt;br /&gt;
 &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will protect your admin files from everyone but your ipaddress.&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=HAProxy_Restrict_by_IP_Address&amp;diff=1031</id>
		<title>HAProxy Restrict by IP Address</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=HAProxy_Restrict_by_IP_Address&amp;diff=1031"/>
				<updated>2019-12-12T21:24:53Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: Created page with &amp;quot;==HAProxy Restrict by IP Address==  As with any proxy service, you want to block bad ips before they get to the backend servers.  With haproxy you can block ips really easy....&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==HAProxy Restrict by IP Address==&lt;br /&gt;
&lt;br /&gt;
As with any proxy service, you want to block bad ips before they get to the backend servers.  With haproxy you can block ips really easy.&lt;br /&gt;
&lt;br /&gt;
Add the following to your haproxy configuration file&lt;br /&gt;
&lt;br /&gt;
 vim /etc/haproxy/haproxy.cfg&lt;br /&gt;
&lt;br /&gt;
Add the following to your frontend, are blocking via x-forwarded-for and direct ip access, we do this now so you don't have to later if you decided to use cloudflare or another proxy later&lt;br /&gt;
&lt;br /&gt;
  # Blacklist IP list&lt;br /&gt;
  acl is-blacklisted-ip hdr_ip(x-forwarded-for,1) -f /etc/haproxy/blacklist.txt&lt;br /&gt;
  acl is-blacklisted-ip src -m ip -f /etc/haproxy/blacklist.txt&lt;br /&gt;
  http-request deny if is-blacklisted-ip&lt;br /&gt;
&lt;br /&gt;
Save then add the blacklist-agent.txt file.&lt;br /&gt;
&lt;br /&gt;
 vim /etc/haproxy/blacklist.txt&lt;br /&gt;
&lt;br /&gt;
Add some ips to the block list file, you can add lot, you can even block entire countries with this method&lt;br /&gt;
&lt;br /&gt;
 192.168.0.1&lt;br /&gt;
&lt;br /&gt;
Save and check your configuration&lt;br /&gt;
&lt;br /&gt;
 service haproxy check&lt;br /&gt;
&lt;br /&gt;
You are looking for&lt;br /&gt;
&lt;br /&gt;
'''Configuration file is valid'''&lt;br /&gt;
&lt;br /&gt;
Next restart or start the server to start blocking by ip address&lt;br /&gt;
&lt;br /&gt;
 service haproxy restart/start&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=HAProxy_Block_by_User-Agent&amp;diff=1030</id>
		<title>HAProxy Block by User-Agent</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=HAProxy_Block_by_User-Agent&amp;diff=1030"/>
				<updated>2019-12-12T08:33:13Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==HAProxy block by User-Agent==&lt;br /&gt;
&lt;br /&gt;
As with any proxy service, you will want to block bad bots.  Blocking by the a keyword in the user-agent before it hits the backend servers will save on server resources.&lt;br /&gt;
&lt;br /&gt;
Add the following to your haproxy configuration file&lt;br /&gt;
&lt;br /&gt;
 vim /etc/haproxy/haproxy.cfg&lt;br /&gt;
&lt;br /&gt;
Add the following to your frontend&lt;br /&gt;
&lt;br /&gt;
   # Block badbots&lt;br /&gt;
  acl is-blockedagent hdr_sub(user-agent) -i -f /etc/haproxy/blacklist-agent.txt&lt;br /&gt;
  http-request deny if is-blockedagent&lt;br /&gt;
&lt;br /&gt;
Save then add the blacklist-agent.txt file.&lt;br /&gt;
&lt;br /&gt;
 vim /etc/haproxy/blacklist-agent.txt&lt;br /&gt;
&lt;br /&gt;
Block the basics&lt;br /&gt;
&lt;br /&gt;
 SemrushBot&lt;br /&gt;
 AhrefsBot&lt;br /&gt;
 MJ12bot&lt;br /&gt;
 ZoominfoBot&lt;br /&gt;
 DotBot&lt;br /&gt;
 MauiBot&lt;br /&gt;
&lt;br /&gt;
Save and check your configuration&lt;br /&gt;
&lt;br /&gt;
 service haproxy check&lt;br /&gt;
&lt;br /&gt;
You are looking for&lt;br /&gt;
&lt;br /&gt;
'''Configuration file is valid'''&lt;br /&gt;
&lt;br /&gt;
Next restart or start the server to start blocking by user-agent&lt;br /&gt;
&lt;br /&gt;
 service haproxy restart/start&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=HAProxy_Block_by_User-Agent&amp;diff=1029</id>
		<title>HAProxy Block by User-Agent</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=HAProxy_Block_by_User-Agent&amp;diff=1029"/>
				<updated>2019-12-12T08:32:56Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: Created page with &amp;quot;==HAProxy block by User-Agent==  As with any proxy service, you will want to block bad bots.  Blocking by the a keyword in the user-agent before it hits the backend servers wi...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==HAProxy block by User-Agent==&lt;br /&gt;
&lt;br /&gt;
As with any proxy service, you will want to block bad bots.  Blocking by the a keyword in the user-agent before it hits the backend servers will save on server resources.&lt;br /&gt;
&lt;br /&gt;
Add the following to your haproxy configuration file&lt;br /&gt;
&lt;br /&gt;
 vim /etc/haproxy/haproxy.cfg&lt;br /&gt;
&lt;br /&gt;
Add the following to your frontend&lt;br /&gt;
&lt;br /&gt;
   # Block badbots&lt;br /&gt;
  acl is-blockedagent hdr_sub(user-agent) -i -f /etc/haproxy/blacklist-agent.txt&lt;br /&gt;
  http-request deny if is-blockedagent&lt;br /&gt;
&lt;br /&gt;
Save then add the blacklist-agent.txt file.&lt;br /&gt;
&lt;br /&gt;
 vim /etc/haproxy/blacklist-agent.txt&lt;br /&gt;
&lt;br /&gt;
Block the basics&lt;br /&gt;
&lt;br /&gt;
 SemrushBot&lt;br /&gt;
 AhrefsBot&lt;br /&gt;
 MJ12bot&lt;br /&gt;
 ZoominfoBot&lt;br /&gt;
 DotBot&lt;br /&gt;
 MauiBot&lt;br /&gt;
&lt;br /&gt;
Save and check your configuration&lt;br /&gt;
&lt;br /&gt;
 service haproxy check&lt;br /&gt;
&lt;br /&gt;
You are looking for&lt;br /&gt;
&lt;br /&gt;
Configuration file is valid&lt;br /&gt;
&lt;br /&gt;
Next restart or start the server to start blocking by user-agent&lt;br /&gt;
&lt;br /&gt;
 service haproxy restart/start&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Main_Page&amp;diff=1028</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Main_Page&amp;diff=1028"/>
				<updated>2019-12-12T08:25:15Z</updated>
		
		<summary type="html">&lt;p&gt;Brian: /* HAProxy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Welcome to Ramblings of a Centos Ninja==&lt;br /&gt;
&lt;br /&gt;
[[File:Centos-logo.png|100px|frameless|right|alt=Centos How-Tos]]&lt;br /&gt;
===Centos 7===&lt;br /&gt;
 --&amp;gt; [[Install Remi and EPEL yum repo Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Mysql Database Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Apache Web Server Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install PHP/PHP-FPM 5.4 Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install (LAMP) Linux Apache MySQL and PHP Centos 7]]&lt;br /&gt;
 --&amp;gt; [[Install Redis on Centos 7 How To]]&lt;br /&gt;
 --&amp;gt; [[How To Configure SWAP on Centos 7]] &lt;br /&gt;
 --&amp;gt; [[How to find user memory usage in linux]]&lt;br /&gt;
 --&amp;gt; [[How to Configure letsencrypt with Apache on Centos 7 Server]]&lt;br /&gt;
 --&amp;gt; [[How to configure Gmail as a Mail Relay with Postfix]]&lt;br /&gt;
 --&amp;gt; [[How use GeoIP on the command line Centos7]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with .htpasswd/.htaccess]]&lt;br /&gt;
 --&amp;gt; [[Linux setfacl command]]&lt;br /&gt;
 --&amp;gt; [[How to disable SSH timeout]]  [[File:New.jpg|35px|frameless]]&lt;br /&gt;
 --&amp;gt; [[How to Install Squid Proxy Server on Cento7]]  [[File:New.jpg|35px|frameless]]&lt;br /&gt;
 --&amp;gt; [[How To Use Systemctl to Manage Systemd Services]]&lt;br /&gt;
&lt;br /&gt;
===Centos 6===&lt;br /&gt;
 --&amp;gt; [[Change Runlevel]]&lt;br /&gt;
 --&amp;gt; [[Check Current Runlevel]]&lt;br /&gt;
 --&amp;gt; [[Change Run Level at Bootup]]&lt;br /&gt;
 --&amp;gt; [[How to change the Hostname on Centos]]&lt;br /&gt;
 --&amp;gt; [[chkconfig settings]]&lt;br /&gt;
 --&amp;gt; [[How to extract a tar.gz file]]&lt;br /&gt;
 --&amp;gt; [[Install SIM - System Integrity Monitor]]&lt;br /&gt;
 --&amp;gt; [[Use Bash on a Non Bash User]]&lt;br /&gt;
 --&amp;gt; [[Quit Bash Shell without Saving Bash History]]&lt;br /&gt;
 --&amp;gt; [[Change the Timezone Centos]]&lt;br /&gt;
 --&amp;gt; [[Check the Version of Package]]&lt;br /&gt;
 --&amp;gt; [[How to install Sphinx on Centos Server]]&lt;br /&gt;
 --&amp;gt; [[How to install Redis on a Centos 6.4 Server]]&lt;br /&gt;
 --&amp;gt; [[Basic Redis commands - Cheat Sheet]]&lt;br /&gt;
 --&amp;gt; [[Adding a New Disk Drive with Centos]]&lt;br /&gt;
 --&amp;gt; [[Creating Backups using rsync with Examples]]&lt;br /&gt;
 --&amp;gt; [[Expand your bash_history to 2500]]&lt;br /&gt;
 --&amp;gt; [[Setup logrotate to rotate your logs]]&lt;br /&gt;
 --&amp;gt; [[GPG: Encrypt And Decrypt Files With A Password]]&lt;br /&gt;
 --&amp;gt; [[Install Remi and EPEL yum repo]] &lt;br /&gt;
 --&amp;gt; [[Install NewRelic on Centos6]]&lt;br /&gt;
 --&amp;gt; [[Setting Up An NFS Server And Client On CentOS 6]]&lt;br /&gt;
 --&amp;gt; [[Sar is not working how to restart]]&lt;br /&gt;
 --&amp;gt; [[Batch jpeg Image Optimization]]&lt;br /&gt;
 --&amp;gt; [[Howto Block or Open HTTP/HTTPs Ports IPTables]]&lt;br /&gt;
 --&amp;gt; [[Reset Root Password in CentOS]]&lt;br /&gt;
 --&amp;gt; [[Setup vsftp with SELinux]]&lt;br /&gt;
 --&amp;gt; [[Howto Setup NTP on CentOS]]&lt;br /&gt;
 --&amp;gt; [[Fix corrupted RPM database]]&lt;br /&gt;
 --&amp;gt; [[Crontab Usage]]&lt;br /&gt;
 --&amp;gt; [[Make an ISO from a Folder with mkisofs]]&lt;br /&gt;
 --&amp;gt; [[How to setup a VPN server with CentOS PPTPD]]&lt;br /&gt;
 --&amp;gt; [[APF Firewall -Advanced Policy Firewall - Basics]]&lt;br /&gt;
 --&amp;gt; [[How to Block Bittorrent Traffic with IPtables]]&lt;br /&gt;
 --&amp;gt; [[How to find user memory usage in linux]]&lt;br /&gt;
 --&amp;gt; [[How to install ccsrch on Centos 6]]&lt;br /&gt;
 --&amp;gt; [[How to install jpegoptim for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install optipng for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install gifsicle for CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to install jpegtran for CentOS]]&lt;br /&gt;
 --&amp;gt; [[IPTABLES quick command list]]&lt;br /&gt;
 --&amp;gt; [[Linux setfacl command]]&lt;br /&gt;
 --&amp;gt; [[Postfix Mail Queue Commands for Reviewing Emails]]&lt;br /&gt;
&lt;br /&gt;
[[File:Magentos.jpg|100px|frameless|right|alt=Magento How To's]]&lt;br /&gt;
&lt;br /&gt;
===Magento Community Edition/Magento Enterprise Edition===&lt;br /&gt;
 --&amp;gt; [[What is Magento?]]&lt;br /&gt;
 --&amp;gt; [[Clear Magento Cache]]&lt;br /&gt;
 --&amp;gt; [[Disable Magento Modules]]&lt;br /&gt;
 --&amp;gt; [[Turn on Manual Indexing]]&lt;br /&gt;
 --&amp;gt; [[How to Reset Magento Password]]&lt;br /&gt;
 --&amp;gt; [[How to Create Users in Mageento]]&lt;br /&gt;
 --&amp;gt; [[Enable Mysql Slow Query Logging]]&lt;br /&gt;
 --&amp;gt; [[Magento Connect is not Working]]&lt;br /&gt;
 --&amp;gt; [[Magento will NOT save my Product Updates]]&lt;br /&gt;
 --&amp;gt; [[Magento Internal Cron not Running]]&lt;br /&gt;
 --&amp;gt; [[Setting up the System Cron Job]]&lt;br /&gt;
 --&amp;gt; [[Magento Connect is not Working]]&lt;br /&gt;
 --&amp;gt; [[Changing the Minimum Search Query - MySQL Full Text Only]]&lt;br /&gt;
 --&amp;gt; [[Install Redis Caching for Magento]]&lt;br /&gt;
 --&amp;gt; [[Install Redis Full Page Caching for Magento Enterprise]]&lt;br /&gt;
 --&amp;gt; [[Setting up a Second Instance of Redis]]&lt;br /&gt;
 --&amp;gt; [[Magento Setup Return-Path Email]]&lt;br /&gt;
 --&amp;gt; [[Magento Server Compatibility Check]]&lt;br /&gt;
 --&amp;gt; [[Magento Database Optimization - Log Cleaning Script]]&lt;br /&gt;
 --&amp;gt; [[Magento Site Performance Optimization]] &lt;br /&gt;
 --&amp;gt; [[Magento Log Rotate with logrotate]]&lt;br /&gt;
 --&amp;gt; [[How to use CDN with Webfonts with Magento]] &lt;br /&gt;
 --&amp;gt; [[How to Disable Magento Newsletter Module]]&lt;br /&gt;
 --&amp;gt; [[Magento : Execute Custom Module Cron Manually]]&lt;br /&gt;
&lt;br /&gt;
[[File:Magentos.jpg|100px|frameless|right|alt=Magento2 How To's]]&lt;br /&gt;
&lt;br /&gt;
===Magento 2 Community Edition===&lt;br /&gt;
 --&amp;gt; [[Upgrade Magento2 via CLI]]&lt;br /&gt;
 --&amp;gt; [[Enable/Disable Magento2 Maintenance Page]]&lt;br /&gt;
 --&amp;gt; [[How to set Magento 2 permissions and avoid installation errors]]&lt;br /&gt;
 --&amp;gt; [[How to speed up Magento 2 out of the box]]&lt;br /&gt;
 --&amp;gt; [[How to Change Magento 2 mode]]&lt;br /&gt;
 --&amp;gt; [[How to Enable Disable Magento 2 caches]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 How to Add Alternative HTTP headers]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Purge Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Redis Page Cache and Default Cache Example]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 How to check Magento Version]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Reindex Error: Index is locked by another reindex process. Skipping]]&lt;br /&gt;
 --&amp;gt; [[Magento 2 Reindex via the CLI]]&lt;br /&gt;
&lt;br /&gt;
[[File:Memcahed.jpg|100px|frameless|right|alt=Mecache Caching]]&lt;br /&gt;
&lt;br /&gt;
===Memcached Server===&lt;br /&gt;
 --&amp;gt; [[Memcached Monitor Tool]]&lt;br /&gt;
 --&amp;gt; [[Setup Multi Instance Memcache]]&lt;br /&gt;
 --&amp;gt; [[Check if Memcached is Running]]&lt;br /&gt;
 --&amp;gt; [[Flush Your Memcached Instance]]&lt;br /&gt;
 --&amp;gt; [[Check Memory Usage of Memcached]]&lt;br /&gt;
 --&amp;gt; [[Memcache running out of Memory?]]&lt;br /&gt;
 --&amp;gt; [[Memcached List all Keys]]&lt;br /&gt;
&lt;br /&gt;
[[File:Apachelogo.gif|100px|right|alt=Apache How Tos]]&lt;br /&gt;
&lt;br /&gt;
===Apache/PHP===  &lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Deny access to my site with an .htaccess file]]&lt;br /&gt;
 --&amp;gt; [[Redirect site to www or non www]]&lt;br /&gt;
 --&amp;gt; [[Restrict POST request to Website]]&lt;br /&gt;
 --&amp;gt; [[Install Tomcat6 Server on Centos 6]]&lt;br /&gt;
 --&amp;gt; [[How to setup an SSL Certificate for Free]]&lt;br /&gt;
 --&amp;gt; [[Enable Apache to Create Core Dumps]]&lt;br /&gt;
 --&amp;gt; [[Enable php-fpm to create core dumps]]&lt;br /&gt;
 --&amp;gt; [[Debug PHP Enabling slow_log]] &lt;br /&gt;
 --&amp;gt; [[Block Bots by User Agent String]]&lt;br /&gt;
 --&amp;gt; [[Install mod_extact_forward - Show Real IP behind Proxy]]&lt;br /&gt;
 --&amp;gt; [[Install ionCube Loaders for Centos]]&lt;br /&gt;
 --&amp;gt; [[Install Zend Guard with PHP 5.3 on Centos]]&lt;br /&gt;
 --&amp;gt; [[Install Zend Guard 6.0 with PHP 5.4 on Centos]]&lt;br /&gt;
 --&amp;gt; [[Disable Mod_Security for a single vhost]]&lt;br /&gt;
 --&amp;gt; [[Hide PHP Version(X-Powered-By) in Headers]]&lt;br /&gt;
 --&amp;gt; [[Sessions are ending before MaxLifetime]]&lt;br /&gt;
 --&amp;gt; [[Apache mod_speling case insensitive urls issue]]&lt;br /&gt;
 --&amp;gt; [[Restrict access via htaccess via ipaddress]]&lt;br /&gt;
 --&amp;gt; [[Howto install mod_evasive with fail2ban]]&lt;br /&gt;
 --&amp;gt; [[Install the Latest version PHP on CentOS]]&lt;br /&gt;
 --&amp;gt; [[How to bypass .htpasswd for certain IPs Apache]]&lt;br /&gt;
 --&amp;gt; [[Clear mod_pagespeed cache ]]&lt;br /&gt;
 --&amp;gt; [[Install GeoIP for Apache and PHP]]&lt;br /&gt;
 --&amp;gt; [[How to block or allow countries using GeoIP and .htaccess]]&lt;br /&gt;
 --&amp;gt; [[How to disable mod_security per vhost]]&lt;br /&gt;
 --&amp;gt; [[Force HTTPS for entire website via htaccess]]&lt;br /&gt;
 --&amp;gt; [[Restrict Access to wp-login.php and xmlrpc.php]]&lt;br /&gt;
 --&amp;gt; [[The X-Frame-Options response header]]&lt;br /&gt;
 --&amp;gt; [[Install Xdebug with php-fpm per pool]]&lt;br /&gt;
 --&amp;gt; [[How to Enable Gzip Compression]]&lt;br /&gt;
 --&amp;gt; [[Enable Apache rewrite logging]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with .htpasswd/.htaccess]]&lt;br /&gt;
 --&amp;gt; [[How to Disable PHP Execution in Certain Directories]]&lt;br /&gt;
 --&amp;gt; [[Directory listing in htaccess. Allow, Deny, Disable, Enable Directory Listing in .htaccess]]&lt;br /&gt;
 --&amp;gt; [[What is the Cache-Control Header]]&lt;br /&gt;
[[File:Haproxy.png|100px|frameless|right|alt=Mysql Percona]]&lt;br /&gt;
&lt;br /&gt;
===HAProxy===&lt;br /&gt;
 --&amp;gt; [[What is HAProxy]]&lt;br /&gt;
 --&amp;gt; [[HAProxy vs Nginx]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Load Balancing]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Cluster Setup Example]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Docker]]&lt;br /&gt;
 --&amp;gt; [[HAProxy with Varnish SSL Termination Example]]&lt;br /&gt;
 --&amp;gt; [[HAProxy http2]]&lt;br /&gt;
 --&amp;gt; [[HAProxy GUI]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Install on Centos7]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Cloud Load Balancer]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Block by User-Agent]]&lt;br /&gt;
 --&amp;gt; [[HAProxy Restrict by IP Address]]&lt;br /&gt;
&lt;br /&gt;
[[File:Logo percona server new.png|100px|frameless|right|alt=Mysql Percona]]&lt;br /&gt;
&lt;br /&gt;
===Mysql/Percona===&lt;br /&gt;
 --&amp;gt; [[How to Optimize/Repair a Table]]&lt;br /&gt;
 --&amp;gt; [[MySQL - Check Which Query is Consuming Resources]]&lt;br /&gt;
 --&amp;gt; [[How to Set your MySQL Password]]&lt;br /&gt;
 --&amp;gt; [[Rest your MySQL Admin Password]]&lt;br /&gt;
 --&amp;gt; [[How to Convert Table to InnoDB]] &lt;br /&gt;
 --&amp;gt; [[How to install Percona Database Server]]&lt;br /&gt;
 --&amp;gt; [[How to Access the MySQL via Shell]]&lt;br /&gt;
 --&amp;gt; [[How to Add a User in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to Drop a User in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to Create and Delete a MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to Create a Table in MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to Create a MySQL Database Backup]]&lt;br /&gt;
 --&amp;gt; [[How to Import a MySQL Database]]&lt;br /&gt;
 --&amp;gt; [[How to update the max_connections setting in MySQL]]&lt;br /&gt;
 --&amp;gt; [[How to view a list of MySQL users and their privileges]]&lt;br /&gt;
 --&amp;gt; [[Save MySQL query results into a text or CSV file]]&lt;br /&gt;
 --&amp;gt; [[How to optimize a MySQL database using phpMyAdmin]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Varnish-cache-log.jpeg|100px|frameless|right|alt=Varnish How tos]]&lt;br /&gt;
&lt;br /&gt;
===Varnish Cache===&lt;br /&gt;
 --&amp;gt; [[Setup Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for Magento]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for Wordpress]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish for MediaWiki]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish - Multiple Domains]]&lt;br /&gt;
 --&amp;gt; [[Setup Varnish - Multiple Ipaddress]]&lt;br /&gt;
 --&amp;gt; [[Script to Clear a Page from Varnish Cache]]&lt;br /&gt;
 --&amp;gt; [[Varnish will not restart WHY?]]&lt;br /&gt;
 --&amp;gt; [[Warm up Varnish Script using Sitemap.xml]]&lt;br /&gt;
 --&amp;gt; [[Varnish How to redirect non-www URLs to www]]&lt;br /&gt;
 --&amp;gt; [[Install libvmod-header with Varnish]]&lt;br /&gt;
&lt;br /&gt;
[[File:Nginx-logo.png|100px|frameless|right|Install Nginx|alt=Nginx How tos]]&lt;br /&gt;
&lt;br /&gt;
===Nginx Web Server===&lt;br /&gt;
 --&amp;gt; [[Setup Nginx PHP FPM Percona Mysql]]&lt;br /&gt;
 --&amp;gt; [[Wordpress Ngnix Rewrite Rules]]&lt;br /&gt;
 --&amp;gt; [[Setup up Nginx Caching]]&lt;br /&gt;
 --&amp;gt; [[Nginx Magento vhost Configuration]]&lt;br /&gt;
 --&amp;gt; [[Basic HTTP Authentication with Nginx]]&lt;br /&gt;
 --&amp;gt; [[Protecting Folders with Nginx]]&lt;br /&gt;
 --&amp;gt; [[403 Forbidden Error Nginx - How to Solve]]&lt;br /&gt;
&lt;br /&gt;
[[File:Sword-of-Omens-Sword1.png|100px|frameless|right|alt=Brian Nelson]]&lt;br /&gt;
&lt;br /&gt;
===Other===&lt;br /&gt;
 --&amp;gt; [[How to add trusted root certificates]]&lt;br /&gt;
 --&amp;gt; [[Find:_10_Useful_Examples_of_Find]]&lt;br /&gt;
 --&amp;gt; [[Send email from PHP to a log file instead of sendmail]]&lt;br /&gt;
 --&amp;gt; [[Debugging Wordpress]]&lt;br /&gt;
 --&amp;gt; [[How to install Linux via USB]]&lt;br /&gt;
 --&amp;gt; [[Network Subnet Mask Cheat Sheet]]&lt;br /&gt;
 --&amp;gt; [[Linux Keyboard Shortcuts]]&lt;br /&gt;
 --&amp;gt; [[Setup a SSH Tunnel for Secure Browsing]]&lt;br /&gt;
 --&amp;gt; [[Install OpenSSH on Windows]]&lt;br /&gt;
 --&amp;gt; [[Install Qmail on a Fresh Centos Server]]&lt;br /&gt;
 --&amp;gt; [[Setup Qmail to Listen on port 587 for SMTP]]&lt;br /&gt;
 --&amp;gt; [[Qmail catch-all account with vpopmail]]&lt;br /&gt;
 --&amp;gt; [[Setup Incoming Email Pipe to Script for Qmail]]&lt;br /&gt;
 --&amp;gt; [[Qmail Control Files]]&lt;br /&gt;
 --&amp;gt; [[Install qmqtool for Qmail on Centos Server]]&lt;br /&gt;
 --&amp;gt; [[Rest Email Password for vpopmail]]&lt;br /&gt;
 --&amp;gt; [[How to check Used IP on your Home Network]]&lt;br /&gt;
 --&amp;gt; [[How to find GMAIL IPs to allow at Firewall]]&lt;br /&gt;
 --&amp;gt; [[Useful TCPDUMP commands]]&lt;br /&gt;
 --&amp;gt; [[Remove Email Block Lists]]&lt;br /&gt;
 --&amp;gt; [[How to disable qmail vpopmail email user]] &lt;br /&gt;
 --&amp;gt; [[Git Cheat Sheet - Git made easy]]&lt;br /&gt;
 --&amp;gt; [[Top Chmod Command Examples for Beginners]]&lt;br /&gt;
 --&amp;gt; [[Benchmarking and Load Testing with Siege]]&lt;br /&gt;
 --&amp;gt; [[Benchmarking and Load Testing with Apache Bench(AB)]]&lt;br /&gt;
 --&amp;gt; [[How do I find out more about socket files in /proc/fd]]&lt;br /&gt;
 --&amp;gt; [[How to Disable the wp-cron.php in WordPress]]&lt;br /&gt;
 --&amp;gt; [[How to delete mail queue in Postfix]]&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Top Command Line Games - Linux CLI Games]] &amp;lt;sub&amp;gt;Cause Linux can be fun&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Centos Oneliners]]&lt;br /&gt;
&lt;br /&gt;
 --&amp;gt; [[Bash Script to Check Memory with Email Alert when Low]]&lt;br /&gt;
 --&amp;gt; [[Bash Script to Check Site Code Status with Email Alert]]&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	</feed>