Running Cachet - Open Source Status Page System - on Linux

Channel:
Subscribers:
14,500
Published on ● Video Link: https://www.youtube.com/watch?v=0Tn78hrl8Nc



Duration: 3:26
444 views
16


#Cachet #StatusPage #Linux

Full steps can be found at https://i12bretro.github.io/tutorials...

What is Cachet?
Cachet is a beautiful and powerful open source status page system. - https://github.com/CachetHQ/Cachet
 
Installation
   01. Log into the Linux device
   02. Run the following commands in a terminal window:
         update software respositories
         sudo apt update
         install available software updates
         sudo apt upgrade -y
         install prerequisites
         sudo apt install git openssl curl wget zip composer -y
         install Apache HTTPD and MySQL
         sudo apt install apache2 mariadb-server mariadb-client -y
         install PHP components
         sudo apt install php7.3 libapache2-mod-php7.3 php7.3-curl php7.3-tokenizer php7.3-ldap php7.3-cli php7.3-json php7.3-gd php7.3-mbstring php7.3-mysql php7.3-xml php7.3-zip php7.3-bcmath php7.3-fpm -y
         configure the MySQL database
         sudo su
         mysql_secure_installation
   03. Press Enter to login as root
   04. Type Y and press Enter to set a root password, type the password twice to confirm
   05. Type Y and press Enter to remove anonymous users
   06. Type Y and press Enter to disallow root login remotely
   07. Type Y and press Enter to remove the test database
   08. Type Y and press Enter to reload privilege tables
   09. Run the following command to login into MySQL:
         mysql -u root -p
   10. Authenticate with the root password set earlier
   11. Run the following commands to create the Cachet database and database user
         CREATE DATABASE cachet;
         GRANT ALL ON cachet.* to 'cachet_rw'@'localhost' IDENTIFIED BY 'C@ch3t!!';
         FLUSH PRIVILEGES;
         EXIT;
         exit
   12. Continue with the following commands:
         clone cachet from github
         sudo git clone https://github.com/cachethq/Cachet.git /var/www/cachet
         change directories to cachet
         cd /var/www/cachet
         create a copy of the sample .env file
         sudo cp /var/www/cachet/.env.example /var/www/cachet/.env
         edit the .env file
         sudo nano /var/www/cachet/.env
   13. Edit the following environment variables as needed
         APP_ENV=production
         APP_DEBUG=false
         APP_URL=http://localhost/cachet
         APP_TIMEZONE=America/New_York
         APP_KEY=
         DEBUGBAR_ENABLED=false
         DB_DRIVER=mysql
         DB_HOST=localhost
         DB_UNIX_SOCKET=false
         DB_DATABASE=cachet
         DB_USERNAME=cache_rw
         DB_PASSWORD=C@ch3t!!
         DB_PORT=null
         DB_PREFIX=null
         CACHE_DRIVER=database
         SESSION_DRIVER=database
         QUEUE_DRIVER=database
         CACHET_EMOJI=false
         MAIL_DRIVER=smtp
         MAIL_HOST=smtp.i12bretro.local
         MAIL_PORT=25
         MAIL_USERNAME=null
         MAIL_PASSWORD=null
         MAIL_ADDRESS=null
         MAIL_NAME="Cachet"
         MAIL_ENCRYPTION=null
         REDIS_HOST=null
         REDIS_DATABASE=null
         REDIS_PORT=null
         GITHUB_TOKEN=null
   14. Press CTRL+O, Enter, CTRL+X to write the changes to .env
   15. Continue with the following commands:
         set the owner of the cachet directory
         sudo chown -R www-data:www-data /var/www/cachet
         setup composer working directory
         sudo mkdir /var/www/.composer
         sudo chown -R www-data:www-data /var/www/.composer
         install dependencies with composer
         sudo -u www-data composer install --no-dev -o
         generate app key, type yes to confirm generating a new key
         sudo php artisan key:generate
         run cachet install, answer No and then Yes
         sudo php artisan cachet:install
         create cachet apache configuration
         sudo nano /etc/apache2/sites-available/cachet.conf
   16. Paste the following configuration into cachet.conf
         Alias /cachet "/var/www/cachet/public"
         ≪Directory /var/www/cachet/public≫
         Require all granted
         Options Indexes FollowSymLinks
         AllowOverride All
         Order allow,deny
         Allow from all
         ≪/Directory≫
   17. Press CTRL+O, Enter, CTRL+X to write the changes to cachet.conf
   18. Run the following command to enable the cachet site
         enable rewrite module
         sudo a2enmod rewrite
         enable the cachet site
         sudo a2ensite cachet
         restart the apache2 service
         sudo systemctl restart apache2
 
Cachet Web Installer
   01. Open a web browser and navigate to http://DNSorIP/cachet/setup
   02. The Cachet setup screen should be displayed
   03. Set the Cache, Queue and Session drivers to Database


....Full steps can be found on GitHub [link at the top]


Connect with me and others ###
★ Discord:   / discord  
★ Reddit:   / i12bretro  
★ Twitter:   / i12bretro  







Tags:
Browser Based
Cachet
Cachet Status Page
Debian
Free Software
Home Lab
Home Lab Ideas
Homelab
How To
Install Guide
Linux
MariaDB
MySQL
PHP
PHP Based
PHP Based Application
Self-Hosted
Self-hosted
Status Page
Tutorial
Ubuntu
Web Based
Web Based Tools
i12bretro