<?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>Simon Whatley &#187; solutions</title>
	<atom:link href="http://www.simonwhatley.co.uk/tag/solutions/feed" rel="self" type="application/rss+xml" />
	<link>http://www.simonwhatley.co.uk</link>
	<description>The opposite of every great idea is another great idea</description>
	<lastBuildDate>Wed, 02 Nov 2011 09:28:34 +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>On Solving Problems</title>
		<link>http://www.simonwhatley.co.uk/on-solving-problems</link>
		<comments>http://www.simonwhatley.co.uk/on-solving-problems#comments</comments>
		<pubDate>Tue, 03 Jun 2008 11:30:08 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Albert Einstein]]></category>
		<category><![CDATA[Asides]]></category>
		<category><![CDATA[problems]]></category>
		<category><![CDATA[solutions]]></category>
		<category><![CDATA[solving]]></category>
		<category><![CDATA[thinking]]></category>
		<category><![CDATA[thought]]></category>

		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=583</guid>
		<description><![CDATA[We can't solve problems by using the same kind of thinking we used when we created them.]]></description>
			<content:encoded><![CDATA[<p>&#8220;We can&#8217;t solve problems by using the same kind of thinking we used when we created them.&#8221; &#8211; Albert Einstein</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6475233631580417";
/* 468x60 Basic */
google_ad_slot = "7117418273";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.simonwhatley.co.uk/on-solving-problems/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP.ini Permission Problems on Windows Vista</title>
		<link>http://www.simonwhatley.co.uk/phpini-permission-problems-on-windows-vista</link>
		<comments>http://www.simonwhatley.co.uk/phpini-permission-problems-on-windows-vista#comments</comments>
		<pubDate>Sun, 17 Feb 2008 22:28:41 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[administrator]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[configuring]]></category>
		<category><![CDATA[difficulties]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Microsoft Vista]]></category>
		<category><![CDATA[Microsoft Windows]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[paths]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[problems]]></category>
		<category><![CDATA[Rob Douglas]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[solutions]]></category>
		<category><![CDATA[solving]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=398</guid>
		<description><![CDATA[Installing PHP is a relatively simple task one would think. Indeed it is simple, but configuring the php.ini isn't; at least not so on Windows Vista! It is infuriating when such a relatively simple task is made inordinately complicated because of the nuances of Vista permissions. What started out as a 5 minute task took a significant number of hours searching for a suitable answer on Google, and not only by myself.]]></description>
			<content:encoded><![CDATA[<p>Installing PHP is a relatively simple task one would think. Indeed it is simple, but configuring the php.ini isn&#8217;t; at least not so on Windows Vista! It is infuriating when such a relatively simple task is made inordinately complicated because of the nuances of Vista permissions. What started out as a 5 minute task took a significant number of hours searching for a suitable answer on Google, and not only by myself.</p>
<p>The task I was trying to achieve was the installation of development versions of <a href="http://wordpress.org" title="WordPress" rel="nofollow">WordPress</a>, <a href="http://drupal.org" title="Drupal" rel="nofollow">Drupal</a>, <a href="http://www.mediawiki.org" title="MediaWiki" rel="nofollow">MediaWiki</a> and <a href="http://moodle.org" title="Moodle" rel="nofollow">Moodle</a>, all of which would require a MySQL database. Trying to load the MySQL extension should have been a simple case of uncommenting the line in the php.ini and restarting the Apache service. With Vista, this was certainly not the case.</p>
<p>I set up a very simple page detailing the <acronym title="PHP: Hypertext Preprocessor">php</acronym> configuration in an index.php file:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span> ?php <span style="color: #990000;">phpinfo</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>This showed me the default configuration path of my php.ini and extensions directory, amongst a whole host of other information.</p>
<p>In both cases the paths were incorrect. First and foremost the configuration file path stated <code>C:\Windows</code> when in fact I had installed it in the root (<code>C:\PHP5</code>). So, although I was amending the php.ini file with the correct detail, Vista was using the default values. If there is no php.ini file in Windows, then you&#8217;ll continue banging your head against a brick wall.</p>
<p>The problems didn&#8217;t stop there. Moving the php.ini file to the Windows directory under Vista isn&#8217;t a simple copy and paste task. You need to be administrator. But Vista&#8217;s administrator priviledges are more pseudo than actual! In order to amend and save the php.ini file in the Windows directory, you must run Notepad as administrator and save the file as such. Voila! Everything then works. The <code>phpinfo()</code> function returned the correct installation detail and I could continue with the job I was meant to be doing.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6475233631580417";
/* 468x60 Basic */
google_ad_slot = "7117418273";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>PS. Thanks to <a href="http://www.anucreative.com" title="Rob Douglas" rel="nofollow">Rob Douglas</a> for his help.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simonwhatley.co.uk/phpini-permission-problems-on-windows-vista/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring PHP with Apache on Windows Vista</title>
		<link>http://www.simonwhatley.co.uk/configuring-php-with-apache-on-windows-vista</link>
		<comments>http://www.simonwhatley.co.uk/configuring-php-with-apache-on-windows-vista#comments</comments>
		<pubDate>Fri, 15 Feb 2008 10:24:19 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[administrator]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[installing]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[problems]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[settings]]></category>
		<category><![CDATA[solutions]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=397</guid>
		<description><![CDATA[Installing PHP with Apache on Windows Vista is a relatively simple task until you try an configure the settings in php.ini. Problems can occur and stem from the fact that when you install PHP and edit the php.ini file, you need to not only be logged in as Administrator, but run the installer and Notepad text editor as Administrator. The php.ini file also needs to be located in the Windows directory.]]></description>
			<content:encoded><![CDATA[<p>Pre-requisites:</p>
<ol>
<li>Follow my instructions on <a href="/installing-apache-on-vista" title="Installing Apache">installing Apache</a> on Windows Vista</li>
<li>And then follow my instructions on <a href="/installing-php-with-apache-on-windows-vista" title="Installing PHP">installing PHP</a> on Windows Vista</li>
</ol>
<p>Installing <acronym title="PHP: Hypertext Preprocessor">PHP</acronym> with Apache on Windows Vista is a relatively simple task until you try an configure the settings in php.ini. Problems can occur and stem from the fact that when you install <acronym title="PHP: Hypertext Preprocessor">PHP</acronym> and edit the php.ini file, you need to not only be logged in as Administrator, but run the installer and Notepad text editor as Administrator. The php.ini file also needs to be located in the Windows directory.</p>
<p>Below is an outline of the steps to get your <acronym title="PHP: Hypertext Preprocessor">PHP</acronym> installation running and configured correctly.</p>
<ol>
<li>Run Notepad as Administrator. Go to All Programs > Accessories Right-click &#8220;Notepad&#8221; and select &#8220;Run as Administrator&#8221;. Open the php.ini file, in my case:

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">C:\PHP5\php.ini</pre></div></div>

</li>
<li>Edit the php.ini file as necessary, e.g.:

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">extension_dir = &quot;C:\PHP5\ext&quot;
upload_max_filesize = 16M
upload_tmp_dir = &quot;C:\PHP5\upload&quot;
session.save_path = &quot;C:\PHP5\session&quot;</pre></div></div>

</li>
<li>Enable the extensions you need by deleting the semi-colon at the beginning of the line. For example, you will commonly need the following MySQL extensions:

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">extension = php_mysql.dll
extension = php_mysqli.dll</pre></div></div>

</li>
<li>Save the edited php.ini file into your Windows directory. This is very important as Vista will not read the changes but will refer to the default settings.</li>
<li>Check that the <acronym title="PHP: Hypertext Preprocessor">PHP</acronym> directory has been added to your computers &#8220;Environment Variables&#8221;. Click Start, right-click on Computer, select Properties > Advanced > Environment Variables. Click on PATH and select Edit. If the <acronym title="PHP: Hypertext Preprocessor">PHP</acronym> path is there, in my case &#8220;C:\PHP5\&#8221;, all is well, otherwise add the PHP path.
<ul>
<li>System Properties:
<p><img src='http://www.simonwhatley.co.uk/blog/wp-content/uploads/2008/02/system_properties.jpg' alt='Vista System Properties' /></p>
</li>
<li>Environmental Variables
<p><img src='http://www.simonwhatley.co.uk/blog/wp-content/uploads/2008/02/environmental_variables.jpg' alt='Vista Environment Variables' /></p>
</li>
<li>Edit Environmental Variable &#8211; PATH
<p><img src='http://www.simonwhatley.co.uk/blog/wp-content/uploads/2008/02/edit_system_variable.jpg' alt='Vista Edit Environmental Variable PATH' /></p>
</li>
</ul>
</li>
<li>Open your Apache configuration file (httpd.conf). Ensure the following lines are present (at the bottom of the file):

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">LoadModule php5_module &quot;C:\PHP5\php5apache2_2.dll&quot;
AddType application/x-httpd-php .php
AcceptPathInfo on
PHPIniDir &quot;C:\Windows&quot;</pre></div></div>

<p>If there are additional <code>LoadModule</code> lines, remove them, leaving only the one that relates to your version of Apache.</li>
<li>Find the DirectoryIndex in the Apache config and append <code>index.php</code>, e.g.:

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&lt;ifmodule dir_module&gt;
	DirectoryIndex index.html index.php
&lt;/ifmodule&gt;</pre></div></div>

</li>
<li>Restart the Apache service.</li>
<li>Create a index.php file in your webroot and add the following lines:

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&lt;?php phpinfo(); ?&gt;</pre></div></div>

</li>
<li>Navigate to the file (e.g. http://localhost/index.php) and you will be presented with all the <acronym title="PHP: Hypertext Preprocessor">PHP</acronym> and server settings. You&#8217;re now good to go.</li>
</ol>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6475233631580417";
/* 468x60 Basic */
google_ad_slot = "7117418273";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.simonwhatley.co.uk/configuring-php-with-apache-on-windows-vista/feed</wfw:commentRss>
		<slash:comments>48</slash:comments>
		</item>
		<item>
		<title>Installing PHP with Apache on Windows Vista</title>
		<link>http://www.simonwhatley.co.uk/installing-php-with-apache-on-windows-vista</link>
		<comments>http://www.simonwhatley.co.uk/installing-php-with-apache-on-windows-vista#comments</comments>
		<pubDate>Thu, 14 Feb 2008 09:50:38 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[installing]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[problems]]></category>
		<category><![CDATA[solutions]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=396</guid>
		<description><![CDATA[Following on from my posts about installing Apache and ColdFusion on Vista, it is now the turn of PHP.]]></description>
			<content:encoded><![CDATA[<ol>
<li>
Download the current version of <acronym title="PHP: Hypertext Preprocessor">PHP</acronym> from <a href="http://www.php.net/downloads.php" title="PHP Download" rel="nofollow">http://www.php.net/downloads.php</a>. Get the Windows installer (in my case version 5.2.5).
</li>
<li>Uninstall any previous versions of <acronym title="PHP: Hypertext Preprocessor">PHP</acronym>. Delete any extraneous remaining directories.</li>
<li>Disable antivirus and firewall software.</li>
<li>Disable Windows Defender.</li>
<li>Disable User Account Control (<acronym title="User Account Control">UAC</acronym>).</li>
<li>
Use the command prompt to manually run the <acronym title="PHP: Hypertext Preprocessor">PHP</acronym> installer. Go to All Programs > Accessories Right-click &#8220;Command Prompt&#8221; and select &#8220;Run as Administrator&#8221;.</p>
<p>Browse to the location of the <acronym title="PHP: Hypertext Preprocessor">PHP</acronym> install file e.g.:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">C:\Users\Simon\Desktop\</pre></div></div>

</li>
<li>
In the command prompt type:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">C:\Users\Simon\Desktop\msiexec /i php-5.2.5-win32-installer.msi</pre></div></div>

<p>And hit the [Enter] button.
</li>
<li>
The installer should start and you should see the screenshot below. Click &#8220;Next&#8221;.</p>
<p><img src='http://www.simonwhatley.co.uk/blog/wp-content/uploads/2008/02/php-install-01.jpg' alt='PHP Install - Step 1' /></p>
</li>
<li>
Read and accept the terms of the license agreement and click &#8220;Next&#8221;.</p>
<p><img src='http://www.simonwhatley.co.uk/blog/wp-content/uploads/2008/02/php-install-02.jpg' alt='PHP Install - Step 2' /></p>
</li>
<li>
Choose your install folder and click &#8220;Next&#8221;.</p>
<p><img src='http://www.simonwhatley.co.uk/blog/wp-content/uploads/2008/02/php-install-03.jpg' alt='PHP Install - Step 3' /></p>
</li>
<li>
Choose the web server you wish to setup. In my case I will be using Apache 2.2.x. Click &#8220;Next&#8221;.</p>
<p><img src='http://www.simonwhatley.co.uk/blog/wp-content/uploads/2008/02/php-install-04.jpg' alt='PHP Install - Step 4' /></p>
</li>
<li>
Browse to the Apache Configuration Directory. In my case this is:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">C:\Program Files\Apache Software Foundation\Apache2.2\conf\</pre></div></div>

<p>Click &#8220;Next&#8221;.</p>
<p><img src='http://www.simonwhatley.co.uk/blog/wp-content/uploads/2008/02/php-install-05.jpg' alt='PHP Install - Step 5' /></p>
</li>
<li>
Choose the items to install. In my case I have chosen to install all items. Click &#8220;Next&#8221;.</p>
<p><img src='http://www.simonwhatley.co.uk/blog/wp-content/uploads/2008/02/php-install-06.jpg' alt='PHP Install - Step 6' /></p>
</li>
<li>
<acronym title="PHP: Hypertext Preprocessor">PHP</acronym> is now ready to install.</p>
<p><img src='http://www.simonwhatley.co.uk/blog/wp-content/uploads/2008/02/php-install-07.jpg' alt='PHP Install - Step 7' /></p>
</li>
<li>
The installation is now complete. The next task is to <a href="/configuring-php-with-apache-on-windows-vista" title="configure PHP">configure PHP</a>.</p>
<p><img src='http://www.simonwhatley.co.uk/blog/wp-content/uploads/2008/02/php-install-08.jpg' alt='PHP Install - Step 8' /></p>
</li>
</ol>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6475233631580417";
/* 468x60 Basic */
google_ad_slot = "7117418273";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.simonwhatley.co.uk/installing-php-with-apache-on-windows-vista/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

