You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UPDATE.txt
+26-6Lines changed: 26 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,6 @@ Scalar is a PHP and MySQL application built with CodeIgniter.
7
7
***
8
8
This document assumes that you have a working copy of Scalar operating on your server, and that you wish
9
9
to update to the most recent Scalar release. If you wish to install Scalar from scratch please see INSTALL.txt.
10
-
***
11
-
12
-
***
13
-
A note on Scalar releases:
14
10
Of course, you can always update your Scalar install from the most recent build on GitHub. However,
15
11
sometimes bugs can be introduced by commits to GitHub that haven't yet been verified by Scalar's development
16
12
team. For this reason we keep checkpoints ("releases") of Scalar using GitHub Releases. Details below.
@@ -41,9 +37,33 @@ date that the codebase assumes that the update exists).
41
37
ANY UPDATE TO SCALAR 2.1 FROM ANY PREVIOUS VERSION INVOLVES A NEW SET OF INSTRUCTIONS!
42
38
***
43
39
44
-
INSTRUCTIONS FOR UPDATE TO SCALAR 2.1 FROM ANY PREVIOUS SCALAR VERSION:
40
+
INSTRUCTIONS FOR UPDATING TO SCALAR 2.1 FROM ANY PREVIOUS SCALAR VERSION:
45
41
46
-
(These instrucitons are pending; instructions will be written when the new release is made.)
42
+
1) Extract the release ZIP file into a NEW folder; make sure that .htaccess is visible or transferable in the root folder so it doesn’t get left out
43
+
3) Optional: open ‘codeigniter.php’ in the NEW root folder and change ‘production’ to ‘development’, to display PHP errors during development
44
+
2) Copy ‘system/application/config/local_settings.php’ from the existing LIVE folder location to its corresponding NEW location
45
+
4) Do not copy any other config files; rather, copy values kept in the files in the existing LIVE folder to the files in the NEW folder. Unless you’ve made a lot of changes these are likely the only values you’ll need to migrate:
5) Optional: edit .htaccess in the existing LIVE root folder, and remove the “#” comment characters that prepend the two lines under “# To route all requests to a maintenance page, uncomment these lines”, then save; this will temporarily make Scalar unavailable, routing all requests to maintainance.html.
57
+
6) Delete the “system” folder from your existing IVE root folder (or, to be safe, rename the system folder to “system.bak”)
58
+
7) Copy the NEW “system” folder to the existing LIVE root folder
59
+
8) Overwrite the ‘codeigniter.php’ in the existing LIVE root folder with the ‘codeigniter.php’ in the NEW root folder
60
+
9) In Scalar’s MySQL database, change the ‘ip_address’ field in ‘scalar_db_sessions’ to VARCHAR(45), or simply run this SQL statement:
61
+
ALTER TABLE scalar_db_sessions CHANGE ip_address ip_address varchar(45) default '0' NOT NULL
62
+
10) Optional: edit .htaccess in the LIVE location again; add the “#” comment characters back to the two lines under the maintenance comment; saving will bring Scalar back from being unavailable
63
+
11) Check https://github.com/anvc/scalar/wiki/Changes-to-config-files-over-time to see if any other changes to the database or local_settings.php are needed
64
+
12) Check to make sure Scalar is working properly. If so, delete ‘system.bak’ (if applicable). Enjoy!
65
+
Note: you may need to change the permissions off system/application/logs so that CodeIgniter can write log files if you have them enabled in config.php.
66
+
Note: you’ll need to reinstall the import/export transfer tool: download it from https://github.com/Michael628/scalar-book-transfer-tool and place in a new folder ‘transfer’ at system/application/plugins/transfer
47
67
48
68
INSTRUCTIONS FOR UPDATING ANY SCALAR VERSION BEFORE 2.1 TO ANY OTHER SCALAR VERSION BEFORE 2.1:
0 commit comments