How to install OJS from Github?

I have clone the github repository and followed README and forum instructions to install OJS latest version.

git clone https://github.com/pkp/ojs.git
git submodule update --init --recursive
cp config.TEMPLATE.inc.php config.inc.php

After following the instructions I get all the project files but when I try to access installation I get a blank page.

Please help? :frowning:

1 Like

Hi @desarrollo_escire,

Do you want the current stable version? If so, you’ll need to check out the right branch. See this post:

If you want OJS 2.4.6, then you’ll need to use the ojs-stable-2_4_6 branch, both for the application and the lib/pkp submodule. Try…

git checkout ojs-stable-2_4_6
cd lib/pkp
git checkout ojs-stable-2_4_6
cd ../..

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Thanks for the quick response Asmecher, actually I want to check out the newest version I read in a blog that the beta link in official web site was out of date.

The reason I want to check it out is to get a pick to what is comming on OJS, I heared new OJS is comming up this summer :smiley:

Hi @desarrollo_escire,

In that case the master branch (what you already probably have checked out) is what you want. What you’re probably missing is the composer dependencies – we’ve moved to using PHP’s composer to manage third-party libraries like Smarty.

Try…

cd lib/pkp
composer.phar update
cd ../..

If you don’t have Composer installed, you’ll have to go get it first.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Yippee ki-yay!!! Up and running OJS 3.0 Alpha 1.

Thanks @asmecher, totally miss that one :stuck_out_tongue:

Hi @desarrollo_escire,

Great, glad to hear it! It’s still pre-beta software, but we’d welcome any feedback.

Regards,
Alec Smecher
Public Knowledge Project Team

I was trying to download the beta version. Do you have files for beta? Is it possible to post/upload it?
Thanks

There is a beta version download at:
https://pkp.sfu.ca/ojs/ojs_download/

But, note that we rapidly moving beyond the beta and into pre-release.

The current recommendation is to deploy directly from GitHub.

This is the first post in google about ojs and github so, for future references:

Try with this:

$ git clone -v --recursive --progress -b ojs-stable-3_0_2 --single-branch https://github.com/pkp/ojs.git /your/destination/path
$ cd /your/destination/path//lib/pkp
$ composer update

Or take a look to:
https://pkp.sfu.ca/wiki/index.php?title=Github_Documentation_for_PKP_Contributors

Cheers,
m.

2 Likes

This last answer is quite old and wiki don’t exist any more.

Take a look to the documentation instead:
https://docs.pkp.sfu.ca/dev/documentation/en/getting-started.html#install

Or directly to pkp’s repository instructions:

Alternatively, you can see how we use git in the Dockerfile:

2 Likes

This topic was automatically closed after 6 days. New replies are no longer allowed.