OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Problem installing OCS 2.0 [RESOLVED]

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

Moderators: jmacgreg, michael, John

Forum rules
What to do if you have a technical problem with OCS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

Problem installing OCS 2.0 [RESOLVED]

Postby dsolomon » Thu Jul 19, 2007 1:27 pm

Hello,

I am having trouble installing OCS 2.0 on an ISP web server account where I would like to host a conference. It installed just fine on an Apple sever I own but when I tried to install it on the ISP's server it can't seem to find the initial configuration file and start the instalation. When I type in the base url I get a HTTP 404 not found error when using IE and the response "No input file specified" with Firefox though it does appear index.php is executing as the url changes to "/ocs/index.php/index/index/install"

The web server account does not have a static IP address. I was wondering if that might have caused the problem. I would appreciate any thought to what might be going on.

Also, a minor point. When I installed it on my Apple server and set it up, the conference header I used was long enough to wrap to a second line. The default style sheet doesn't provide an adequate line hieght and the two lines overlap. I added "line-height: normal;" into the section for the headerTitle and it solved the problem. You might want to change the default style sheet to fix the problem.

Thanks,

Dave Solomon
dsolomon
 
Posts: 13
Joined: Thu Jul 19, 2007 10:36 am
Location: Michigan State Univeristy

Postby asmecher » Thu Jul 19, 2007 1:43 pm

Hi Dave,

Try turning on the disable_path_info option in your config.inc.php file; some web server/PHP combinations don't support PATH_INFO URLs. This should work around the problem.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8307
Joined: Wed Aug 10, 2005 12:56 pm

Postby dsolomon » Thu Jul 19, 2007 3:34 pm

Thanks Alec, that solved the problem. /Davw
dsolomon
 
Posts: 13
Joined: Thu Jul 19, 2007 10:36 am
Location: Michigan State Univeristy

Re: Problem installing OCS 2.0

Postby makos » Thu Jan 31, 2008 12:53 am

Hello
I'm trying to install ocs 2 too and I had the same problem when I type http://localhost/ocs2/index.php, then I read that post and changed the path_info value; then when I type http://localhost/ocs2/index.php the url changes to http://localhost/php/index.php?conferen ... ge=install with the same 404 error, but if in this url I type http://localhost/ocs2/index.php?conference=index&schedConf=index&page=install instead, appears a web page but it seems as it hasn't any css associate and I suppose that it's wrong.

¿How can I configure the system?
¿why is the url redirected if I type http://localhost/ocs2/index.php?

Lots of thanks for your help.

Marcos.
Guadalajara (Spain)
makos
 
Posts: 30
Joined: Sat Dec 08, 2007 1:58 pm

Re: Problem installing OCS 2.0

Postby makos » Mon Feb 04, 2008 8:01 am

Nobody can help me???

:?

I'm a bit worried :(

Thanks in any case.

Marcos
makos
 
Posts: 30
Joined: Sat Dec 08, 2007 1:58 pm

Re: Problem installing OCS 2.0

Postby smiri » Mon Feb 04, 2008 3:46 pm

Hi Marcos,

can you check to make sure you have your "base_url" variable set correctly in your config.inc.php file?

Your problem looks like a path issue. That's why your page can't find your CSS files.

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

Re: Problem installing OCS 2.0

Postby makos » Tue Feb 05, 2008 1:59 am

Hi Siavash,

Firstable lots of thanks for your help.
You were partially right because the base_url variable had a bad value, something like "http://pkp.ocs.com", and then I set it to "http://localhost/ocs2" (the path where I have the ocs files but unfortunately the result is the same :( .

Do you know why am I redirected when I type http://localhost/ocs2/index?? Is it configured in the httpd.conf or in the config.inc.php file??

Waiting your Help... :)

Marcos
makos
 
Posts: 30
Joined: Sat Dec 08, 2007 1:58 pm

Re: Problem installing OCS 2.0

Postby smiri » Tue Feb 05, 2008 6:56 pm

Hi Marcos,

So Are you still getting redirected to http://localhost/php/... ?

That is probably set somewhere in your apache config file. you could try creating a simple html page in the OCS directory and see if you can access it. your server looks like is setup to have php files inside "localhost/php/" directory. So you might have to install OCS inside the php folder. So like I said, I would suggest using a simple html file or php file to figure out if the issue is related to OCS or your server.

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

Re: Problem installing OCS 2.0

Postby makos » Wed Feb 06, 2008 1:28 am

Hi Siavash,

Thanks again for your help.
Because I need to get the ocs installed as soon as posible I've been trying different ways to install it and I've made few progress.
While I was waiting a response that solve the web install problem I tried to install ocs through the command-line installer but it didn't work neither, an error parsing the php.ini file was thrown, about the include_path line; but I don't expect that you resolve my php config problems, I hope it wont be necessary, if the web installation works :D .

About your suggestion, two things:
- I installed ocs 1.7 on my server and I haven't any problem with the php-apache configuration. Then I think that some different between ocs 1.x and 2.x that I don't know should be the reason of my problem.
- When I type something like http://localhost/ocs2/test.html I don't have any problem, I don't get redirected and the page is shown without problems.

Furthermore the install problem (basically the redirection problem), do you know why the index.php page doesn't show the css styles??

Lots of thanks and waiting impatient your help :? :?

Regards, Marcos
makos
 
Posts: 30
Joined: Sat Dec 08, 2007 1:58 pm

Re: Problem installing OCS 2.0

Postby smiri » Wed Feb 06, 2008 2:13 pm

Hi Marcos,

I'm sorry to hear you're still having problems with the install. But it makes me think that since the command-line installer failed maybe there are the same problems in the web installation as well.

Have you tried looking at your apache error logs to see if it tells you what the error is? Also, you can add the line below in your index.php right after the <?php line:

ini_set('display_errors', E_ALL);

Also instead of the html file in http://localhost/ocs2/test.html, can you try putting a php file test.php? you can have the following lines in it:

<?php
phpinfo();
?>

And could you please send me your phpinfo results in a private message?

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

Re: Problem installing OCS 2.0

Postby smiri » Wed Feb 06, 2008 5:08 pm

makos wrote:Hi again,

In the _server["SCRIPT_NAME"] it shows "/php/php.exe" (without the ") and in the _sever["SCRIPT_FILENAME"] it shows "D:/miservidor/php/php.exe" (without the " too), that is the path where I suppose I have installed php. When I tried to install ocs through the console install tool I did it from there.

Marcos


Hi Marcos,

I believe your problem is your SCRIPT_NAME value. That's why it redirects everything to /php/ directory.

You would have to make a manual change to your "classes/core/Request.inc.php" file as below:

Code: Select all
        function getBasePath() {
                static $basePath;

                if (!isset($basePath)) {
                        $basePath = dirname($_SERVER['SCRIPT_NAME']);                <------------ Change this line
                        if ($basePath == '/' || $basePath == '\\') {
                                $basePath = '';
                        }
                        HookRegistry::call('Request::getBasePath', array(&$basePath));
                }

                return $basePath;
        }


Change the line I pointed to above (line 101) to:

Code: Select all
$basePath = dirname($_SERVER['PHP_SELF']);

or if that doesn't work either, then you can hardcode the right path:

$basePath = '/ocs2';


The $_SERVER['SCRIPT_NAME'] is also used once in line 180 of the same file. If $_SERVER['PHP_SELF'] worked for you, you should also change this line to use the PHP_SELF value.

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

Re: Problem installing OCS 2.0

Postby smiri » Wed Feb 06, 2008 5:25 pm

Hi Marcos,

I'm glad it's working for you now. Let us know if you need help with anything else.

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


Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 2 guests