• Home
  • About 404TS
  • Contact

404 Tech Support

Where IT Help is Found

  • Articles
    • Code
    • Entertainment
    • Going Green
    • Hardware, Gadgets, and Products
    • Management
    • Network
    • News
    • Operating Systems
    • Security and Privacy
    • Software
    • System Administration
    • Talking Points
    • Tech Solutions
    • Web
    • Webmaster
  • Reviews
  • Media
    • Infographics
    • Videos
  • Tech Events
  • Tools
    • How do I find my IP address?
    • Browser and plugin tests
  • Get a Technical Consultation
You are here: Home / Articles / Software / Installing open source status page software Cachet on CentOS 7

Installing open source status page software Cachet on CentOS 7

2015-10-21 by Jason

Maintaining uptime of your core IT services is an important part of internal customer service. Even with heavy investments into infrastructure, there will inevitably be downtime. Communicating that outage, planned or not, is also important to customer service. A status page can provide a consistent location for your users to check. Informed users will find if an issue is already known or if they need to report the problem. This should allow the technical talent to focus on returning the service to operational status rather than answering the question of an ETA a dozen times.

For that reason, I began looking into status page software that would provide the service and templates for reported outages. I setup Cachet, a free and open source software that provides the status page service. While it has some rough edges, it’s certainly usable and would be an improvement over Twitter, emails, or whatever hodge-podge way is chosen to notify users of an outage that day.

RTFM

The documentation lacked a little in details for somebody that doesn’t do this every day but I was able to stumble through it and am writing them up here.

I setup a 1024MB VPS using Vultr running CentOS 7. Once the server was setup, I updated my domain’s DNS to point to the server and SSH change the root password through SSH.

The first step to getting in-line with the Cachet Installation documentation was to get the server ready with the pre-requisites:

You need at least PHP >= 5.5, Composer and the following PHP extensions installed to run Cachet:

php-mbstring
php-apcu
php-xml
php-pdo
php-intl
tokenizer
OpenSSL
A database driver for your DB, such as php-mysql, php-pgsql etc
We also advise using Git to download and pull down updates.

So, we need to install Apache, PHP, Composer, Git, MySQL, and PHP extensions on CentOS 7 before we even get to Cachet.

Prerequisites

We basically need a simple LAMP stack with some additional specifics. SSH into the server.

Update packages

yum update

Install Apache (you could use nginx if you would prefer)

yum install httpd

Set Apache to start automatically with the server

systemctl start httpd.service
 systemctl enable httpd.service

Allow http/https traffic through the firewall

firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload

Install MariaDB (MySQL replacement)

yum install mariadb-server mariadb

Set MariaDB to start automatically with the server

systemctl start mariadb
systemctl enable mariadb.service

Run a script that helps prompt for a secure MariaDB configuration, including setting the root SQL password

sudo mysql_secure_installation

Install PHP and the extensions (and getting the right versions)

rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install php56w php-mysql php-mbstring php-apcu php-xml php-pdo php-intl tokenizer OpenSSL
yum install yum-plugin-replace
yum replace --enablerepo=webtatic-testing php-common --replace-with=php56w-common

Install Composer

curl -sS https://getcomposer.org/installer | php -- --install-dir=bin --filename=composer

Install Git

yum install git

Setup

Login to MariaDB

mysql -u root -p
Provide root MySQL password when prompted

Create the database

CREATE DATABASE cachet;

Create the database user

CREATE USER 'statusdbuser'@'localhost' IDENTIFIED BY 'p@$$w0rd!';

Give the database user permissions to the database

GRANT ALL ON cachet.* TO 'statusdbuser'@'localhost' IDENTIFIED BY 'password';

Enable the new permissions

FLUSH PRIVILEGES;
exit

Download Cachet to your server

cd /var/www
git clone https://github.com/cachethq/Cachet.git
cd Cachet
git tag -l
git checkout v1.2.1

(Replace v1.2.1 in the last line with whatever the latest version is from the Cachet releases on GitHub)

Configure Cachet – Uncomment the relevant lines and configure the database and other settings like email

cp .env.example .env
nano .env

Run Composer

composer install --no-dev -o

Migrate the databases and generate a security key

php artisan migrate
php artisan key:generate

Add the Virtual Host

nano /etc/httpd/conf.d/vhost.conf

Add the following to the configuration file you just opened:

<VirtualHost *:80>
 ServerName compstatus.com # Or whatever you want to use
 ServerAlias compstatus.com # Make this the same as ServerName
 DocumentRoot "/var/www/Cachet/public"
 <Directory "/var/www/Cachet/public">
 Require all granted # Used by Apache 2.4
 Options Indexes FollowSymLinks
 AllowOverride All
 Order allow,deny
 Allow from all
 </Directory>
</VirtualHost>

Restart Apache

apachectl restart

We should be all done and be able to visit our site in a browser and run through the first-run configuration but I found myself receiving a blank page when visiting the site, so some permissions had to be adjusted.

chmod -R gu+w storage
chmod -R guo+w storage

You should now be able to visit the site and complete the simple first-run configuration. Follow the prompts to configure the site basics and create your first admin user. After that, you can login to the site dashboard at yoururl.com/dashboard and finish the site setup so that it works for your organization. You can add users, service components, customize colors and CSS, and enter incidents and scheduled maintenance for those service components.

You can see how your site could look from the screenshot below or by visiting the Cachet demo page.

cachet_status

Filed Under: Software, Webmaster

Trending

  • iRiver Story HD Google eBooks-Integrated eReader Coming to Target
    In Tech Solutions
  • Microsoft Baseline Security Analyzer
    In Security and Privacy, Software, System Administration
  • Adding two-factor authentication to your website
    In Security and Privacy, Webmaster

Latest Media Posts

Find Out Where To Download SNES ROMs

Find Out Where To Download SNES ROMs

Multifunctional Video Conversion Tools – Wondershare Video Converter

Multifunctional Video Conversion Tools – Wondershare Video Converter

  • Popular
  • Latest
  • Today Week Month All
  • SOLVED: “This modification is not allowed because the selection is locked.” SOLVED: "This modification is not allowed because the selection is locked."
  • Increase IIS Private Memory Limit to improve WSUS availability Increase IIS Private Memory Limit to improve WSUS availability
  • What is the AllJoyn Router Service on Windows 10? What is the AllJoyn Router Service on Windows 10?
  • How to ‘Unblock’ multiple files at a time with PowerShell How to 'Unblock' multiple files at a time with PowerShell
  • Troubleshooting time synchronization for domain-joined computers Troubleshooting time synchronization for domain-joined computers
  • 3d rendering circuit cloud for cloud computing technology What Is An Ellucian Migration And Is It Important?
  • Remote monitoring of text messages on a mobile device Remote monitoring of text messages on a mobile device
  • ​Great Tech Tips For Remote Workers ​Great Tech Tips For Remote Workers
  • Ideas That Will Free up MacBook Hard Drive Ideas That Will Free up MacBook Hard Drive
  • Advantages Of Video Conferencing For Small Businesses Advantages Of Video Conferencing For Small Businesses
Ajax spinner

Elevator Pitch

404 Tech Support documents solutions to IT problems, shares worthwhile software and websites, and reviews hardware, consumer electronics, and technology-related books.

Subscribe to 404TS articles by email.

Recent Posts

  • What Is An Ellucian Migration And Is It Important?
  • Remote monitoring of text messages on a mobile device
  • ​Great Tech Tips For Remote Workers

Search

FTC Disclaimer

404TechSupport is an Amazon.com affiliate; when you click on an Amazon link from 404TS, the site gets a cut of the proceeds from whatever you buy. This site also uses Skimlinks for smart monetization of other affiliate links.
Use of this site requires displaying and viewing ads as they are presented.

Copyright © 2021 · Magazine Pro Theme on Genesis Framework · WordPress · Log in