OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



OJS WILL NOT INSTALL

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
This forum is meant for general questions about the usability of OJS from an everyday user's perspective: journal managers, authors, and editors are welcome to post questions here, as are librarians and other support staff. We welcome general questions about the role of OJS and how the workflow works, as well as specific function- or user-related questions.

What to do if you have general, workflow or usability questions about OJS:

1. Read the documentation. We've written documentation to cover from OJS basics to system administration and code development, and we encourage you to read it.

2. take a look at the tutorials. We will continue to add tutorials covering OJS basics as time goes on.

3. Post a question. Questions are always welcome here, but if it's a technical question you should probably post to the OJS Technical Support subforum; if you have a development question, try the OJS Development subforum.

OJS WILL NOT INSTALL

Postby cusj » Fri Nov 04, 2005 12:10 pm

when i point my browser to the OJS directory

http://url.com/ojsInstalledDir/index.php/

, the installer points me to this URL

http://url.com/ojsInstalledDir/index.ph ... ir/install

and then i get a 404. What am i doing wrong?
cusj
 

Postby cusj » Fri Nov 04, 2005 12:10 pm

the first url was http://url.com/ojsInstalledDir/

Sorry
cusj
 

Similar problem

Postby Guest » Fri Nov 04, 2005 12:57 pm

I seem to be having a similar problem. My error, using the Safari browser, is as follows:

"Too many redirects occurred trying to open “http://critcrim.org/ojs/index.php/index/install”. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page."

I have searched the forum and apologize if this is answered elsewhere. Any ideas?
Guest
 

Postby cusj » Fri Nov 04, 2005 1:29 pm

I am using godaddy.com hosting. I've looked places and see that godaddy seems to have the AcceptPathInfo directive disabled, but saw a fix for this here for OJS 1.x ...

viewtopic.php?t=322&view=next

but of course we are all using 2.x...

let me know if anyone makes any progress...
cusj
 

More information

Postby Guest » Fri Nov 04, 2005 2:42 pm

I contacted my host (WebstrikeSolutions) and they replied that "the url http://critcrim.org/ojs/index.php/index/install redirects to http://critcrim.org/ojs/index.php/index/install which causes an endless loop which is eventually broken by the webserver with an error message."

Looking at your address, we seem to have the same problem. Webstrike also ran "tools/install.php" from the command line, but that didn't seem to accomplish anything.
Guest
 

Postby asmecher » Fri Nov 04, 2005 5:53 pm

Hi all,

OJS 2.x currently requires the PATH_INFO server variable to be meaningfully set; the problems you describe are probably because this is not the case.

Most servers support PATH_INFO, but in some versions of Apache you'll need to enable the AcceptPathInfo directive.

Some versions of PHP also require the cgi.fix_pathinfo directive to be set in php.ini.

Unfortunately, there's currently no way of running OJS2 without PATH_INFO; this may be addressed in a later version.

Regards,
Alec Smecher
Open Journal Systems
asmecher
 
Posts: 8470
Joined: Wed Aug 10, 2005 12:56 pm

.htaccess

Postby surf44 » Fri Nov 04, 2005 8:50 pm

Thank you Alec,

I cannot configure Apache, so this may be a significant problem. The version of PHP is 5.04 and the directive of pathinfo does not exist (http://206.169.164.158/phpinfo.php).

I am new at this and don't even know if this is a logical question, but from what I have been able to figure out this may be an option- can I make these php changes via htaccess?
surf44
 
Posts: 4
Joined: Fri Nov 04, 2005 1:21 pm

path_info

Postby surf44 » Sat Nov 05, 2005 11:36 am

The OJS program appears to be exactly what I have been looking for and I am trying to exhaust all options before giving up.

In the hope of more ideas, here is more information:

According to my host, "AcceptPathInfo" is on. However, http://206.169.164.157/phpinfo.php indicates that path_info has "no value." Could this be the problem? "No value" seems less than "meaningful." Can path_info be set to something else?

Thanks,

Ken
surf44
 
Posts: 4
Joined: Fri Nov 04, 2005 1:21 pm

Postby asmecher » Sat Nov 05, 2005 1:42 pm

Hello Ken,

If AcceptPathInfo is enabled but path_info isn't being set, it's probably because you're running PHP as CGI and cgi.fix_pathinfo isn't enabled in php.ini.

If you haven't got access to the system php.ini file, you *might* might be able to work around this by adding the following at the beginning of OJS's index.php file:
Code: Select all
ini_set('cgi.fix_pathinfo', 'On');

I haven't tested whether or not this option can be set at runtime; please report any successes here.

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

Postby surf44 » Sat Nov 05, 2005 2:11 pm

Thanks Alec,

I added the suggested code as the first line after the heading. I get the same error. I also sent this information to the support staff at Webstrike, so hopefully we will get it right. I will try to get them to edit the system php.ini file. FYI - They also tried to run "tools/install.php" from command line, with no success.

I will certainly report back to this page if I get it figured out. Any other suggestions are appreciated.

Ken
surf44
 
Posts: 4
Joined: Fri Nov 04, 2005 1:21 pm

Postby kevin » Sat Nov 05, 2005 4:42 pm

In this case it looks like however PHP CGI is setup, the initial environment variables are correct, and so PHP's "fix_pathinfo" is actually breaking things (notice in the phpinfo() output that "ORIG_PATH_INFO" contains the correct value that PATH_INFO should have).

Setting "cgi.fix_pathinfo = Off" in the PHP configuration should fix it. If it is not possible for you to change the PHP configuration you may be able to get OJS working simply by changing "PATH_INFO" to "ORIG_PATH_INFO" in classes/core/Request.inc.php in the OJS code.
kevin
 
Posts: 338
Joined: Tue Oct 14, 2003 8:23 pm

Postby surf44 » Sat Nov 05, 2005 5:21 pm

Bingo!

I do not have the access needed to change the PHP configuration so I changed "PATH_INFO" to "ORIG_PATH_INFO" in classes/core/Request.inc.php. It worked!

Thanks for the tip Kevin. I am new at this and don't know much about the code, but it sure is cool to solve this sort of problem.

Ken
surf44
 
Posts: 4
Joined: Fri Nov 04, 2005 1:21 pm

Postby cusj » Tue Nov 08, 2005 12:29 pm

hi,

sorry to continue this dialogue, but i'm still having this problem.

I'm using godaddy hosting -- they are running apache 1.x and I suspect they are running PHP as CGI. I tried all the tricks used here, but got nothing to work. Making an AcceptPathInfo directive in a .htaccess file results in a 500 error.

Please let me know what I can do when you get a chance.

Best,
Gabe
cusj
 
Posts: 1
Joined: Tue Nov 08, 2005 12:26 pm

Postby kevin » Wed Nov 09, 2005 10:24 pm

If you can provide a link to a <?phpinfo()?> output page like Ken did above that would be helpful (feel free to email to pkp-support@sfu.ca if you'd prefer not to post a link here).
kevin
 
Posts: 338
Joined: Tue Oct 14, 2003 8:23 pm


Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: No registered users and 1 guest