Tutorials

How To Install and Enable Alternative PHP Cache (APC) on CentOS

php-logo

In this tutorial we will show you how to install and configuration of Alternative PHP Cache (APC) on your CentOS server. For those of you who didn’t know, The Alternative PHP Cache (APC) is a free, open, and robust framework for caching and optimizing PHP intermediate code. It’s an PECL extension which shares the packaging and distribution system with its sister, PEAR. In this post, i will s...

How To Install Nginx With ngx_pagespeed on CentOS

For those of you who didn’t know, PageSpeed (ngx_pagespeed) is a Nginx module created by Google to help Make the Web Faster by rewriting web pages to reduce latency and bandwidth. For the installation, we will need to compile nginx from souce with the PageSpeed module, as Nginx doesn’t support Dynamic module loading (DSO), unless you want to build your own rpm or deb files. This article assu...

How To Fix Yum Duplicate Packages or Broken Dependencies

idroot-ssh-logo

For those of you who didn’t know, Yum is a package management tool for installing, updating and removing rpm packages on CentOS systems. When you try to install a package with yum command, you may encounter errors for various reasons. In this post, I will describe under what situations yum errors can occur, and explain how to fix yum errors. Fix Yum Duplicate Packages or Broken Dependencies...

How To Install XCache for PHP on CentOS

php-logo

For those of you who didn’t know, XCache is a open-source opcode cacher, which means that it accelerates the performance of PHP on servers. It optimizes performance by removing the compilation time of PHP scripts by caching the compiled state of PHP scripts into the shm (RAM) and uses the compiled version straight from the RAM. This will increase the rate of page generation time by up to 5 tim...

How To Test Internet Connection Speed via Command Line

Speed-test-CLI

Speedtest.net is a pretty good place to check your internet speeds. But there is an even simpler way. Using the speedtest-cli command line app, you can actually check your current broadband speeds via Terminal. For those of you who didn’t know, speedtest-cli is a simple CLI client written in Python for measuring bidirectional Internet bandwidth by using Speedtest.net infrastructure. It works w...

How To Switch PHP-FPM Listen On Unix Socket

Here is how you can switch PHP-FPM to listen on a unix socket rather than a TCP socket. This guide assumes you have already installed a LEMP stack as shown in Install LEMP on Centos. Switch PHP-FPM Listen On Unix Socket Step 1. First, edit the file at /etc/php-fpm.d/www.conf and find this block: [crayon-5f33b86907843207257624/] Step 2. Next, let's create a file at /etc/nginx/conf.d/ name...

How To Install Fail2Ban on CentOS

Fail2Ban-centOS

In this tutorial we will show you how to install Fail2Ban on CentOS server. For those of you who didn’t know, Fail2ban it is a security based application for your Unix based server. The fail2ban service is commonly used to protect your SSH and FTP from unauthorized connection. Fail2ban runs as a daemon that uses python scripts to parse log files for system intrusion attempts and adds a custom ...

How To Install Lighttpd on CentOS

In this tutorial we will show you how to install and configuration of Lighttpd on your CentOS server. For those of you who didn’t know, Lighttpd is a fast and secure web-server which has been optimized for high-performance environments. With a small memory footprint compared to other web-servers, effective management of the cpu-load, and advanced feature set (FastCGI, SCGI, Auth, Output-Compre...

How To Setup a NGINX Virtual Host

In this tutorial we will show you how to Setup a NGINX Virtual Host. Virtual hosts such as nginx are used for running two or more domains or websites using just one server which you can learn more about in this hosting fundamentals course. Here’s a brief tutorial that shows you how to create a virtual host or server block on Nginx web server. This guide assumes that you’ve been following alo...

How To Fix 504 Gateway Time-out on Nginx

In this tutorial we will show you how to fix 504 gateway time-out on Nginx web server on Linux server. If you run a Nginx web server you may have already encountered the annoying 504 Gateway Time-out errors. This is pretty common error, are generated most probably by the PHP max execution time limit or by the FastCGI read timeout settings. This article assumes you have at least basic knowledge...