Skip to content

Setting up for local development

barbarahui edited this page Apr 18, 2012 · 1 revision

##Install php and mysql on your machine if you haven't already

##Install git if you haven't already

Follow the directions for your OS as described at http://help.github.com/mac-set-up-git/

clone eschol-ojs repo from github

On your local machine, cd into your htdocs directory or equivalent. Then execute:

 git clone [email protected]:cdlib/eschol-ojs.git

set up ojs-pkp-lib as submodule

cd into your new git repo:

cd eschol-ojs

Add the following to the .git/config file:

[submodule "lib/pkp"]
        url = [email protected]:cdlib/eschol-pkp-lib.git

Then execute:

git submodule init
git submodule update

set up your OJS config file

Put a copy of config.inc.php.dev in the eschol-ojs/ directory. (Our config.inc.php.* files are naturally kept in a super-secret location for security reasons).

Then create a sym link:

 ln -s config.inc.php.dev config.inc.php

make certain files writeable

 cd eschol-ojs/
 chmod a+w public
 chmod a+w cache
 chmod a+w cache/*

start apache on your machine if necessary

check that OJS comes up on your machine

Browse to and make sure the page comes up and you can login: http://localhost/eschol-ojs/index.php/index/login?subi=no

Done.