Installing Symphony CMS on IIS 7.0 May 29, 2009

Perhaps some of you know the Symphony Content Management System. A customer of mine wanted to run it on Windows Server 2008 with IIS 7.0 (in fact on the very same server this WordPress installation is running on). But sadly Symphony doesn’t run out of the box on IIS.

Of course as a base setup you need PHP and MySQL running. A great source that describes how to achieve this would be the article Using FastCGI to Host PHP Applications on IIS 7.0 over at iis.net. The same is true for MySQL, so check out Setting up MySQL for PHP applications.
In order to install Symphony CMS with full functionality make sure you have the following PHP extensions enabled:

  • php_mbstring.dll
  • php_mcrypt.dll
  • php_mysql.dll
  • php_xsl.dll
  • php_zip.dll

Before you can start the installation process of Symphony, you have to alter 2 files. Please locate the index.php file in the root folder of the Symphony website. There you should see the lines

define('DOCROOT', rtrim(dirname(dirname(__FILE__)), '/'));
define('DOMAIN', rtrim(rtrim($_SERVER['HTTP_HOST'], '/') . dirname(dirname($_SERVER['PHP_SELF'])), '/'));

right at the beginning.
Change those to

define('DOCROOT', rtrim(dirname(dirname(__FILE__)), '/\\'));
define('DOMAIN', rtrim(rtrim($_SERVER['HTTP_HOST'], '/\\') . dirname(dirname($_SERVER['PHP_SELF'])), '/\\'));

(notice the added double backslashes) and apply the same procedure to the index.php located inside the /symphony folder. As a result you should get:

define('DOCROOT', rtrim(dirname(__FILE__), '/\\'));
define('DOMAIN', rtrim(rtrim($_SERVER['HTTP_HOST'], '/\\') . dirname($_SERVER['PHP_SELF']), '/\\'));

After this step you should be able to install Symphony CMS as you’re used to! The installation process will work now, but there is one more thing you have to adjust. Symphony CMS utilizes the mod_rewrite engine if installed on an Apache web server. The IIS 7.0 pendant to that is called URL Rewrite Module. You’re gonna have to download and install this to get Symphony running. With the Rewrite Module installed you finally need to set up the rules equally to the mod_rewrite rules defined in the .htaccess files. The relevant portion of the web.config file in the root of your website should look like this:

<rewrite>
<rules>
<rule name="Favicon Rule Stopper" stopProcessing="true">
<match url="favicon.ico$" />
<conditions logicalGrouping="MatchAll" />
</rule>
<rule name="Image Rule" stopProcessing="true">
<match url="^image\/(.+\.(jpg|gif|jpeg|png|bmp))$" />
<conditions logicalGrouping="MatchAll" />
<action type="Rewrite" url="/extensions/jit_image_manipulation/lib/image.php?param={R:1}" appendQueryString="false" />
</rule>
<rule name="Add Trailing Slash" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{URL}" negate="true" pattern="/$" ignoreCase="false" />
<add input="{URL}" negate="true" pattern="(.*)/$" ignoreCase="false" />
</conditions>
<action type="Redirect" url="/{R:1}/" redirectType="Permanent" />
</rule>
<rule name="Main Rewrite" stopProcessing="true">
<match url="^(.*)\/$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="/index.php?page={R:1}&amp;{QUERY_STRING}" appendQueryString="false" />
</rule>
</rules>
</rewrite>

The folder /symphony needs separate rewrite rules. Set up a new web.config file there and set the rewrite-section to

<rewrite>
<rules>
<remove name="Add Trailing Slash" />
<remove name="Main Rewrite" />
<remove name="Image Rule" />
<rule name="Main Rewrite" stopProcessing="true">
<match url="^(.*)\/$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="/symphony/index.php?page={R:1}&amp;{QUERY_STRING}" appendQueryString="false" />
</rule>
<rule name="Add Trailing Slash" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{URL}" negate="true" pattern="/symphony$" ignoreCase="false" />
<add input="{URL}" negate="true" pattern="(.*)/$" ignoreCase="false" />
</conditions>
<action type="Redirect" url="/symphony/{R:1}/" redirectType="Permanent" />
</rule>
</rules>
</rewrite>

So this really was the last step and your installation of Symphony CMS on IIS 7.0 should be up and running!

In this case, I used the latest release of Symphony, which has the version number 2.0.2. I hope I could help some of you out there.

Share this post:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • TwitThis
  • Live
  • Technorati
  • LinkArena
  • MisterWong
226 Comments
no prescription ativan August 10th, 2009
soma August 10th, 2009
ativan August 10th, 2009
valium August 10th, 2009
xanax August 10th, 2009
ambien August 10th, 2009

play independent poker league, http://hieroglyph.freedesktop.org/wiki/m?action=AttachFile&do=get&target=12.txt, jmtczw, http://coanda.amath.unc.edu/scicomp/m?action=AttachFile&do=get&target=8.txt, 31045, http://fontconfig.org/wiki/m?action=AttachFile&do=get&target=3.txt, 697, http://techteam.uwcs.co.uk/m?action=AttachFile&do=get&target=18.txt, fhemhi, http://overcards.com/wiki/moin.cgi/m?action=AttachFile&do=get&target=2.txt, xmfqu, http://www.srcf.ucam.org/rooms/m?action=AttachFile&do=get&target=19.txt, %-D, http://wiki.ioelive.com/m?action=AttachFile&do=get&target=1.txt, ayw, http://www.softnet.tuc.gr/~vsam/courses/m?action=AttachFile&do=get&target=17.txt, 8[[, http://agroecologia.cenditel.gob.ve/wiki/m?action=AttachFile&do=get&target=14.txt, swpr, http://wiki.edumagnet.org/m?action=AttachFile&do=get&target=7.txt, 4435, http://eventuality.freedesktop.org/wiki/m?action=AttachFile&do=get&target=4.txt, :) , http://portland.freedesktop.org/wiki/m?action=AttachFile&do=get&target=10.txt, %-O, http://www.fontconfig.org/wiki/m?action=AttachFile&do=get&target=13.txt, >:-PP, http://isabel.dit.upm.es/isamoin/m?action=AttachFile&do=get&target=15.txt, hsy, http://www.uni-ulm.de/~msauter1/wiki/m?action=AttachFile&do=get&target=9.txt, >:[[[, http://clearsvn.open.collab.net/wiki/m?action=AttachFile&do=get&target=5.txt, 6581, http://sbcr2.bii.a-star.edu.sg/regmed/m?action=AttachFile&do=get&target=11.txt, 09258, http://wiki.compiz.org/m?action=AttachFile&do=get&target=20.txt, :-O, http://llug.skn.wsinf.edu.pl/m?action=AttachFile&do=get&target=6.txt, 718,

strip poker porn video, http://hieroglyph.freedesktop.org/wiki/m?action=AttachFile&do=get&target=12.txt, xqpf, http://coanda.amath.unc.edu/scicomp/m?action=AttachFile&do=get&target=8.txt, >:-]]], http://fontconfig.org/wiki/m?action=AttachFile&do=get&target=3.txt, knksj, http://techteam.uwcs.co.uk/m?action=AttachFile&do=get&target=18.txt, =-], http://www.srcf.ucam.org/rooms/m?action=AttachFile&do=get&target=19.txt, 33690, http://wiki.ioelive.com/m?action=AttachFile&do=get&target=1.txt, 8[, http://www.softnet.tuc.gr/~vsam/courses/m?action=AttachFile&do=get&target=17.txt, :-P PP, http://agroecologia.cenditel.gob.ve/wiki/m?action=AttachFile&do=get&target=14.txt, 0940, http://wiki.edumagnet.org/m?action=AttachFile&do=get&target=7.txt, akxh, http://eventuality.freedesktop.org/wiki/m?action=AttachFile&do=get&target=4.txt, 833, http://portland.freedesktop.org/wiki/m?action=AttachFile&do=get&target=10.txt, skdy, http://www.fontconfig.org/wiki/m?action=AttachFile&do=get&target=13.txt, 101, http://iicwiki.bio.jhu.edu/iicwiki/m?action=AttachFile&do=get&target=16.txt, munppw, http://isabel.dit.upm.es/isamoin/m?action=AttachFile&do=get&target=15.txt, qzczet, http://www.uni-ulm.de/~msauter1/wiki/m?action=AttachFile&do=get&target=9.txt, 3000, http://clearsvn.open.collab.net/wiki/m?action=AttachFile&do=get&target=5.txt, zzlvm, http://wiki.compiz.org/m?action=AttachFile&do=get&target=20.txt, 122, http://sbcr2.bii.a-star.edu.sg/regmed/m?action=AttachFile&do=get&target=11.txt, wxncej, http://llug.skn.wsinf.edu.pl/m?action=AttachFile&do=get&target=6.txt, =-]]],

free online poker for real, http://hieroglyph.freedesktop.org/wiki/m?action=AttachFile&do=get&target=12.txt, =-[[[, http://coanda.amath.unc.edu/scicomp/m?action=AttachFile&do=get&target=8.txt, 37732, http://techteam.uwcs.co.uk/m?action=AttachFile&do=get&target=18.txt, 825, http://fontconfig.org/wiki/m?action=AttachFile&do=get&target=3.txt, lahq, http://overcards.com/wiki/moin.cgi/m?action=AttachFile&do=get&target=2.txt, 768, http://www.srcf.ucam.org/rooms/m?action=AttachFile&do=get&target=19.txt, xkkiu, http://wiki.ioelive.com/m?action=AttachFile&do=get&target=1.txt, 8-((, http://www.softnet.tuc.gr/~vsam/courses/m?action=AttachFile&do=get&target=17.txt, %D, http://wiki.edumagnet.org/m?action=AttachFile&do=get&target=7.txt, aqna, http://eventuality.freedesktop.org/wiki/m?action=AttachFile&do=get&target=4.txt, 49120, http://portland.freedesktop.org/wiki/m?action=AttachFile&do=get&target=10.txt, 3902, http://www.fontconfig.org/wiki/m?action=AttachFile&do=get&target=13.txt, mdjkl, http://iicwiki.bio.jhu.edu/iicwiki/m?action=AttachFile&do=get&target=16.txt, 817707, http://isabel.dit.upm.es/isamoin/m?action=AttachFile&do=get&target=15.txt, 650440, http://www.uni-ulm.de/~msauter1/wiki/m?action=AttachFile&do=get&target=9.txt, pbk, http://clearsvn.open.collab.net/wiki/m?action=AttachFile&do=get&target=5.txt, 70665, http://wiki.compiz.org/m?action=AttachFile&do=get&target=20.txt, bqtoi, http://sbcr2.bii.a-star.edu.sg/regmed/m?action=AttachFile&do=get&target=11.txt, 8), http://llug.skn.wsinf.edu.pl/m?action=AttachFile&do=get&target=6.txt, vxrz,

new season high stakes poker, http://hieroglyph.freedesktop.org/wiki/m?action=AttachFile&do=get&target=12.txt, 6990, http://techteam.uwcs.co.uk/m?action=AttachFile&do=get&target=18.txt, 468, http://fontconfig.org/wiki/m?action=AttachFile&do=get&target=3.txt, 949104, http://overcards.com/wiki/moin.cgi/m?action=AttachFile&do=get&target=2.txt, =DD, http://www.srcf.ucam.org/rooms/m?action=AttachFile&do=get&target=19.txt, sds, http://wiki.ioelive.com/m?action=AttachFile&do=get&target=1.txt, zdgm, http://agroecologia.cenditel.gob.ve/wiki/m?action=AttachFile&do=get&target=14.txt, 266174, http://www.softnet.tuc.gr/~vsam/courses/m?action=AttachFile&do=get&target=17.txt, 329, http://wiki.edumagnet.org/m?action=AttachFile&do=get&target=7.txt, cisj, http://eventuality.freedesktop.org/wiki/m?action=AttachFile&do=get&target=4.txt, :-P PP, http://portland.freedesktop.org/wiki/m?action=AttachFile&do=get&target=10.txt, mvca, http://www.fontconfig.org/wiki/m?action=AttachFile&do=get&target=13.txt, 065364, http://iicwiki.bio.jhu.edu/iicwiki/m?action=AttachFile&do=get&target=16.txt, cvb, http://isabel.dit.upm.es/isamoin/m?action=AttachFile&do=get&target=15.txt, 123, http://www.uni-ulm.de/~msauter1/wiki/m?action=AttachFile&do=get&target=9.txt, =)), http://clearsvn.open.collab.net/wiki/m?action=AttachFile&do=get&target=5.txt, 169243, http://wiki.compiz.org/m?action=AttachFile&do=get&target=20.txt, :-D D, http://sbcr2.bii.a-star.edu.sg/regmed/m?action=AttachFile&do=get&target=11.txt, 753, http://llug.skn.wsinf.edu.pl/m?action=AttachFile&do=get&target=6.txt, sxzc,

palazzo casino host, http://hieroglyph.freedesktop.org/wiki/m?action=AttachFile&do=get&target=12.txt, 69494, http://coanda.amath.unc.edu/scicomp/m?action=AttachFile&do=get&target=8.txt, 138190, http://techteam.uwcs.co.uk/m?action=AttachFile&do=get&target=18.txt, =], http://fontconfig.org/wiki/m?action=AttachFile&do=get&target=3.txt, 8-]], http://overcards.com/wiki/moin.cgi/m?action=AttachFile&do=get&target=2.txt, ttvma, http://www.srcf.ucam.org/rooms/m?action=AttachFile&do=get&target=19.txt, >:(((, http://wiki.ioelive.com/m?action=AttachFile&do=get&target=1.txt, :( (, http://agroecologia.cenditel.gob.ve/wiki/m?action=AttachFile&do=get&target=14.txt, 46983, http://www.softnet.tuc.gr/~vsam/courses/m?action=AttachFile&do=get&target=17.txt, eoprb, http://wiki.edumagnet.org/m?action=AttachFile&do=get&target=7.txt, 1486, http://eventuality.freedesktop.org/wiki/m?action=AttachFile&do=get&target=4.txt, 200967, http://portland.freedesktop.org/wiki/m?action=AttachFile&do=get&target=10.txt, 741, http://www.fontconfig.org/wiki/m?action=AttachFile&do=get&target=13.txt, 934, http://iicwiki.bio.jhu.edu/iicwiki/m?action=AttachFile&do=get&target=16.txt, >:-[[, http://isabel.dit.upm.es/isamoin/m?action=AttachFile&do=get&target=15.txt, 114, http://www.uni-ulm.de/~msauter1/wiki/m?action=AttachFile&do=get&target=9.txt, zrl, http://clearsvn.open.collab.net/wiki/m?action=AttachFile&do=get&target=5.txt, 5308, http://wiki.compiz.org/m?action=AttachFile&do=get&target=20.txt, >:-O, http://llug.skn.wsinf.edu.pl/m?action=AttachFile&do=get&target=6.txt, :-( ,

Hi! http://www.unicyclist.com/forums/member.php?u=21157 hydrocodone online prescription

buy xanax online August 11th, 2009
buy fioricet online August 11th, 2009

Hi! http://www.kaboodle.com/fioricet_online buy fioricet online

order accutane August 11th, 2009
generic levitra August 11th, 2009
buy levitra online August 11th, 2009

Hi! http://www.kaboodle.com/parker_young buy levitra online

buy levitra August 11th, 2009
purchase accutane August 11th, 2009
levitra online August 11th, 2009
cheap levitra August 11th, 2009
buy cheap levitra August 11th, 2009
levitra 20mg August 11th, 2009
cheap levitra online August 11th, 2009

Hi! http://www.kaboodle.com/jeff_nelson cheap levitra online

buy nolvadex August 11th, 2009
buy lasix August 11th, 2009
buy generic levitra August 11th, 2009

Hi! http://www.kaboodle.com/jeffery_taylor buy generic levitra

nolvadex online August 11th, 2009
buy lasix online August 11th, 2009
xanax 1mg August 11th, 2009
xanax 0.25mg August 11th, 2009
xanax 0.5mg August 11th, 2009
buy ambien August 11th, 2009
buy ambien online August 11th, 2009
alprazolam 2mg August 11th, 2009
cheap alprazolam August 11th, 2009
alprazolam online August 11th, 2009
buy alprazolam online August 11th, 2009

Hi! http://www.kaboodle.com/jeffery_harris buy alprazolam online

alprazolam 1mg August 11th, 2009
buy tramadol August 11th, 2009
cheap ambien August 11th, 2009
nexus one January 10th, 2010
Leave a Reply