I have found the recent ghost upgrades quite painless but there have been few hiccups for last two times so I kept a record of what helped and it is as listed below:
If after this step, there are any errors or an indication to update ghost-cli, following command should be used.
sudonpminstall-gghost-cli
After this if there are issues accessing the blog over internet, we may need to do a bit of checks. Logical sequence is to first check that access for all folders is right and proper. If it needs to be updated, command to be used is:
##Change Directory to ghost installcd/var/www/html/ghost
##Stop the ghost serverghoststop
##Change port to another numbernanoconfig.production.json
##Change directory apache2 servercd/etc/apache2/sites-available/
##Open the ghost.conf file and change the localhost port to same ##number that was changed in config.production.jsonsudonanoghost.conf
##Open the ghost-le-ssl.conf file and change the localhost port ##to same number that was changed in config.production.jsonsudonanoghost-le-ssl.conf
##Disable and enable the conf files on apache.sudoa2dissiteghost.confghost-le-ssl.conf
sudoa2ensiteghost-le-ssl.confghost.confsudoserviceapache2reload##Finally change directory to your ghost install ##and start ghost server.cd/var/www/html/ghost
ghoststart