<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MRVirtual &#187; Symphony CMS</title>
	<atom:link href="http://mrvirtual.de/category/symphony-cms/feed/" rel="self" type="application/rss+xml" />
	<link>http://mrvirtual.de</link>
	<description>Blogging about Microsoft Software</description>
	<lastBuildDate>Fri, 03 Jul 2009 23:40:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing Symphony CMS on IIS 7.0</title>
		<link>http://mrvirtual.de/2009/05/29/installing-symphony-cms-on-iis-70/</link>
		<comments>http://mrvirtual.de/2009/05/29/installing-symphony-cms-on-iis-70/#comments</comments>
		<pubDate>Fri, 29 May 2009 00:54:08 +0000</pubDate>
		<dc:creator>MRVirtual</dc:creator>
				<category><![CDATA[IIS 7.0]]></category>
		<category><![CDATA[Symphony CMS]]></category>
		<category><![CDATA[URL Rewrite]]></category>
		<category><![CDATA[Windows Server 2008]]></category>

		<guid isPermaLink="false">http://mrvirtual.de/?p=13</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>Perhaps some of you know the <a href="http://symphony-cms.com/" target="_blank">Symphony Content Management System</a>. A customer of mine wanted to run it on Windows Server 2008 with IIS 7.0 (in fact on the very same server this <a href="http://wordpress.org/" target="_blank">WordPress</a> installation is running on). But sadly Symphony doesn’t run out of the box on IIS.</p>
<p>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 <a href="http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-70/" target="_blank">Using FastCGI to Host PHP Applications on IIS 7.0</a> over at iis.net. The same is true for MySQL, so check out <a href="http://learn.iis.net/page.aspx/610/setting-up-mysql-for-php-applications/" target="_blank">Setting up MySQL for PHP applications</a>.<br />
In order to install Symphony CMS with full functionality make sure you have the following PHP extensions enabled:</p>
<ul>
<li> php_mbstring.dll</li>
<li> php_mcrypt.dll</li>
<li>php_mysql.dll</li>
<li>php_xsl.dll</li>
<li>php_zip.dll</li>
</ul>
<p>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<br />
<code><br />
define('DOCROOT', rtrim(dirname(dirname(__FILE__)), '/'));<br />
define('DOMAIN', rtrim(rtrim($_SERVER['HTTP_HOST'], '/') . dirname(dirname($_SERVER['PHP_SELF'])), '/'));<br />
</code><br />
right at the beginning.<br />
Change those to<br />
<code><br />
define('DOCROOT', rtrim(dirname(dirname(__FILE__)), '/\\'));<br />
define('DOMAIN', rtrim(rtrim($_SERVER['HTTP_HOST'], '/\\') . dirname(dirname($_SERVER['PHP_SELF'])), '/\\'));<br />
</code><br />
(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:<br />
<code><br />
define('DOCROOT', rtrim(dirname(__FILE__), '/\\'));<br />
define('DOMAIN', rtrim(rtrim($_SERVER['HTTP_HOST'], '/\\') . dirname($_SERVER['PHP_SELF']), '/\\'));<br />
</code><br />
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 <a href="http://learn.iis.net/page.aspx/460/using-url-rewrite-module/" target="_blank">URL Rewrite Module</a>. 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:<br />
<code><br />
&lt;rewrite&gt;<br />
&lt;rules&gt;<br />
&lt;rule name="Favicon Rule Stopper" stopProcessing="true"&gt;<br />
&lt;match url="favicon.ico$" /&gt;<br />
&lt;conditions logicalGrouping="MatchAll" /&gt;<br />
&lt;/rule&gt;<br />
&lt;rule name="Image Rule" stopProcessing="true"&gt;<br />
&lt;match url="^image\/(.+\.(jpg|gif|jpeg|png|bmp))$" /&gt;<br />
&lt;conditions logicalGrouping="MatchAll" /&gt;<br />
&lt;action type="Rewrite" url="/extensions/jit_image_manipulation/lib/image.php?param={R:1}" appendQueryString="false" /&gt;<br />
&lt;/rule&gt;<br />
&lt;rule name="Add Trailing Slash" stopProcessing="true"&gt;<br />
&lt;match url="^(.*)$" ignoreCase="false" /&gt;<br />
&lt;conditions logicalGrouping="MatchAll"&gt;<br />
&lt;add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /&gt;<br />
&lt;add input="{URL}" negate="true" pattern="/$" ignoreCase="false" /&gt;<br />
&lt;add input="{URL}" negate="true" pattern="(.*)/$" ignoreCase="false" /&gt;<br />
&lt;/conditions&gt;<br />
&lt;action type="Redirect" url="/{R:1}/" redirectType="Permanent" /&gt;<br />
&lt;/rule&gt;<br />
&lt;rule name="Main Rewrite" stopProcessing="true"&gt;<br />
&lt;match url="^(.*)\/$" ignoreCase="false" /&gt;<br />
&lt;conditions logicalGrouping="MatchAll"&gt;<br />
&lt;add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /&gt;<br />
&lt;/conditions&gt;<br />
&lt;action type="Rewrite" url="/index.php?page={R:1}&amp;amp;{QUERY_STRING}" appendQueryString="false" /&gt;<br />
&lt;/rule&gt;<br />
&lt;/rules&gt;<br />
&lt;/rewrite&gt;<br />
</code><br />
The folder /symphony needs separate rewrite rules. Set up a new web.config file there and set the rewrite-section to<br />
<code><br />
&lt;rewrite&gt;<br />
&lt;rules&gt;<br />
&lt;remove name="Add Trailing Slash" /&gt;<br />
&lt;remove name="Main Rewrite" /&gt;<br />
&lt;remove name="Image Rule" /&gt;<br />
&lt;rule name="Main Rewrite" stopProcessing="true"&gt;<br />
&lt;match url="^(.*)\/$" ignoreCase="false" /&gt;<br />
&lt;conditions logicalGrouping="MatchAll"&gt;<br />
&lt;add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /&gt;<br />
&lt;/conditions&gt;<br />
&lt;action type="Rewrite" url="/symphony/index.php?page={R:1}&amp;amp;{QUERY_STRING}" appendQueryString="false" /&gt;<br />
&lt;/rule&gt;<br />
&lt;rule name="Add Trailing Slash" stopProcessing="true"&gt;<br />
&lt;match url="^(.*)$" ignoreCase="false" /&gt;<br />
&lt;conditions logicalGrouping="MatchAll"&gt;<br />
&lt;add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /&gt;<br />
&lt;add input="{URL}" negate="true" pattern="/symphony$" ignoreCase="false" /&gt;<br />
&lt;add input="{URL}" negate="true" pattern="(.*)/$" ignoreCase="false" /&gt;<br />
&lt;/conditions&gt;<br />
&lt;action type="Redirect" url="/symphony/{R:1}/" redirectType="Permanent" /&gt;<br />
&lt;/rule&gt;<br />
&lt;/rules&gt;<br />
&lt;/rewrite&gt;<br />
</code><br />
So this really was the last step and your installation of Symphony CMS on IIS 7.0 should be up and running!</p>
<p>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.</p>
]]></content:encoded>
			<wfw:commentRss>http://mrvirtual.de/2009/05/29/installing-symphony-cms-on-iis-70/feed/</wfw:commentRss>
		<slash:comments>226</slash:comments>
		</item>
	</channel>
</rss>
