OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



use of Phar versus Tar for patches

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
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

use of Phar versus Tar for patches

Postby radjr » Wed Feb 13, 2013 9:59 pm

WE have OJS .2.3.8 and want to patch it to the latest version. The instructions call for TAR but that is not available on a windows platform. Can we use the PHAR command and change the scripts for patching? That brings the question...is it better to host this on a linux platform versus a virtual windows platform? The windows platform works great so far. Thanks in advance for any help. Cheers!
radjr
 
Posts: 48
Joined: Thu Jan 17, 2013 1:19 pm

Re: use of Phar versus Tar for patches

Postby asmecher » Thu Feb 14, 2013 8:32 am

Hi radjr,

Tar is available for windows -- just google "tar for windows" -- all you have to do is configure config.inc.php with its location. I'm not familiar with phar, but if it's compatible with the same command-line options as tar, you can use it instead.

A windows server should be fine; anecdotally we've heard that it performs a little slower than Linux because of the characteristics of the NTFS filesystem, but unless you're seeing heavy load (and there are lots of other options for optimization that could come before a platform change) you should be fine.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 7710
Joined: Wed Aug 10, 2005 12:56 pm

Re: use of Phar versus Tar for patches

Postby Peacemaker » Wed Jul 31, 2013 9:10 am

Hi,

our hosting supports only phar. Can anybody help me how to configure phar in config.inc??? I'm begginer with OJS and servers.

Thanks a lot
Peacemaker
 
Posts: 5
Joined: Sun Feb 03, 2013 7:16 pm

Re: use of Phar versus Tar for patches

Postby asmecher » Wed Jul 31, 2013 9:26 am

Hi Peacemaker,

Unfortunately we don't have experience with Phar. If you don't have access to the patch tool, you can always download the installation e.g. via FTP, apply the patch, and re-upload the results. (In that case, watch out for files that should no longer exist after applying the patch locally; you'll have to make sure you remove them from the remote server.) Patch is a standard administration tool and doesn't quite do the same thing as Phar.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 7710
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 3 guests