How to (Safely) Add Code to functions.php in WordPress

How to Add Code to functions.php in WordPress

Scouring the Internet for solutions to WordPress problems will inevitably bring you to sites that ask you to insert some piece of code or the other into functions.php. If you’re new to WordPress, this can be a confusing thing. By default, WordPress doesn’t have any obvious interface for you to insert code. And besides…copy-pasting stuff into your installation is dangerous. In this tutorial, we’ll show you how to safely install code into WordPress’s functions.php file. Let’s go.

Read More

How To Install WordPress with LAMP Stack on Ubuntu 16.04

How to Install WordPress with LAMP stack on Ubuntu 16.04

WordPress is one of the world’s most popular content management systems (CMS). It is a free and open-source platform, which is used by millions of people for running blogs, business websites, e-commerce stores and much more.

It is a powerful and very easy to use website creation tool. With a large variety of plugins and themes to choose from, it provides very high customization options and almost endless possibilities for you to develop and make a unique, one of a kind website.

In this tutorial, we will show you how to install the latest WordPress version on your Ubuntu 16.04 VPS. We will also show you how to install and configure a fully functional LAMP stack, consisting of Ubuntu 16.04 operating system, Apache web server, MySQL database server and PHP 7. Let’s get started.

Read More

Basic MySQL Database Administration on Linux VPS – Part 2

Basic MySQL Database Administration on Linux VPS

In this tutorial, we will show you how to insert into and manipulate data in your tables. To find out how to create and manage databases and tables you can check out our previous tutorial: Basic MySQL database administration on a Linux VPS. If your Linux VPS is up and running and has MySQL installed, then you are good to go.

Read More

How to Schedule Cron Jobs in cPanel

How to Schedule Cron Jobs in cPanel

A cron job is a Linux command that’s executed at regular intervals. These “jobs” can be scheduled via the command line, but it’s much easier to do it via the cPanel GUI interface. cPanel also conveniently shows the number of existing cron jobs, and it can also send the output of the command via e-mail. In this tutorial, we’ll show you how to schedule cron jobs easily and efficiently.

Read More

How to set up Apache Virtual Hosts on Debian 9

How to set up Apache Virtual Hosts on Debian 9

In this tutorial, we will show you how to set up Apache virtual hosts on Debian 9. Apache is a free and open source web server. It is the most popular and widely used web server in the world, and it is commonly used in Linux servers. It is developed and maintained by Apache Software Foundation, over half of all servers around the world are running this fast and secure web server.

Read More

Serve Static Content From a Cookieless Domain

serve static content from a cookieless domain

fixing serve static content from a cookieless domainWe’ll show you how to fix serve static content from a cookieless domain error. When using a website analyzer tool such as PageSpeed Insights, GTMetrix, Pingdom, or Uptrends, a warning will often appear that says “Serve Static Content From a Cookieless Domain”. What this means is that your web server is setting cookies  – this causes all future HTTP requests to include this cookie, creating unwanted network traffic. This in turn only slows down the speed of your website when a user tries to access it. If you need your website to be as fast as possible, switching to a cookieless domain is the way to go. A cookieless domain does not accept any cookies from any browsers, keeping the overall network traffic lower. The goal is to serve all static content – such as images, javascript, CSS, and more – all through a static, cookieless domain, which helps improve the speed at which these resources are downloaded.

Read More

Enable Proxy Settings for Yum Command on CentOS 7

enable proxy settings for yum command on centos 7
enabling proxy settings for yum command on centos

In this article, we will show you how to enable proxy settings for yum command on CentOS 7. Yum is a package management tool that works with RPM packages. It is available on RedHat Enterprise Linux, CentOS, and older versions of Fedora, and it is the most convenient way to handle OS packages and their dependencies on these operating systems.

When a server can only be accessed through proxy servers, you need to configure yum to use a proxy server so you can install a RPM package, or update the currently installed yum packages.
To configure a proxy server so the system user can access and use yum commands is a fairly easy and straight-to-the-point task, and it shouldn’t take more than 5 minutes to configure it. Let’s get started.

Read More

What Is WordPress XML-RPC and How to Stop an Attack

What Is WordPress XML-RPC and How to Stop an Attack

 

xml-rpc server accepts post requests only

XML-RPC is a remote procedure call protocol that allows anyone to interact with your WordPress website remotely. In other words, it’s a way to manage your site without having to log in manually via the standard “wp-login.php” page. It’s widely used by plugins, most famously by Automattic’s own Jetpack plugin. These days, however, the word “XML-RPC” has gotten a bad name. In this tutorial, we will explain what is WordPress XML-RPC and how to stop an XML-RPC attack on your WordPress website. 

Read More