Below content is copy-pasted from playSMS Book Project.
We have 9 steps to follow to successfully upgrade an installed unmodified playSMS version 0.9.9.2 to 1.0.
Follow them correctly and in order.
-
Stop current playSMS daemon
playsmsd stop playsmsd check
-
Backup everything related to installed playSMS 0.9.9.2
Backup playSMS database:
-
playSMS DB as SQL file, example DB name is
playsms
:mysqldump -u root -p --add-drop-table playsms > playsms.sql
Note that option
--add-drop-table
above is important, do not miss it.
Backup playSMS files and folders:
- playSMS daemon scripts at
/usr/local/bin/
- playSMS daemon config at
/etc/playsmsd
- playSMS files at web folder
/var/www/playsms
WARNING:
- Backup process is very important
- Do not continue if you have any hesitation
- Ask a lot if you have doubt
- You must make sure that you know how to restore them
-
-
Remove all old playSMS files at web folder
cd /var/www/playsms rm -rf *
WARNING:
- Prior to running above
rm -rf *
command you must make sure that you have the backup - And also make sure that you type the command correctly in the correct location
- Prior to running above
-
Install playSMS version 1.0 in the same server with the same DB and the same web folder
playSMS version 1.0 installation manual is available from this topic.
-
Stop playSMS daemon
playsmsd stop playsmsd check
-
Re-insert your backup playSMS DB sql file (DB sql file dump from previous installation) to the same DB
mysql -uroot -p playsms < playsms.sql
-
Upgrade DB. Get upgrade SQL file from GitHub and re-insert it to DB.
wget -c https://raw.githubusercontent.com/antonraharja/playSMS/master/db/playsms-upgrade_0.9.9.2_to_1.0.sql mysql -uroot -p playsms < ./playsms-upgrade_0.9.9.2_to_1.0.sql
-
Start playSMS daemon
playsmsd start playsmsd check
-
Verify installation after upgrade