We are going to make an upgrade from OJS2.4.7.1 to OJS3.x. We would like to do that by making the parallel installation of OJS3. Once we tidy up this new, parallel installation we would then replace the old version with the new one. I assume such process should not pose any problem but I would like if somebody could confirm if my step-by-step reasoning below is correct:
Make a copy of an old database and the complete files_dir.
Download and decompress the OJS3.x package in the new folder
Copy config.inc.php and public/ folder from the old installation to the new one
Edit the config.inc.php and make the following modifications:
change the base_url to correspond to the new location
change database parameters
change files_dir to correspond to the new location
Upgrade OJS database by running a web-based script as instructed in documentation.
What I do not understand is what I need to do with config.TEMPLATE.inc.php? In the documentation a synchronization is mentioned but it is not clear to me.
Is the above procedure correct? I assume we would have then two copies of the same journal. The old copy would work normally and the new one we could work on and once we are satisfied with it just the replace the old copy. Did I forget or miss something?
Your steps look OK, I have upgraded several OJS installations same way. Note that during this upgrade process the âoldâ OJS has to be shut down, otherwise there can be changes not transferred to the new OJS.
The config.TEMPLATE.inc.php is just template/example of the config.inc.php file. No need to bother with it.
Thank you very much PrimoĹž!
I intend first to make one testing upgrade to learn the process and for Editors to get familiar with the new version. Once we are satisfied with it we will delete it and repeat the procedure once again with old version âshut downâ.
Best,
Zoran
FYI - the config.TEMPLATE.inc.php in OJS 3 will certainly contain new OJS directives not found in your 2.4 config file. You should go forward with the TEMPLATE as your new config.inc.php but merge in your database connection settings, base_url, and so on. Failing to do so may result in unexpected behaviour.
The config.TEMPLATE.inc.php from your old 2.4 installation can be completely ignored. No longer needed. The new config.TEMPLATE.inc.php that comes with OJS 3 becomes your new config.inc.php. Youâll then edit it and enter in the correct details for your database and such.
The config.TEMPLATE.inc.php file is never looked at by OJS when OJS is running. Itâs just there for your reference.
You have mentioned that you require a test new installation for editors to get used to before you completely switch over. By going the above route, you will not get a parallel installation, unless you set us a new subdomain or domain. For what you want to work, you need to create a new subdomain/domain and do it.
Also, you need to give a different SSID to the new site, otherwise session cookie mixup will happen.
And , it is good practice to ensure that your files_dir is OUTSIDE your OJS web folder.
Sorry for the delay. But I did not get a ping from the forum.
The session cookie name is part of the config.inc.php file. You can see it as the third item under General Settings. The default value is given below.
; Session cookie name
session_cookie_name = OJSSID
This may be changed by adding some character to it like OJSSIDNEW or similar to prevent session cookie mixup.