Инструкция по обновлению OkayCms любой версии со стандартным шаблоном дизайна.

Categories

  PREPARATORY WORK

1. First you need to know your version. To do this, go to the admin panel and see our version in the footer.

Example:

2. When we found the version, go to https://github.com/OkayCMS/Okay

  There we will see the latest existing version at the moment:

3. Open the folders and files that have changes after our version (in this case it costs 2.1.3, look at the changes 2.1.4)

 

and open the files that have changes:

 

WORKING WITH DB

1. Go to the site database and make a dump.

 

2. After that, look at the github file update_2.1.4.sql

ATTENTION!!! When updating OkayCMS, only files of the following type are used:

update_VERSION NUMBER.sql. (in this case u pdate_2.1.4.sql )

okay_clean.sql CAN NOT be used! Erase yourself all the values from the database.

Copy the contents of the file u pdate_2.1.4.sql

then in PHPmyAdmin insert the code into the SQL field and execute the SQL query.

EVERYTHING, the database has been updated. A database dump is necessary in order to restore it if something goes wrong.

 

UPDATING CMS FILES

1. We go to the git and look at which files and folders the changes were made, and remember them.

2. We go to our website via FTP (you can use filezilla), after which we begin to download the files that were updated one by one (it is convenient to do this in folders).

  Files that need to be changed are downloaded in this folder.

3. Go to each file on github that has changed, copy the code and compare it with the code of our version, look for differences, fix them and upload the changed files to the server.

  In order to make it convenient to see the differences, you can open the files in phpStorm, right-click on the code and click compare with clipboard and the comparison window will open.


After all the files in the folders are updated, your CMS will be one version newer.

No reviews yet
Your commentary will be the first :)
Write your comment
log in
Download OkayCMS
version 4.5.0
Subscribe to the newsletter
You will receive a selection of useful articles on working with the site on OkayCMS, discounts on modules and templates