Andrew Scinto

Andrew Scinto


All Posts from Andrew Scinto

Cloud Apps Wordpress

WordPress Now In Cloud Apps

  WordPress is a free and open-source blogging tool and a content management system (CMS) based on PHP and MySQL.  Features include a open source plugins and a template system. WordPress was used by more than 23.3% of the top 10 million websites as of January 2015. WordPress is the most popular blogging system in use …

Linux

Simple Stateful Load Balancer with iptables and NAT

NOTE: To demonstrate how iptables can perform network address translation this how-to shows how to use it to implement a over-simplified load balancer. In practice we would use a daemon such as HAProxy allowing IP tables to check packets before forwarding them. Using the method presented in this tutorial packets get forwarded without going through …

Linux Security

Denial Of Service: iptables Defense

Servers sometimes get hit with what are know as DOS attacks. The offending IP address is usually readily available in the logs for the server being hit. If your SSH server is being hit with a bruteforce DOS the easiest thing to do is block the IP using iptables like so: # iptables -A INPUT …

Linux Security

Patching The Ghost Vulnerability

The Ghost vulnerability, also known as CVE-2015-0235, is an exploit in a library named glibc. This library is referenced by many applications which run on your server. The exploit is a bug which affects 2 pieces of code which are used to do a DNS lookup, which translates a hostname to an IP address. A …

FreeBSD Linux

Extract Tar Files to a Different Directory

Syntax Typical Unix tar syntax: tar -xf file.name.tar -C /path/to/directory GNU/tar syntax: tar xf file.tar -C /path/to/directory tar xf file.tar –directory /path/to/directory Example: Extract files to another directory In this example, I’m extracting $HOME/etc.backup.tar file to a directory called /tmp/data. First, you have to create the directory manually, enter:   mkdir /tmp/data To extract a …

Linux

Vi Commands 101

Cursor movement h – move left j – move down k – move up l – move right w – jump by start of words (punctuation considered words) W – jump by words (spaces separate words) e – jump to end of words (punctuation considered words) E – jump to end of words (no punctuation) …

MySQL

Monitoring MySQL

Monitoring MySQL servers can be difficult in a way that a novice won’t be able to monitor MySQL that easily. MySQL gives a comprehensive list of variables to check your server’s health and performance. 1. Check MySQL Status Yes, this is the first thing you should be looking at! It would not make sense to monitor your …

Email

Set Up Email for Thunderbird

This article will explain the steps on how you should properly install your email through Thunderbird. Question: Why would you want me to install the mailing system, Thunderbird. Answer: Thunderbird is a Free mailing service for anyone to use whether you have a Windows PC, a Mac, or a Linux box. Compared to Microsoft Outlook, paying for …

Wordpress

Enabling WP_DEBUG

  Enabling the WP_DEBUG function will notify you that something isn’t functioning correctly. Steps on how to enable WP_DEBUG are below: First: Go into your directory that contains WordPress: $ cd /usr/www/virtual/sample/www.sample.com/ Second: Now that you are in the right directory for WordPress. Please edit the PHP file called wp-config. $ pico wp-config.php Third: Look for the code below: /** * For …

Wordpress

WordPress: “Deprecated” Error

One of the most common situations when dealing with WordPress is ending up getting an message saying this below: Deprecated: Assigning the return value of new by reference is deprecated in /dir/ on line 111   Note: You must enable the WordPress WP_DEBUG function to view this error. It is IMPORTANT that you must enable this. Enabling the WP_DEBUG function …