Skip to main content

How to update SmartCJ to latest version via SSH

run following commands in SSH

cd /path_to_scj/admin
env php update.php

Multidomain Update
You can create a file with all your domains

cd /path_to_domain/scj/admin; env php update.php
cd /path_to_domain2/scj/admin; env php update.php

and so on and run it in SSH

This way you can update all domains at once.

Note: update script doesn’t overwrite index.php or any other files at the root of your domain. So you have to copy index.php (if you use it). If you don’t want to do it each time you have 2 options:

add to something like “cp ../cgi/index.php ../../index.php ”
or create a symlink to original scj/cgi/index.php

Update rollback
There’s no built-in update rollback. The only chance is if you have created backup. Note, if you just restored mysql db – it won’t help caz you still have the same files.