After extensive search, double checking install, reinstalling, troubleshooting, I don't know where to turn next.
Background:
C:\PHP
.The main issue: Locally I can view the index.php
file, but not externally.
I get a generic page can't be displayed
error if linking to the /w/
directory.
Depending on the browser I'll get two results when linking to w/index.php
:
page can't be displayed
IIS 404.0 Error.
Depending on the browser I'll get two results linking to w/index.php?title=Main_Page;
IIS 404.0 Error
unformatted page content
The error:
Module: IIS Web Core
Notification: MapRequestHandler
Handler: StaticFile
Error Code: 0x80070002
Requested URL: http://localhost:80/w/index.php?title=Main_Page
Physical Path: C:\inetpub\wwwroot\w\index.php
Logon Method: Anonymous
Logon User: Anonymous
Troubleshooting done:
*.php
(it is).index.html
in w/
(works both by direct link to file and link to folder)./w/index.html
with PHP "Hello World"
inside it (blank page).What am I doing wrong? Everything works perfectly fine run locally on the server.
As Christpher says, localhost
is a wrong in an URL to be contacted from outside: if that's what you see, you forgot to set $wgServer correctly.