IT-OJS/During Installation

Back to System Admin

Source Code
http://web.lib.sun.ac.za/files/ojs Download OJS software and extract to /var/www

File Permissions
Apply the following permissions. chmod 0777 -R /var/www/cache

chmod 0777 -R /var/www/plugins

chmod 0777 -R /var/www/public

chmod 0777 /var/www/config.inc.php

chown www-data.root -R /var/www

Installation
Open a web browser and go to the journal website, complete the web gui installation.
 * http://pkp.sfu.ca/ojs/README
 * http://pkp.sfu.ca/ojs_documentation


 * 1) Remove the default "index.html" file.
 * 2) Apply the patches. See: http://www.journals.ac.za/index.php/Bugs

After installation instructions
See: http://pkp.sfu.ca/ojs/docs/userguide/2.3.3/systemAdministrationOther.html

After installation, setup the following:
 * 1) CAPTCHA
 * 2) Mail service. Enable all options.

nano /var/www/config.inc.php

Scheduled tasks
Create a "root" user crontab to do scheduled tasks. crontab -e

0 * * * *      php /var/www/tools/runScheduledTasks.php

chmod 0755 /var/www/tools/runScheduledTasks.php

Enable in config file. nano /var/www/config.inc.php

Search
Install the following: sudo apt-get install catdoc antiword poppler-utils pstotext Then setup the config file. nano /var/www/config.inc.php Uncomment search for PDF, PostScript and M$ Word. See example below. index[application/pdf] = "/usr/bin/pdftotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr '[:cntrl:]' ' '"
 * PDF
 * index[application/pdf] = "/usr/bin/pstotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr '[:cntrl:]' ' '"

index[application/postscript] = "/usr/bin/pstotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr '[:cntrl:]' ' '" index[application/postscript] = "/usr/bin/ps2ascii %s | /usr/bin/tr '[:cntrl:]' ' '"
 * PostScript

index[application/msword] = "/usr/bin/antiword %s" index[application/msword] = "/usr/bin/catdoc %s"
 * Microsoft Word

Then run the following: chmod 0755 /var/www/tools/rebuildSearchIndex.php

php /var/www/tools/rebuildSearchIndex.php