server problem

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 10
Joined: Thu Jan 03, 2008 3:56 am

server problem

Postby jn122 » Thu Jan 10, 2008 3:39 am

Hi all, sorry to call on you guys again for assistance but wondering if anyone can shed light on this error:

I have uploaded the configured OJS site to our server but in trying to access the base url (after modifying config) I return this error:
'The requested URL /global-bin/index.php/journal was not found on this server.'

I have tried googling but the tech speak is beyond me as is the intricacies of server configurations.

Any pointers to get me looking in teh right direction for addressing this would be greatly appreciated.


Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am

Re: server problem

Postby jmacgreg » Thu Jan 10, 2008 12:17 pm

Hi jn122,

No worries about asking for help -- it's what we're here for!

To clarify the issue at hand: did you install and configure OJS on one server, and then move it to another, live server?

What did you enter as the base url in


Posts: 10
Joined: Thu Jan 03, 2008 3:56 am

Re: server problem

Postby jn122 » Thu Jan 10, 2008 4:24 pm

Hi again James and thanks again for the kind reply

I developed the site on a local server and uploaded to another live server.

The base url is the site domain followed by the OJS dir:


I'm guessing then by your question that the base url should have the index.php somewhere eg




Posts: 183
Joined: Thu Sep 06, 2007 7:01 pm

Re: server problem

Postby smiri » Fri Jan 11, 2008 3:03 pm

Hi jn122,

This is not really an OJS problem I would think. You could try actually putting a simple file like a picture or something in the ojs directory and try to access it online. I have a feeling you just have the wrong url address there. Is your ojs directory in the webserver root directory? Or some other directory? I think if you figure out the right URL to the file you placed in the ojs directory, you should be able to use that url as the base_url (minus the file name of course).

However, other than this url issue, there will be a few complications on moving your ojs from your local server to the live server. You have to remember to also setup and move your database, plus your files directory. You also would might have to set the file permissions again on the live server.

I hope this helps. Let us know how it goes.


Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am

Re: server problem

Postby jmacgreg » Fri Jan 11, 2008 4:18 pm

Hi jn122,

If the above recommendations don't work, try setting the variable disable_path_info to On. Let us know how it goes!


Posts: 10
Joined: Thu Jan 03, 2008 3:56 am

Re: server problem

Postby jn122 » Sat Jan 12, 2008 3:47 am

Hi smiri and James, thanks you both for the assistance. Unfortunately I am not having much success to date. To be more specific with the install to date:

I have successfully uploaded production sites to a live server in the past and have in this case imported the database and set the variables in the config file.

The OJS install is located in a dir under www/htdocs and I did take smiri's advice and upload an image file to that dir which is accessible via the dir URl and is also accessible from other directories under the OJS install. It is then the index.php file which I am not able to read. I have modified permissions, double checked passwords and taken James' advice and disable_path_info = On

I have included teh config file below to see if anything glaringly obvious jumps out at anyone.

Thanks again


; <?php exit(); // DO NOT DELETE ?>
; Doing so will expose this configuration file through your web site!

; Copyright (c) 2003-2007 John Willinsky
; Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
; OJS Configuration settings.
; Rename to to use.
; $Id:,v 1.51 2007/11/03 05:57:30 mj Exp $

; General Settings ;


; Set this to On once the system has been installed
; (This is generally done automatically by the installer)
installed = On

; The canonical URL to the OJS installation (excluding the trailing slash)
base_url = "http://mywebsiteurl/jms"

; Path to the registry directory (containing various settings files)
; Although the files in this directory generally do not contain any
; sensitive information, the directory can be moved to a location that
; is not web-accessible if desired
registry_dir = registry

; Session cookie name
session_cookie_name = OJSSID

; Number of days to save login cookie for if user selects to remember
; (set to 0 to force expiration at end of current session)
session_lifetime = 30

; Enable support for running scheduled tasks
; Set this to On if you have set up the scheduled tasks script to
; execute periodically
scheduled_tasks = Off

; Short and long date formats
date_format_trunc = "%m-%d"
date_format_short = "%Y-%m-%d"
date_format_long = "%B %e, %Y"
datetime_format_short = "%Y-%m-%d %I:%M %p"
datetime_format_long = "%B %e, %Y - %I:%M %p"

; Use URL parameters instead of CGI PATH_INFO. This is useful for
; broken server setups that don't support the PATH_INFO environment
; variable.
disable_path_info = On

; Base URL override settings: Entries like the following examples can
; be used to override the base URLs used by OJS. If you want to use a
; proxy to rewrite URLs to OJS, configure your proxy's URL here.
; Syntax: base_url[journal_path] =
; To override URLs that aren't part of a particular journal, use a
; journal_path of "index".
; Examples:
; base_url[index] = http://www.myjournal
; base_url[myJournal] = http://www.myjournal/index
; base_url[myOtherJournal] =

; Database Settings ;


driver = mysql
host = localhost
username = myusername
password = mypassword
name = jms

; Enable persistent connections (recommended)
persistent = On

; Enable database debug output (very verbose!)
debug = Off

; Cache Settings ;


; The type of data caching to use. Options are:
; - memcache: Use the memcache server configured below
; - file: Use file-based caching; configured below
; - none: Use no caching. This may be extremely slow.
; This setting affects locale data, journal settings, and plugin settings.

cache = file

; Enable memcache support
memcache_hostname = localhost
memcache_port = 11211

; For site visitors who are not logged in, many pages are often entirely
; static (e.g. About, the home page, etc). If the option below is enabled,
; these pages will be cached in local flat files for the number of hours
; specified in the web_cache_hours option. This will cut down on server
; overhead for many requests, but should be used with caution because:
; 1) Things like journal metadata changes will not be reflected in cached
; data until the cache expires or is cleared, and
; However, for situations like hosting high-volume open access journals, it's
; an easy way of decreasing server load.

web_cache = Off
web_cache_hours = 1

; Localization Settings ;


; Default locale
locale = en_US

; Client output/input character set
client_charset = utf-8

; Database connection character set
; Must be set to "Off" if not supported by the database server
; If enabled, must be the same character set as "client_charset"
; (although the actual name may differ slightly depending on the server)
connection_charset = Off

; Database storage character set
; Must be set to "Off" if not supported by the database server
database_charset = Off

; Enable character normalization to utf-8 (recommended)
; If disabled, strings will be passed through in their native encoding
charset_normalization = On

; File Settings ;


; Complete path to directory to store uploaded files
; (This directory should not be directly web-accessible)
; Windows users should use forward slashes
files_dir = ""

; Path to the directory to store public uploaded files
; (This directory should be web-accessible and the specified path
; should be relative to the base OJS directory)
; Windows users should use forward slashes
public_files_dir = public

; Permissions mask for created files and directories
umask = 0022

; Security Settings ;


; Force SSL connections site-wide
force_ssl = Off

; Force SSL connections for login only
force_login_ssl = Off

; This check will invalidate a session if the user's IP address changes.
; Enabling this option provides some amount of additional security, but may
; cause problems for users behind a proxy farm (e.g., AOL).
session_check_ip = On

; The encryption (hashing) algorithm to use for encrypting user passwords
; Valid values are: md5, sha1
; Note that sha1 requires PHP >= 4.3.0
encryption = md5

; Allowed HTML tags for fields that permit restricted HTML.
allowed_html = "<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <b> <i> <u> <img> <sup> <sub> <br> <p>"

; Prevent VIM from attempting to highlight the rest of the config file
; with unclosed tags:
; </p></sub></sup></u></i></b></dd></dt></dl></li></ol></ul></code></cite></string></em></a>

; Email Settings ;


; Use SMTP for sending mail instead of mail()
; smtp = On

; SMTP server settings
; smtp_server =
; smtp_port = 25

; Enable SMTP authentication
; Supported mechanisms: PLAIN, LOGIN, CRAM-MD5, and DIGEST-MD5
; smtp_auth = PLAIN
; smtp_username = username
; smtp_password = password

; Allow envelope sender to be specified
; (may not be possible with some server configurations)
; allow_envelope_sender = Off

; Default envelope sender to use if none is specified elsewhere
; default_envelope_sender =

; Enable attachments in the various "Send Email" pages.
; (Disabling here will not disable attachments on features that
; require them, e.g. attachment-based reviews)
enable_attachments = On

; Amount of time required between attempts to send non-editorial emails
; in seconds. This can be used to help prevent email relaying via OJS.
time_between_emails = 3600

; Maximum number of recipients that can be included in a single email
; (either as To:, Cc:, or Bcc: addresses) for a non-priveleged user
max_recipients = 10

; If enabled, email addresses must be validated before login is possible.
require_validation = Off

; Maximum number of days before an unvalidated account expires and is deleted
validation_timeout = 14

; Search Settings ;


; Minimum indexed word length
min_word_length = 3

; The maximum number of search results fetched per keyword. These results
; are fetched and merged to provide results for searches with several keywords.
results_per_keyword = 500

; The number of hours for which keyword search results are cached.
result_cache_hours = 1

; Paths to helper programs for indexing non-text files.
; Programs are assumed to output the converted text to stdout, and "%s" is
; replaced by the file argument.
; Note that using full paths to the binaries is recommended.
; Uncomment applicable lines to enable (at most one per file type).
; Additional "index[MIME_TYPE]" lines can be added for any mime type to be
; indexed.

; index[application/pdf] = "/usr/bin/pstotext %s"
; index[application/pdf] = "/usr/bin/pdftotext %s -"

; PostScript
; index[application/postscript] = "/usr/bin/pstotext %s"
; index[application/postscript] = "/usr/bin/ps2ascii %s"

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

; OAI Settings ;


; Enable OAI front-end to the site
oai = On

; OAI Repository identifier
repository_id = "ojs.localhost"

; Interface Settings ;


; Number of items to display per page; overridable on a per-journal basis
items_per_page = 25

; Number of page links to display; overridable on a per-journal basis
page_links = 10

; Captcha Settings ;


; Whether or not to enable Captcha features
captcha = off

; Whether or not to use Captcha on user registration
captcha_on_register = on

; Whether or not to use Captcha on user comments
captcha_on_comments = on

; Font location for font to use in Captcha images
font_location = /usr/share/fonts/truetype/freefont/FreeSerif.ttf

; Proxy Settings ;


; 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 = localhost
; http_port = 80
; proxy_username = username
; proxy_password = password

; Debug Settings ;


; Display execution stats in the footer
show_stats = Off

; Display a stack trace when a fatal error occurs.
; Note that this may expose private information and should be disabled
; for any production system.
show_stacktrace = Off

Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am

Re: server problem

Postby jmacgreg » Mon Jan 14, 2008 12:47 pm

Hi jn122,

Could you check for me whether PHP is properly configured on your production server? Create a file named test.php, and put the following in it:

Code: Select all

<?php phpinfo(); ?>

Please let me know what you get when you view this file.


Posts: 10
Joined: Thu Jan 03, 2008 3:56 am

Re: server problem

Postby jn122 » Thu Jan 17, 2008 5:46 am

HI again James and once again thanks for the reply

I can view the test file, it gives me teh php configuration page and settings. Not sure of what is best to tell you from it: php 4.4.7 installed. Given the error returned originally was global-bin related the relevant settings I can see include:

_SERVER["SCRIPT_NAME"] /global-bin/php.cgi received
_ENV["SCRIPT_FILENAME"] /usr/local/apache/global-bin/php.cgi

Let me know what else I can tell you that would help make sense of it.


Posts: 183
Joined: Thu Sep 06, 2007 7:01 pm

Re: server problem

Postby smiri » Thu Jan 17, 2008 9:54 pm

Hi jn122,

The files directory of your file is wrong:

files_dir = ""

you cannot have a URL address there. it has to be a server path. something like "/home/jms/files"

Also you could add this line to your index.php, right after the <?php line:

ini_set('display_errors', E_ALL);

Adding this line should show you any error messages that might be happening.

Let me know how it turns out.

Posts: 10
Joined: Thu Jan 03, 2008 3:56 am

Re: server problem

Postby jn122 » Sun Jan 20, 2008 3:55 am

Hi Siavash

I have taken your advice and modified the files dir to /htdocs/jms/files and tried numerous other combinations.

I also added the code to index.php as per your suggestion but for some reason nothing has changed in terms of teh error output.

I'm at a bit of a loss from here - I have another server used for another site and I am going to upload to it and see what happens. Other than that ?

Thanks again for your help

Posts: 183
Joined: Thu Sep 06, 2007 7:01 pm

Re: server problem

Postby smiri » Wed Feb 06, 2008 3:23 pm

Hi jn122,

This problem might be because of your _SERVER['SCRIPT_NAME'] variable after all. Were you able to resolve it? If yes, would you mind telling us what you had to change to get it working? And if not, let me know and I'll try to resolve it by changing some code/settings.


Return to “OJS Technical Support”

Who is online

Users browsing this forum: No registered users and 3 guests