<?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>rtraction - London, Ontario - Web Design, Web Development and Strategic Consulting &#187; apache</title>
	<atom:link href="http://www.rtraction.com/blog/tag/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://www.rtraction.com/blog</link>
	<description>rtraction blog - Web Design, Web Development and Strategic Consulting</description>
	<lastBuildDate>Wed, 08 Sep 2010 17:59:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Howto Setup PHP (Apache, Mysql) on Windows</title>
		<link>http://www.rtraction.com/blog/devit/howto-setup-php-apache-mysql-on-windows.html</link>
		<comments>http://www.rtraction.com/blog/devit/howto-setup-php-apache-mysql-on-windows.html#comments</comments>
		<pubDate>Tue, 26 May 2009 13:31:41 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Devit!]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.rtraction.com/blog/?p=259</guid>
		<description><![CDATA[First Grab the latest copies of the following:
Apache (MSI with OpenSSL): http://httpd.apache.org/download.cgi
PHP Windows Binary (Zip Package): http://www.php.net/downloads.php 
MySql Community Engine (MSI): http://dev.mysql.com/downloads/mysql/5.1.html#win32
MySql Tools (MSI): http://dev.mysql.com/downloads/gui-tools/5.0.html
Once you&#8217;ve downloaded the latest files follow these steps below:
 ol li { margin-bottom: 0; } 

Install Apache

Network Domain: it doesn&#8217;t matter
Server Name: it doesn&#8217;t matter


Unzip PHP into c:\php
Install MySql
Install MySql [...]]]></description>
			<content:encoded><![CDATA[<p>First Grab the latest copies of the following:</p>
<p>Apache (MSI with OpenSSL): <a title="Apache (MSI with OpenSSL)" href="http://httpd.apache.org/download.cgi" target="_blank">http://httpd.apache.org/download.cgi</a><br />
PHP Windows Binary (Zip Package): <a title="PHP Windows Binary (Zip Package)" href="http://www.php.net/downloads.php" target="_blank">http://www.php.net/downloads.php </a><br />
MySql Community Engine (MSI): <a title="MySql Community Engine (MSI)" href="http://dev.mysql.com/downloads/mysql/5.1.html#win32" target="_blank">http://dev.mysql.com/downloads/mysql/5.1.html#win32</a><br />
MySql Tools (MSI): <a title="MySql Tools" href="http://dev.mysql.com/downloads/gui-tools/5.0.html" target="_blank">http://dev.mysql.com/downloads/gui-tools/5.0.html</a></p>
<p>Once you&#8217;ve downloaded the latest files follow these steps below:</p>
<style> ol li { margin-bottom: 0; } </style>
<ol>
<li>Install Apache
<ol>
<li>Network Domain: it doesn&#8217;t matter</li>
<li>Server Name: it doesn&#8217;t matter</li>
</ol>
</li>
<li>Unzip PHP into c:\php</li>
<li>Install MySql</li>
<li>Install MySql Tools</li>
<li>Create a folder c:\websites (or call it what you want)</li>
<li>Go to My Computer -&gt; Right Click Properties -&gt; Advanced -&gt; Environment Variables
<ol>
<li>Select Path -&gt; Click Edit</li>
<li>Add a ;c:\php on the end</li>
</ol>
</li>
<li>Restart your computer!</li>
<li>Browse to the Apache Folder (Should be in Program Files\Apache Software Foundation\Apache
<ol>
<li>Go into conf and open httpd.conf</li>
<li>Change the following and Save
<ol>
<li>ServerRoot (Should be set to your Apache folder &#8211; nothing should be changed here)</li>
<li>Listen (In the event you want your Apache WebServer to not run at localhost:80 &#8211; you can specify a specific ip/port here</li>
<li>In the LoadModule section you might want to enable rewriter_module (not necessary!)</li>
<li>DocumentRoot &quot;C:\websites&quot;</li>
<li>&lt;Directory &quot;C:\websites&quot;&gt; &lt;&#8211; This is about ~15lines below the document root (REQUIRED CHANGE)</li>
<li>Under the DirectoryIndex save yourself some time and add index.php after index.html with a space separating them</ol>
</li>
</ol>
</li>
<li>All Done making configuration changes to Apache</li>
<li>Copy the index.html file in htdocs to c:\websites</li>
<li>Click on the Apache Server Monitor in your TaskBar and restart Apache (if you have any problems check the logs folder in the Apache directory)</li>
</li>
<li>Open your Web Browser and Browse to http://localhost &#8211; You should see &#8216;It Works&#8217;
<ol>
<li>If this failed to work &#8211; check the settings you&#8217;ve changed (typo&#8217;s will break things) also check the error logs in the apache\logs folder (Post any problems you can&#8217;t resolve in the comments)</li>
</ol>
</li>
<li>Now that you have Apache working &#8211; lets get PHP working so you can start coding with php/mysql</li>
<li>Rename php.ini-distribution to php.ini</li>
<li>Open php.ini</li>
<li>Change the following and Save
<ol>
<li>max_execution_time (Suggested for development to increase to 60)</li>
<li>max_input_time (Suggested for development to increase to 120)</li>
<li>memory_limit (Suggested for development to increase to 256M &#8211; great for any type of video conversion)</li>
<li>error_reporting = E_ALL &amp; ~E_NOTICE (Un-comment this and ensure other error_reporting lines are commented</li>
<li>display_errors = On</li>
<li>log_errors = On</li>
<li>session.save_path = &quot;c:\tmp&quot;</li>
<li>post_max_size = 16M (Suggested for development)</li>
<li>doc_root = (You can leave this blank)</li>
<li>extension_dir = &quot;c:\php\ext&quot; (Required)</li>
<li>upload_max_filesize = 16M (Suggested for development)</li>
<li>Un-comment the following extensions:
<ol>
<li>extension=php_curl.dll</li>
<li>extension=php_gd2.dll</li>
<li>extension=php_mbstring.dll</li>
<li>extension=php_mcrypt.dll</li>
<li>extension=php_mssql.dll</li>
<li>extension=php_mysql.dll</li>
<li>extension=php_openssl.dll</li>
</ol>
</li>
<li>If you have access to an SMTP server configure SMTP</li>
</ol>
</li>
<li>Re-open the httpd.conf for apache and add the following lines after the end of the LoadModule section
<ol>
<li>LoadModule php5_module &quot;C:/php/php5apache2_2.dll&quot;</li>
<li>AddType application/x-httpd-php .php</li>
<li>PHPIniDir &quot;C:/php&quot;</li>
</ol>
</li>
<li>Restart Apache</li>
<li>Create a file in c:\websites called test.php</li>
<li>Put &lt;?php phpinfo(); ?&gt; in the file and save</li>
<li>Access http://localhost/test.php</li>
<li>You should see a dump of all the information &#8211; All the extensions you&#8217;ve loaded above should have a section within the information displayed (If you can&#8217;t find mysql on the page for example then the .dll did not load properly &#8211; Verify your Environment Path variable (restart if you change it) and try again)</li>
<li>Don&#8217;t forget to look at your log files if you&#8217;re having problems &#8211; and if php says it can&#8217;t load a module that exists in a specific path then it&#8217;s likely an Environment Path issue.</li>
<li>Happy Coding!</li>
</ol>
<p><code></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rtraction.com/blog/devit/howto-setup-php-apache-mysql-on-windows.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
