Prerequisites
- Non-root SSH access to the VPS. The script will not run as the root user.
- Access to the
php.inifile the site uses (typically viaMultiPHP INI Editorin WHM)
Steps
-
Connect via SSH and navigate to the site directory
-
Backup the customized configuration files.
cp .htaccess .htaccess.backup cp .env .env.backup -
In the relevant
php.inifile (currently ea-php83): Comment out the following line, and save.disable_functions = show_source, system, shell_exec, exec, passthru, popen, proc_open -
Back in the site directory, run
php upgrade.php -
Once complete, un-comment the line in
php.iniand save. -
Copy the backed-up
.envand.htaccessback.cp .htaccess.backup .htaccess cp .env.backup .env