Rootree
Github Logo

Upgrading Snipe-IT

Github Logo

Prerequisites

  • Non-root SSH access to the VPS. The script will not run as the root user.
  • Access to the php.ini file the site uses (typically via MultiPHP INI Editor in WHM)

Steps

  1. Connect via SSH and navigate to the site directory

  2. Backup the customized configuration files.

    cp .htaccess .htaccess.backup
    cp .env .env.backup
  3. In the relevant php.ini file (currently ea-php83): Comment out the following line, and save.

    disable_functions = show_source, system, shell_exec, exec, passthru, popen, proc_open
  4. Back in the site directory, run

    php upgrade.php
  5. Once complete, un-comment the line in php.ini and save.

  6. Copy the backed-up .env and .htaccess back.

    cp .htaccess.backup .htaccess
    cp .env.backup .env