selfoss running on IIS 7
In order to work do the following changes:
1 - Point Web Site to public folder rather than the root folder.
2 - Create a "index.php" file in public folder width the following line:
<?php chdir('../'); include('index.php'); ?>
3 - Set the web.config with the following data:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Rewrite" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" pattern="^.*\.svg$|^.*\.ttf$|^.*\.css$|^.*\.js$|^.*\.jpg$|^.*\.jpeg$|^.*\.png$|^.*\.gif$|^.*\.ico$|^.*\.htm$|^.*\.html$|^.*\.txt$|^.*\.xml$|^.*\.xlsx$|^.*\.xls$|^.*\.swf$|^.*\.flv|^.*\.mp4|^.*\.ogg$" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?{R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
<directoryBrowse enabled="false" />
<httpErrors errorMode="DetailedLocalOnly" defaultResponseMode="File"></httpErrors>
<staticContent>
<remove fileExtension=".ttf" />
<remove fileExtension=".svg" />
<mimeMap fileExtension=".ttf" mimeType="application/octet-stream" />
<mimeMap fileExtension=".svg" mimeType="application/octet-stream" />
</staticContent>
</system.webServer>
</configuration>
4 - Modify the file "controllers\Index.php" (around line 180) function "update" remove the comparison "$_SERVER['SERVER_ADDR'] != $_SERVER['REMOTE_ADDR']", because $_SERVER['SERVER_ADDR'] does not exists in IIS, or use LOCAL_ADDR instead.
5 - Add virtual directory "favicons" pointing to "<DIR>\data\favicons"
6 - Add virtual directory "thumbnails" pointing to "<DIR>\data\thumbnails"
7 - Enjoy!
Complete thread:
- Problems getting selfoss running -
mdeeter,
2013-03-16, 23:48
- Problems getting selfoss running - polohb, 2013-03-17, 09:28
- Problems getting selfoss running -
pumm3l,
2013-07-09, 15:06
- Problems getting selfoss running -
mdeeter,
2013-07-09, 15:48
- Problems getting selfoss running -
pumm3l,
2013-07-09, 16:13
- Problems getting selfoss running -
pumm3l,
2013-07-09, 20:47
- selfoss running on IIS 7 -
matup,
2013-07-12, 05:35
- selfoss running on IIS 7 -
pumm3l,
2013-07-12, 14:04
- selfoss running on IIS 7 - matup, 2013-07-12, 17:47
- selfoss running on IIS 7 -
pumm3l,
2013-07-12, 14:04
- selfoss running on IIS 7 -
matup,
2013-07-12, 05:35
- Problems getting selfoss running -
pumm3l,
2013-07-09, 20:47
- Problems getting selfoss running -
pumm3l,
2013-07-09, 16:13
- Problems getting selfoss running -
mdeeter,
2013-07-09, 15:48