[SOLVED] Install redirects to index.php/index/install

I’m running through the install instructions for ojs-3.0.1. The tarball is extracted to my webroot/journal and I have altered permissions as instructed in the README.

When I point my browser at https://www.mykeenjournal.com/journal (not the real name) I get a redirect to https://www.mykeenjournal.com/journal/index.php/index/install (which does not exist).

Running php tools/install.php also fails. (I have applied the Fix Constructor patches).

0 skinny www/journal # php ./tools/install.php
PHP Strict Standards:  Declaration of ValidatorUrl::getRegexp() should be compatible with ValidatorUri::getRegexp($allowedSchemes = NULL) in /export/www/journal/lib/pkp/classes/validation/ValidatorUrl.inc.php on line 19
PHP Strict Standards:  Declaration of MaintenanceForm::display() should be compatible with Form::display($request = NULL, $template = NULL) in /export/www/journal/lib/pkp/classes/install/form/MaintenanceForm.inc.php on line 19
PHP Strict Standards:  Declaration of InstallForm::execute() should be compatible with Form::execute($object = NULL) in /export/www/journal/lib/pkp/classes/install/form/InstallForm.inc.php on line 20
PHP Fatal error:  Call to undefined method InstallTool::InstallTool() in /export/www/journal/tools/install.php on line 26

Access and Error logs

2017/01/28 14:26:29 [error] 18804#18804: *54 FastCGI sent in stderr: "PHP message: PHP Strict Standards:  Declaration of GoogleAnalyticsPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /export/www/journal/plugins/generic/googleAnalytics/GoogleAnalyticsPlugin.inc.php on line 0
PHP message: PHP Strict Standards:  Declaration of RecommendByAuthorPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /export/www/journal/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 0
PHP message: PHP Strict Standards:  Declaration of OrcidProfilePlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /export/www/journal/plugins/generic/orcidProfile/OrcidProfilePlugin.inc.php on line 0
PHP message: PHP Strict Standards:  Declaration of WebFeedPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /export/www/journal/plugins/generic/webFeed/WebFeedPlugin.inc.php on line 0
PHP message: PHP Strict Standards:  Declaration of PdfJsViewerPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /export/www/journal/plugins/generic/pdfJsViewer/PdfJsViewerPlugin.inc.php on line 0
PHP message: PHP Strict Standards:  Declaration of BrowsePlugin::manage() should be compatible with Plugin::manage($args, $request) in /export/www/journal/plugins/generic/browse/BrowsePlugin.inc.php on line 0
PHP message: PHP Strict Standards:  Declaration of BrowsePlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /export/www/journal/plugins/generic/browse/BrowsePlugin.inc.php on line 0
PHP message: PHP Strict Standards:  Declaration of LensGalleyPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /export/www/www.mykeenjournal.c
50.24.196.71 - - [28/Jan/2017:14:26:29 -0600] "GET /journal/ HTTP/1.1" 302 440 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0" "-"
2017/01/28 14:26:29 [error] 18804#18804: *54 open() "/export/www/journal/index.php/index/install" failed (20: Not a directory), client: 50.24.196.71, server: mykeenjournal.com, request: "GET /journal/index.php/index/install HTTP/1.1", host: "www.mykeenjournal.com"
50.24.196.71 - - [28/Jan/2017:14:26:29 -0600] "GET /journal/index.php/index/install HTTP/1.1" 404 348 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0" "-"

I’m running nginx-1.10.2 and php-5.6.29.

Hi @brundage,

See this thread: OJS version 3.0.1 - #7 by asmecher

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks. I missed one patch from that. Got it configured but I’m still having redirect weirdness. Going to switch from nginx to apache and see if the recommended requirements stop that. (-:

I switched over to Apache, php-fpm and ojs-3.0.2 but still get an infinite redirect when accessing the web page for the first time.

150.244.196.71 - - [03/Mar/2017:10:31:09 -0600] "GET /ojs-3.0.2/index.php HTTP/1.1" 302 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0"
150.244.196.71 - - [03/Mar/2017:10:31:09 -0600] "GET /ojs-3.0.2/index.php/index/install HTTP/1.1" 302 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0"
150.244.196.71 - - [03/Mar/2017:10:31:09 -0600] "GET /ojs-3.0.2/index.php/index/install/index.php/index/install HTTP/1.1" 302 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0"
150.244.196.71 - - [03/Mar/2017:10:31:09 -0600] "GET /ojs-3.0.2/index.php/index/install/index.php/index/install/index.php/index/install HTTP/1.1" 302 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0"
.... etcetera

Are there patches for 3.0.2 yet?

Hi @brundage,

It looks like your server setup doesn’t support PATH_INFO URLs. You’ll either have to configure your web server to support these, or use path_info_disabled in config.inc.php. The latter will make your URLs a lot uglier and will cause certain parts of OJS to run out of spec (e.g. the OAI interface), so the former solution is recommended.

Regards,
Alec Smecher
Public Knowledge Project Team

That was it, thank you. I also had to get php-fpm to correctly pass PATH_INFO.

Hello @brundage… Could you help me? I have the same problem… .could you send me the nginx block .conf please? (virtual host…) Because It keeps redirecting to installation page.
Thanks