You are viewing the PKP Support Forum | PKP Home Wiki

Help with fixing wrong slashes when installing ojs

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

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.

Help with fixing wrong slashes when installing ojs

Postby Shahid » Sun Aug 28, 2005 8:02 pm

I've just started a fresh install of OJS 2.0.1 with apache 2.0.54 on Windows 2000.

I keep getting double slashes after the base URL eg:

also the "Journal Help" link on the install page has the following url:

which also looks incorrect.

Can anyone please help with this issue. Is there any php or apache configuration that I've missed.

The interesting thing is that before I reinstalled this machine I had ojs 1.1.8 working fine under windows 2000.

Appreciate any help.

Postby Guest » Mon Aug 29, 2005 8:10 pm

Now here's some weird behaviour of OJS which I discoverd:

If I place the OJS installation files in the DocumentRoot (apache2/htdocs) of the Apache server. The slashes are all wrong as in my previous post. ie:
Install Location: apache2/htdocs/
Wrong URL: http://abc.edu.au//index.php/index/install

But if I put these same files in a folder under the DocumentRoot then it works fine. The slashes are correct. ie:
Install Location: apache2/htdocs/ojs/
Correct URL: http://abc.edu.au/index.php/index/install

I wonder why this would be happening. atleast i've found a workaround to get his thing up and running. But it is odd that OJS cant seem to reference paths correctly if it is placed in the DocumentRoot folder.

Any ideas.


Apache on Windows

Postby ramon » Fri Sep 02, 2005 5:08 am


You need to change the address bars in php.ini and httpd.conf (if there are any) to forward slashes for the system to work.

On Windows, Apache is installed with backslashes (ex: C:\Apache\htdocs) and it should be C:/Apache/htdocs...
Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Postby Guest » Wed Sep 14, 2005 10:53 pm

thanks ramon,
I have been using forward slashes in the http.conf file for directory paths.

In php.in there is only one entry with a back lash:
extension_dir = "d:\php"
I've changed that to forward as well.

But that did not fix the double slashes after base url eg:

Now I have found other OJS sites with the same problem in their URL eg:

http://bulletin-am.fsid.cvut.cz//index. ... ue/current

So I am not the only one experiencing this oddity in OJS installation.

URL Problems

Postby ramon » Thu Sep 15, 2005 12:02 pm


I've seen that happen frequently on networks running windows. I don't know what could cause this. Similar problems include adding stuff that's not there to the url, like a adm/ in the middle.

Only using Firefox I've been able to see this happening and being able to at least change the url to the correct one.

I've never been able to reproduce this where I work, so I can't tell you if it's a proxy problem, windows problem, network config problem, firewall.

Most of the times, though, the double slashes do not cause a problem. I don't know with version 2.x
Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Have same problem

Postby Guest » Mon Oct 10, 2005 3:55 pm

I have the same problem trying to install OJS on a Windows-based hybrid server. Hwever, I am using pgsql instead of mysql. I have however changed from the root directory to a subdirectory "ojs'

I have a new problem now "no input file specified'?

I am not sure what to write in the database driver section? pgsql or postgresql? I tried both with the same result.


Nabil El-Khodari
webmaster at nilebasin.net

Postby asmecher » Tue Oct 11, 2005 3:25 pm

See http://pkp.sfu.ca/support/forum/viewtopic.php?p=1501#1501.

Alec Smecher
Open Journal Systems Team
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: Google [Bot] and 2 guests