Automate OctoberCMS Updates with a Script

This tutorial will show you how to Update one or multiple OctoberCMS Websites on a server with an automated bash / shell script. October CMS is one of the best CMS's on the market today as it is based on PHP and Laravel. If you are a web designer and host your sites on a VPS server such as AWS, Digital Ocean, Vultr, or Linode this script will make your life much easier.

Thinking of hosting your own server in the cloud such as Digital Ocean? Click on this link for a $100 - 60 day credit! Signup and Get a $100 Credit!

The OCTOBER_CMS_UPDATE script is hosted on our Clustered Networks github page and is free to download, use and modify to your needs and requirements.



october_cms_update.sh

OctoberCMS Auto Update (Bash) Script by ClusteredNetworks.com Performs an automatic update of your OctoberCMS Websites on a server. Simply modify, add or remove the proper paths and lines to the script with the path(s) to your website(s) on your server. make the script executable (chmod +x) and run a cronjob

Usage:

  1. Pull up a terminal or SSH into the target server.

  2. Logon as root

sudo -i
  1. Download the installer script.
wget https://raw.githubusercontent.com/clusterednetworks/october_cms_update/master/october_cms_update.sh
  1. Edit the configuration options at the beginning of the script to match your environment prior to executing.
#----------------------------------------
# OPTIONS
#----------------------------------------
PHP_PATH='/usr/bin/php'
PHP_UPDATE='artisan october:update'
#----------------------------------------
  1. Make the script executable
chmod +x october_cms_update.sh
  1. Run the script to ensure there are no errors.
./october_cms_update.sh
  1. Setup a cronjob to run daily or weekly (this example cronjob will run every friday at 23:00 hours )
0 23 * * 5 /etc/october_cms_update.sh >/dev/null 2>&1

Clustered Networks

Located in Edmonton, AB Canada, Clustered Networks was Incorporated in 2001 and has offered Network / Internet and IT Consulting services for over 20 years. We offer personalized service! Call Us Today! - Click Here for our Contact Info

#octobercms #update #script

Posted in Linux Network Admin Tips, Network Security Tips, Tech How To on Jun 18, 2021