Page MenuHomePhabricator

after install media wiki main page displays 'No input file specified.'
Closed, ResolvedPublic

Description

Author: johnish

Description:
WIMP (Windows XP Professional, IIS 5.1, MySql 4.1.10, PHP 4.3.11)
Installation of Media Wiki 1.4.0 went ok (with work around for server
request_uri and imagemagick directory/file).
After installation I moved the Localsettings.php to the mediawiki's root directory.
Going to the media wiki's root directory using IE 6 took me to a URL
"http://localhost/mymediawiki/index.php/Main_Page" and this was outputted
"No input file specified."


Version: unspecified
Severity: critical
Platform: PC

Details

Reference
bz1832

Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 21 2014, 8:17 PM
bzimport set Reference to bz1832.
bzimport added a subscriber: Unknown Object (MLST).

johnish wrote:

(In reply to comment #1)

Please try http://localhost/mymediawiki/index.php?title=Main_Page
Do you get the same result?

Yes -
Actually it started to display a blank page, not sure why. So as of right
now it is a blank page.

johnish wrote:

(In reply to comment #2)

(In reply to comment #1)

Please try http://localhost/mymediawiki/index.php?title=Main_Page
Do you get the same result?

Yes -
Actually it started to display a blank page, not sure why. So as of

right

now it is a blank page.

Sorry about that, I had to change my php.ini to display all errors.
When going to http://localhost/mymediawiki/index.php?title=Main_Page
I end up on http://localhost/mymediawiki/index.php/Main_Page - I guess I am
redirected to it.
The message that is displayed in the browser is "No input file specified. "

ian.aitchison wrote:

Probably no help, but I hit similar problems are corrected them by :-
Applying the MySQL old client password fix so it would connect, and then manually modifying
localsettings.php to set a correct $wgScriptPath value. Once all this was done, mine worked,
but of course I hit bug 1826.
;(In reply to comment #3)

(In reply to comment #2)

(In reply to comment #1)

Please try http://localhost/mymediawiki/index.php?title=Main_Page
Do you get the same result?

Yes -
Actually it started to display a blank page, not sure why. So as of

right

now it is a blank page.

Sorry about that, I had to change my php.ini to display all errors.
When going to http://localhost/mymediawiki/index.php?title=Main_Page
I end up on http://localhost/mymediawiki/index.php/Main_Page - I guess I am
redirected to it.
The message that is displayed in the browser is "No input file specified. "

johnish wrote:

I've already applied the old client password fix for MySql - you can't get
through the install without doing this two times.

What should $wgScriptPath be? I have it as = "/mymediawiki";
I believe this is the correct path. The physical directory is
c:/inetpub/wwwroot/mymediawiki

(In reply to comment #4)

Probably no help, but I hit similar problems are corrected them by :-
Applying the MySQL old client password fix so it would connect, and then

manually modifying

localsettings.php to set a correct $wgScriptPath value. Once all this was

done, mine worked,

but of course I hit bug 1826.
;(In reply to comment #3)

(In reply to comment #2)

(In reply to comment #1)

Please try http://localhost/mymediawiki/index.php?title=Main_Page
Do you get the same result?

Yes -
Actually it started to display a blank page, not sure why. So as of

right

now it is a blank page.

Sorry about that, I had to change my php.ini to display all errors.
When going to http://localhost/mymediawiki/index.php?title=Main_Page
I end up on http://localhost/mymediawiki/index.php/Main_Page - I guess

I am

redirected to it.
The message that is displayed in the browser is "No input file

specified. "

PATH_INFO URLs (index.php/Title style) generally don't work with PHP's CGI mode.

The installer should have detected CGI mode and automatically selected the index.php?
title=Title mode. Did you alter $wgArticlePath in LocalSettings.php after installation and
before using the wiki?

If you did not alter LocalSettings.php or copy a LocalSettings.php from another location
which was configured differently, please provide the complete output from the installer.

johnish wrote:

PHP is not installed in CGI mode. PHP is installed as an ISAPI.

(In reply to comment #6)

PATH_INFO URLs (index.php/Title style) generally don't work with PHP's CGI mode.
The installer should have detected CGI mode and automatically selected the index.php?
title=Title mode. Did you alter $wgArticlePath in LocalSettings.php after installation and
before using the wiki?
If you did not alter LocalSettings.php or copy a LocalSettings.php from another location
which was configured differently, please provide the complete output from the installer.

Please provide the complete output from the installer.

johnish wrote:

Are you talking to me?? What output do you want? (from browser, from a log file?)

(In reply to comment #8)

Please provide the complete output from the installer.

johnish wrote:

Tested with the new version 1.4.2 and the same exact result is produced.

johnish wrote:

Although I'm running PHP as an ISAPI I changed the LocalSettings.php file to
give 'ugly' URLS

If using PHP as a CGI module, use the ugly URLs

$wgArticlePath = "$wgScript?title=$1";

This worked for me. Perhaps all IIS installations should be automatically set to
use ugly URLs.

Michael.Keppler wrote:

changing product only...

robchur wrote:

Cause of this bug was resolved in bug 4258.

zigger wrote:

*** This bug has been marked as a duplicate of 4258 ***