<?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>Graham Nott Technology Blog &#187; CiviCRM</title>
	<atom:link href="http://www.grahamnott.com/category/software-development/civicrm-software-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.grahamnott.com</link>
	<description></description>
	<lastBuildDate>Wed, 19 Sep 2012 18:27:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CiviCRM + WordPress + Windows</title>
		<link>http://www.grahamnott.com/2012/02/civicrm-wordpress-windows/</link>
		<comments>http://www.grahamnott.com/2012/02/civicrm-wordpress-windows/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 22:24:40 +0000</pubDate>
		<dc:creator>graham</dc:creator>
				<category><![CDATA[CiviCRM]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[civicrm]]></category>
		<category><![CDATA[http error 500]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.grahamnott.com/?p=61</guid>
		<description><![CDATA[Today I am testing the CiviCRM 4.1 beta 3 release on WordPress.  On WordPress, you may ask? For those who are already CiviCRM users, you may be as surprised as I was to see it becoming available as a WordPress plugin. Until recently, you could only run it on Drupal or Joomla. You can read [...]]]></description>
			<content:encoded><![CDATA[<p>Today I am testing the CiviCRM 4.1 beta 3 release on WordPress.  On WordPress, you may ask? For those who are already CiviCRM users, you may be as surprised as I was to see it becoming available as a WordPress plugin. Until recently, you could only run it on Drupal or Joomla. You can read the CiviCRM blog for more information about <a title="CiviCRM 4.1 beta 3 released" href="http://civicrm.org/blogs/kurund/civicrm-41-beta-3-released" target="_blank">CiviCRM 4.1 beta 3</a>.</p>
<p>I'm running on Windows 7 right now for kicking the tires, as it were. I had to do a couple small changes to get it going, so I am sharing them below:</p>
<p><strong>1. Writable directories and files</strong></p>
<p>On the <a title="Wordpress installation guide for CiviCRM 4.1" href="http://wiki.civicrm.org/confluence/display/CRMDOC41/WordPress+Installation+Guide+for+CiviCRM+4.1" target="_blank">WordPress Installation Guide for CiviCRM 4.1</a>, you'll see the error mentioned "The user account used by your web-server needs to be granted write access to the following directory..." and a link to the CiviCRM forums. The suggested fix to change the read-only flag on the directories and files did not work for me, using the GUI or command line on Windows 7 (as administrator or not as administrator).</p>
<p>The workaround that allowed me to continue was to comment out the checking for writable directories in the /plugins/civicrm/civicrm/install/index.php lines 368 to 370:</p>
<pre>        foreach ( $writableDirectories as $dir ) {
            /*$this-&gt;requireWriteable( CIVICRM_DIRECTORY_SEPARATOR . $dir,
                array("File permissions", "Is the $dir folder writeable?", null ),
                true );*/
        }</pre>
<p><strong>2. Fix an HTTP Error 500 Internal Server Error</strong></p>
<p>I clicked the CiviCRM install button and everything seemed to be running. But, clicking "CiviCRM" on the sidebar, I got an HTTP 500 error. Uh oh. Nothing specific was mentioned in the web server logs as to why. After some trial and error, I fixed it by editing the civicrm.settings.php file. $civicrm_root and CIVICRM_TEMPLATE_COMPILEDIR variables. They had a mixture of forward slashes, backslashes and double backslashes in the paths. Once I changed them all to single forward slashes, I could reach CiviCRM. My example below:</p>
<pre style="padding-left: 30px;">global $civicrm_root;

$civicrm_root = 'D:/www/wordpress/public_html/wp-content/plugins/civicrm/civicrm/';
define( 'CIVICRM_TEMPLATE_COMPILEDIR',
'D:/www/wordpress/public_html/wp-content/plugins/files/civicrm/templates_c/' );</pre>
<pre style="padding-left: 30px;"></pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.grahamnott.com/2012/02/civicrm-wordpress-windows/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
