Difference between revisions of "PKP/OJS/Install Software/During"
Jump to navigation
Jump to search
m (→Source Code) |
m (→Source Code) |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 7: | Line 7: | ||
cd /tmp | cd /tmp | ||
Download OJS software. | Download OJS software. | ||
| − | wget http://web.lib.sun.ac.za/files/ojs/ojs-2.4. | + | wget http://web.lib.sun.ac.za/files/ojs/ojs-2.4.8.tar.gz |
Extract the code as follows: | Extract the code as follows: | ||
| − | tar -xzvf ojs-2.4. | + | tar -xzvf ojs-2.4.8.tar.gz |
Copy the code the the web folder as follow: | Copy the code the the web folder as follow: | ||
| − | rsync -av /tmp/ojs-2.4. | + | rsync -av /tmp/ojs-2.4.8/ /var/www/html/ |
==File Permissions== | ==File Permissions== | ||
Apply the following permissions. | Apply the following permissions. | ||
| − | chmod 0777 -R /var/www/cache | + | chmod 0777 -R /var/www/html/cache |
| − | chmod 0777 -R /var/www/plugins | + | chmod 0777 -R /var/www/html/plugins |
| − | chmod 0777 -R /var/www/public | + | chmod 0777 -R /var/www/html/public |
| − | chmod 0777 /var/www/config.inc.php | + | chmod 0777 /var/www/html/config.inc.php |
| − | chown www-data.root -R /var/www | + | chown www-data.root -R /var/www/html |
==Installation== | ==Installation== | ||
Open a web browser and go to the journal website, complete the web gui 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/README | ||
| − | * | + | *https://pkp.sfu.ca/wiki/index.php?title=OJS_Documentation |
#Remove the default "index.html" file. | #Remove the default "index.html" file. | ||
| Line 46: | Line 46: | ||
crontab -e | crontab -e | ||
| − | 0 * * * * php /var/www/tools/runScheduledTasks.php | + | 0 * * * * php /var/www/html/tools/runScheduledTasks.php |
| − | chmod 0755 /var/www/tools/runScheduledTasks.php | + | chmod 0755 /var/www/html/tools/runScheduledTasks.php |
Enable in config file. | Enable in config file. | ||
| − | nano /var/www/config.inc.php | + | nano /var/www/html/config.inc.php |
===Search=== | ===Search=== | ||
| Line 57: | Line 57: | ||
sudo apt-get install catdoc antiword poppler-utils pstotext | sudo apt-get install catdoc antiword poppler-utils pstotext | ||
Then setup the config file. | Then setup the config file. | ||
| − | nano /var/www/config.inc.php | + | nano /var/www/html/config.inc.php |
Uncomment search for PDF, PostScript and M$ Word. See example below. | Uncomment search for PDF, PostScript and M$ Word. See example below. | ||
<pre> | <pre> | ||
| Line 74: | Line 74: | ||
Then run the following: | Then run the following: | ||
| − | chmod 0755 /var/www/tools/rebuildSearchIndex.php | + | chmod 0755 /var/www/html/tools/rebuildSearchIndex.php |
| − | php /var/www/tools/rebuildSearchIndex.php | + | php /var/www/html/tools/rebuildSearchIndex.php |
Latest revision as of 10:32, 2 June 2016
Back to OJS Installation
Contents
Source Code
Go the temp folder.
cd /tmp
Download OJS software.
wget http://web.lib.sun.ac.za/files/ojs/ojs-2.4.8.tar.gz
Extract the code as follows:
tar -xzvf ojs-2.4.8.tar.gz
Copy the code the the web folder as follow:
rsync -av /tmp/ojs-2.4.8/ /var/www/html/
File Permissions
Apply the following permissions.
chmod 0777 -R /var/www/html/cache
chmod 0777 -R /var/www/html/plugins
chmod 0777 -R /var/www/html/public
chmod 0777 /var/www/html/config.inc.php
chown www-data.root -R /var/www/html
Installation
Open a web browser and go to the journal website, complete the web gui installation.
- Remove the default "index.html" file.
- 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:
- CAPTCHA
- 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/html/tools/runScheduledTasks.php
chmod 0755 /var/www/html/tools/runScheduledTasks.php
Enable in config file.
nano /var/www/html/config.inc.php
Search
Install the following:
sudo apt-get install catdoc antiword poppler-utils pstotext
Then setup the config file.
nano /var/www/html/config.inc.php
Uncomment search for PDF, PostScript and M$ Word. See example below.
; PDF ;index[application/pdf] = "/usr/bin/pstotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr '[:cntrl:]' ' '" index[application/pdf] = "/usr/bin/pdftotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr '[:cntrl:]' ' '" ; PostScript 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:]' ' '" ; Microsoft Word index[application/msword] = "/usr/bin/antiword %s" index[application/msword] = "/usr/bin/catdoc %s"
Then run the following:
chmod 0755 /var/www/html/tools/rebuildSearchIndex.php
php /var/www/html/tools/rebuildSearchIndex.php