Difference between revisions of "PKP/OJS/Install Software/After"
m |
|||
| Line 3: | Line 3: | ||
</center> | </center> | ||
__TOC__ | __TOC__ | ||
| + | ==Fix "User Home" error== | ||
| + | Due to the single mode hack the "USER HOME" link is wrong. | ||
| + | |||
| + | See: https://github.com/pkp/ojs/blob/ojs-2_4_7-1/templates/common/navbar.tpl#L17 | ||
| + | |||
| + | Simply change "index" to "pub", save the file and restart the apache2 web server. | ||
==Enable Journal Proxy== | ==Enable Journal Proxy== | ||
;Setup Squid | ;Setup Squid | ||
Revision as of 22:10, 25 October 2015
Back to OJS Installation
Contents
Fix "User Home" error
Due to the single mode hack the "USER HOME" link is wrong.
See: https://github.com/pkp/ojs/blob/ojs-2_4_7-1/templates/common/navbar.tpl#L17
Simply change "index" to "pub", save the file and restart the apache2 web server.
Enable Journal Proxy
- Setup Squid
Add the journal ip address to openjournals rule on the SQUID server on ez.sun.ac.za.
Ask Natasja/Wouter/Hilton to add this address using the web interface to ez.sun.ac.za.
- Setup Ubuntu Server
Then do the following on the journal:
sudo nano /etc/environment
Add the following to the bottom of the file.
http_proxy=http://ez.sun.ac.za:3128/ https_proxy=http://ez.sun.ac.za:3128/ HTTP_PROXY=http://ez.sun.ac.za:3128/ HTTPS_PROXY=http://ez.sun.ac.za:3128/
Save and exit nano.
- Setup OJS
Modify the config file and add the proxy settings. See example below.
;;;;;;;;;;;;;;;;;; ; Proxy Settings ; ;;;;;;;;;;;;;;;;;; [proxy] ; Note that allow_url_fopen must be set to Off before these proxy settings ; will take effect. ; The HTTP proxy configuration to use http_host = ez.sun.ac.za http_port = 3128 ; proxy_username = username ; proxy_password = password
Restart the web server and lock down the config file
Restart the Apache2 web server.
/etc/init.d/apache2 restart
Type the following to "lock-down" the OJS config file.
chmod 0644 /var/www/html/config.inc.php
Notes
We will be moving to a federated system. Below are links to pages regarding rewrites/redirection instructions for custom journal URL's.
- http://pkp.sfu.ca/support/forum/viewtopic.php?f=8&t=3546
- http://pkp.sfu.ca/support/forum/viewtopic.php?f=8&t=3546&start=15#p18816
- http://pkp.sfu.ca/support/forum/viewtopic.php?f=8&t=7578
- http://pkp.sfu.ca/support/forum/viewtopic.php?f=8&t=12175
- http://stackoverflow.com/questions/18934304/mod-rewrite-to-get-rid-of-index-php