What “backup utility in OJS” are you using? I’m not aware of anything built in for OJS 2.x, but I might be missing something.
I think Alex was describing copying the OJS 2.x files from the old server to the new server, and then upgrading the new server to OJS 3.x. I don’t think he was describing having OJS2 and OJS3 live in the same folder.
If you really wanted to, you could have an OJS 2.4.8-5 and an OJS 3.1.x install on the same server. Presumably this would be for testing. To have OJS2 and OJS3 live side-by-side, you would have two copies of each of:
- the OJS source code
- the OJS private files
- the OJS database
This might look like:
/var/www/html/ojs (ojs 3.x source files)
with config.inc.php files_dir pointing to "/var/www/ojs-data"
and config.inc.php database name pointing to "ojs"
/var/www/ojs-data (ojs 3.x data files)
/var/www/html/ojs2 (ojs 2.x source files)
with config.inc.php files_dir pointing to "/var/www/ojs2-files"
and config.inc.php database name pointing to "ojs2"
If you just want to move OJS 2.4.8-1 to OJS 2.4.8-5 on a new server, what you would do is:
- Install OJS 2.4.8-5 source code in /var/www/html/ojs .
- Copy the old files_dir from the old server to the new server (probably /var/www/ojs-data)
- Copy the public files from the old server (/var/www/vhosts/wmpllc.org/httpdocs/ojs-2.4.2/public) to the new server (/var/www/html/ojs/public/)
- Reinstall any non-standard plugins on the old server (/var/www/vhosts/wmpllc.org/httpdocs/ojs-2.4.2/plugins) within the new server (/var/www/html/ojs/plugins/)
- Copy the settings from your old config.inc.php into your new config.inc.php. Note that any setting which references server paths will possibly change. Certainly
files_dir, probably others in the
[cli] sections. If changing hosting providers and using SMTP, these settings will also change.
- Export or backup the old database to a file, and then import it to the new server. This may require adding a new database user on the new server, and changing settings in config.inc.php.
- Double check all file permissions for your new host.
- Run the
tools/upgrade.php upgrade command (or run the upgrade in the browser).