View Issue Details

IDProjectCategoryView StatusLast Update
0000399WackoWikiinstallerpublic2017-08-31 09:36
ReporterAndyM84 Assigned Toadministrator  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
PlatformMicrosoftOSWindows ServerOS Version2008 R2
Product Version5.0.rc 
Target Version5.5.0Fixed in Version5.5.0 
Summary0000399: Installation Severely Broken on IIS 7.5
DescriptionI don't have access to the forums so I'm adding this here (it IS a bug technically). The basic idea is that when I try to install WW on IIS 7.5 I run into all sorts of problems.

First, the CSS doesn't load. Secondly, if you are running in a subdirectory, the installer doesn't seem to know how to handle redirects for form processing.

There's probably a whole slew of problems here, but I need to sit down this weekend and actually figure out what they are, build a list, and get to working on solutions.
TagsIIS

Relationships

related to 0000259 resolvedadministrator incorrect CSS Path in installer with mode_rewrite 

Activities

AndyM84

2011-10-05 22:55

updater   ~0000819

Gave this a shot as top-level (http://wiki.*.com/ instead of http://*.com/wiki/). Posting between forms worked, however there was still the issue of CSS/images not loading.

administrator

2011-10-07 07:01

administrator   ~0000820

http://wackowiki.sourceforge.net/doc/Doc/Russian/InstalljacijaPodIIS
http://wackowiki.sourceforge.net/doc/Doc/English/Installation/IIS (todo)

AndyM84

2011-10-07 13:14

updater   ~0000821

Unfortunately I haven't had time yet to try learning Russian (I've barely managed any Japanese at this rate!) so I ran that through a translator. Looks fine, but we're now quite a few versions of IIS down the road, and PHP is a first-class citizen in that environment. I'll make sure I put up some notes for use on that page (the English version), but there are some things we can change about the wiki to make installation work more easily with recent versions of IIS.

AndyM84

2011-10-18 14:08

updater   ~0000823

I was able to get the installer working by having my_location() (defined in the header.php file of setup) make sure there was a trailing '/' character. I had some other problems though, just running a little low on time to track it all down. Hopefully that'll be resolved soon. Sorry for the delay!

brendan

2013-01-08 19:41

reporter   ~0000877

Last edited: 2013-01-08 19:44

I fixed the issue of broken css and images by appending a / to the base_url with the patch below. I was not able to install as http://example.com/wiki/ but it did work as http://wiki.example.com/ . That would appear to be a separate issue. I did not encounter other problems with the installation (IIS 6.0 on WS2003 SP2).

diff -r 9f9581ed33ac wacko/config/config_defaults.php
--- a/wacko/config/config_defaults.php Mon Aug 27 02:56:04 2012 +0200
+++ b/wacko/config/config_defaults.php Tue Jan 08 11:14:44 2013 -0800
@@ -26,6 +26,7 @@
        'site_desc' => 'Cover what you do best. Link to the rest!',
        'base_url' => ($_SERVER['SERVER_PORT'] == 443 ? 'https' : 'http').'://'.$_SERVER['SERVER_NAME'].
                ($_SERVER['SERVER_PORT'] != 80 ? ':'.$_SERVER['SERVER_PORT'] : '').
+ (strstr($_SERVER['SERVER_SOFTWARE'], 'IIS') ? '/' : '') .
                preg_replace('/(\?|&)installAction=site-config/','',$_SERVER['REQUEST_URI']),
        'rewrite_mode' => ($found_rewrite_extension ? '1' : '0'),
        'tls' => 0,

administrator

2013-01-20 23:41

administrator   ~0000881

just for testing -> replace the following line

preg_replace('/(\?|&)installAction=site-config/','',$_SERVER['REQUEST_URI']),


with

'/'.trim(strtr(dirname($_SERVER['SCRIPT_NAME']), '\\', '/'), '/') . '/',

brendan

2013-01-23 18:22

reporter   ~0000884

I tested install without my patch and with this change.
It works but the paths now have two slashes, e.g.:

http://wiki.example.com//setup/css/installer.css

administrator

2013-02-24 04:37

administrator   ~0000887

added preg_replace to remove the double slashes:

'/'.preg_replace('/\/\//', '\/', trim(strtr(dirname($_SERVER['SCRIPT_NAME']), '\\', '/'), '/')) ,

commit: http://wackowiki.hg.sourceforge.net/hgweb/wackowiki/dev/rev/292725f72e08

Issue History

Date Modified Username Field Change
2011-10-05 14:54 AndyM84 New Issue
2011-10-05 15:33 administrator Status new => acknowledged
2011-10-05 15:34 administrator Tag Attached: IIS
2011-10-05 22:55 AndyM84 Note Added: 0000819
2011-10-07 07:01 administrator Note Added: 0000820
2011-10-07 13:14 AndyM84 Note Added: 0000821
2011-10-18 14:08 AndyM84 Note Added: 0000823
2011-10-18 14:42 administrator Relationship added related to 0000259
2013-01-08 19:41 brendan Note Added: 0000877
2013-01-08 19:44 brendan Note Edited: 0000877
2013-01-08 19:49 administrator Assigned To => administrator
2013-01-08 19:49 administrator Target Version => 5.4.0
2013-01-20 23:41 administrator Note Added: 0000881
2013-01-23 18:22 brendan Note Added: 0000884
2013-02-24 04:37 administrator Note Added: 0000887
2013-02-24 04:38 administrator Status acknowledged => resolved
2013-02-24 04:38 administrator Resolution open => fixed
2013-02-24 04:38 administrator Fixed in Version => 5.4.0
2013-07-29 02:21 administrator Status resolved => feedback
2013-07-29 02:21 administrator Resolution fixed => reopened
2014-03-21 14:57 administrator Target Version 5.4.0 => 5.5.0
2015-02-19 19:26 administrator Target Version 5.5.0 => 6.1.x
2016-01-23 16:13 administrator Status feedback => resolved
2016-01-23 16:13 administrator Resolution reopened => fixed
2016-01-23 16:13 administrator Fixed in Version 5.4.0 => 5.5.0
2016-01-23 16:13 administrator Target Version 6.1.x => 5.5.0
2016-09-21 09:18 administrator Fixed in Version 5.5.0 => 5.5.rc2
2017-08-31 09:36 administrator Fixed in Version 5.5.rc2 => 5.5.0