You are viewing the PKP Support Forum | PKP Home Wiki

Upgrade blues: no shell access

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Upgrade blues: no shell access

Postby koantum » Tue Jan 01, 2008 7:44 pm

To upgrade my OJS installation, I am supposed to run the following command from the OJS directory:

$ patch -p1 < ojs-2.1.1-0_to_2.2.0.patch.gz

I asked my host (Host Excellence) how to do this and received the following response:

As we don't provide shell access to the web servers, you should upload and decompress archive file inside of [said folder] and run installation through the browser(type http://.../ojs-2.1.1/somescript.php for example).

Is there a "somescript.php" that I could upload and run, and that does the patching? Or do I need to upload the entire installation package for 2.2.0 instead of the patch, and run the script included in the package?

Many thanks in advance for your patience with this digitally challenged individual.
Posts: 25
Joined: Tue Feb 20, 2007 8:01 pm
Location: Pondicherry, India

Re: Upgrade blues: no shell access

Postby jmacgreg » Wed Jan 02, 2008 3:15 pm

Hi koantum,

You can upgrade OJS in a few different ways. If you haven't made any major changes to your own OJS code, you should be able to do the following with minimum fuss. Please note that these instructions are also found in docs/UPGRADE. For the database upgrade section, just ignore the command-line option (step 1).

Also, make sure that you back up both your OJS installation and database before upgrading.

It is also possible to upgrade by downloading the complete package for the
latest release of OJS:

- Download and decompress the package from the OJS web site
- Make a copy of the config.inc.php provided in the new package
- Move or copy the following files and directories from your current OJS
- config.inc.php
- public/
- Your uploaded files directory ("files_dir" in config.inc.php), if it
resides within your OJS directory
- Replace the current OJS directory with the new OJS directory, moving the
old one to a safe location as a backup
- Be sure to review the Configuration Changes section of the release notes
in docs/release-notes/README-(version) for all versions between your
original version and the new version. You may need to manually add
new items to your config.inc.php file.

Upgrading the OJS database

After obtaining the latest OJS code, an additional script must be run to
complete the upgrade process by upgrading the OJS database and potentially
executing additional upgrade code.

This script can be executed from the command-line or via the OJS web interface.

1. Command-line

If you have the CLI version of PHP installed (e.g., /usr/bin/php), you can
upgrade the database by running the following command from the OJS directory:

$ php tools/upgrade.php upgrade

2. Web

If you do not have the PHP CLI installed, you can also upgrade by running a
web-based script. To do so:

- Edit config.inc.php and change "installed = On" to "installed = Off"
- Open a web browser to your OJS site; you should be redirected to the
installation and upgrade page
- Select the "Upgrade" link and follow the on-screen instructions
- Re-edit config.inc.php and change "installed = Off" back to
"installed = On"

Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am

Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot] and 1 guest