Page MenuHomePhabricator

Connection refused if trying to access index.php
Closed, DeclinedPublic

Description

Author: soren21

Description:
Installation is done successfully, everything works fine directly on the Server.
But Wiki can not be opened from the Intranet (URL: http://ip/wiki/), it only
works when index.php?titel=... is specified, too. Page editing does not work
either, whereas preview works.

Server: WinXP Home with WAMP (standard installation, PHP 4.3.6, MySQL 3.23.49)


Version: 1.3.x
Severity: minor
OS: Windows XP
Platform: PC

Details

Reference
bz592

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 6:57 PM
bzimport set Reference to bz592.
bzimport added a subscriber: Unknown Object (MLST).

Can you confirm that Apache includes 'index.php' in the DirectoryIndex line in
httpd.conf, and that other directories with an index.php work as expected?

soren21 wrote:

Yes, I can confirm that 'index.php' is included in the DirectoryIndex line. It
works for other directories, e.g. http://ip/wiki/config/
which shows that the Wiki is configured.

Can you check the error log?

Confirm also that the correct absolute URL is being used, and that you're not
being redirected to nowhere. If for instance 'localhost' or '127.0.0.1' or some
other non-valid hostname is being given, override $wgServer in your
LocalSettings.php to 'http://' and the correct hostname or IP address.

soren21 wrote:

Interestingly there is NO entry at all for the $wgServer variable in my
localsettings. I added the value with the correct address and now everything
seems to work. Thank you. Maybe we should find out, why no entry was made...

Normally there's no entry as it's autodetected in DefaultSettings.php.

If Apache is mis-configured, you can end up with an incorrect value.