Linux

Running PHP 7.0 as one of multiple PHP versions on CentOS 7 using Virtualmin

In connection to my post Running multiple PHP versions on CentOS 7 using Virtualmin, this guide will show how to install additional PHP 7.0 version on CentOS 7 by using the Software Collections and have Virtualmin detect and use it.

Here are the steps:

  1. Login as root to your server's console terminal.

  2. Install the CentOS Linux Software Collections release file:

          
    yum install centos-release-scl
          
        
  3. Install the PHP package:

Solution to PHP script at home page is downloaded instead of executed

The issue is only at the website home page's PHP script has the download behaviour but the rest of the website pages' PHP script run normally. In this article will show two solutions. This issue is very hard to debug because there are no helpful logs that will give hint on solving this issue. Actually, I was debugging a "Permission denied" issue and the fixes I tried to apply to this resulted to our main topic issue. The web server setup: Nginx as reverse proxy to Apache and under a web hosting control panel.

Tags

Setup alternative Twitter Bootstrap based Munin template

The Munin's generated web pages are very old fashioned and dull. Its design uses tables with small text and too much spaces. This guide will show how to change the Munin's template and should be continuation of Setup Munin on CentOS 7 with nginx. There will be two alternative Munin 2.x templates will be shown here:

1. Munin Dynamic Template

This alternative template uses jQuery and Twitter Bootstrap for Munin 1.x and 2.x versions that enhanced user experience and improve web pages' appearance. The following are the steps to setup this template:

Installing Monit to monitor your server running CentOS 7 with nginx

Monit can manage and monitor processes, programs, files, directories and filesystems of your UNIX server for you. You can program Monit to execute action for events like: service stops running or its using too much CPU or a host is unreachable. The following steps are tested running on my Linode server running Centos 7 64-bit. It is assumed that nginx is already installed in your system. If not, please follow this guide.