<?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>Rui Miguel Feio &#187; WAMP</title>
	<atom:link href="http://www.ruifeio.com/category/web-development/wamp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ruifeio.com</link>
	<description>Sharing knowledge with the world</description>
	<lastBuildDate>Sat, 24 Dec 2011 15:42:02 +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>Setting up Virtual Hosts on WampServer</title>
		<link>http://www.ruifeio.com/2011/01/30/setting-up-virtual-hosts-on-wampserver/</link>
		<comments>http://www.ruifeio.com/2011/01/30/setting-up-virtual-hosts-on-wampserver/#comments</comments>
		<pubDate>Sun, 30 Jan 2011 13:30:49 +0000</pubDate>
		<dc:creator>Rui Miguel Feio</dc:creator>
				<category><![CDATA[Tech - Web Development]]></category>
		<category><![CDATA[WAMP]]></category>

		<guid isPermaLink="false">http://www.ruifeio.com/?p=626</guid>
		<description><![CDATA[If you&#8217;re a web developer you know how fantastic WampServer is in allowing you to have Apache, MySQL and PHP server locally under Windows. This allows you to test all your websites locally before you upload them into the &#8220;real&#8221; server. Now, the problem is that by default if you have two sites (site1 and [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re a web developer you know how fantastic WampServer is in allowing you to have Apache, MySQL and PHP server locally under Windows. This allows you to test all your websites locally before you upload them into the &#8220;real&#8221; server.</p>
<p>Now, the problem is that by default if you have two sites (site1 and site2) locally, it&#8217;s always a pain having to browse them by using &#8220;http://localhost/site1/index.php&#8221; as a URL.</p>
<p>The best way is always to make the URL shorter and for this WampServer allows you to create Virtual Hosts. The general idea of Virtual Hosts is<br />
that you can use something like &#8220;http://site1&#8243; or &#8220;http://site2&#8243; instead of having to use the complete URL.</p>
<p><strong>Here&#8217;s how you do it:</strong></p>
<p>1. Edit the &#8220;hosts&#8221; file on your windows system (usually located at c:\WINDOWS\system32\drivers\etc\)</p>
<p>2. Add the following to the end of the hosts file:</p>
<p>127.0.0.1        site1<br />
127.0.0.1	 site2</p>
<p>This tells your computer that any url with a value of &#8216;site1&#8242; or &#8216;site2&#8242; should be routed to 127.0.0.1 or more commonly refered to as localhost.</p>
<p>3. Save your changes.</p>
<p>4. Now go to &#8220;C:\wamp\bin\apache\Apache2.2.17\conf&#8221; and edit file &#8220;httpd.conf&#8221;</p>
<p>5. Search for &#8220;httpd-vhosts.conf&#8221;</p>
<p>6. Remove the &#8220;#&#8221; from the beginning of the line &#8220;Include conf/extra/httpd-vhosts.conf&#8221;</p>
<p>7. Now go to &#8220;C:\wamp\bin\apache\Apache2.2.17\conf\extra&#8221; and edit file &#8220;httpd-vhosts.conf&#8221;</p>
<p>8. Add the following lines to the end of this file:</p>
<div>
<div>&lt;VirtualHost *:80&gt;</div>
<div>ServerAdmin webmaster@localhost</div>
<div>DocumentRoot &#8220;C:/wamp/www/site1/&#8221;</div>
<div>ServerName site1</div>
<div>ErrorLog &#8220;C:/wamp/www/logs/site1.log&#8221;</div>
<div>CustomLog &#8220;C:/wamp/www/logs/common.log&#8221; common</div>
<div>&lt;/VirtualHost&gt;</div>
<div></div>
<div>&lt;VirtualHost *:80&gt;</div>
<div>ServerAdmin webmaster@localhost</div>
<div>DocumentRoot &#8220;C:/wamp/www/site2/&#8221;</div>
<div>ServerName site2</div>
<div>ErrorLog &#8220;C:/wamp/www/logs/site2.log&#8221;</div>
<div>CustomLog &#8220;C:/wamp/www/logs/common.log&#8221; common</div>
<div>&lt;/VirtualHost&gt;</div>
</div>
<p>9. Click on the WampServer icon</p>
<p>10. Select &#8220;Restart All Services&#8221;</p>
<p>And that&#8217;s it! From now on you only have to use &#8220;http://site1&#8243; and &#8220;http://site2&#8243; as URLs for your 2 local websites.</p>
<p><strong>Notes:</strong></p>
<p>- These instructions may not work for older versions of WampServer.<br />
- On Windows 7 you will need to edit the &#8220;hosts&#8221; file running Notepad as Administrator.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ruifeio.com/2011/01/30/setting-up-virtual-hosts-on-wampserver/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Change the www root directory on WampServer</title>
		<link>http://www.ruifeio.com/2011/01/30/change-the-www-root-directory-on-wampserver/</link>
		<comments>http://www.ruifeio.com/2011/01/30/change-the-www-root-directory-on-wampserver/#comments</comments>
		<pubDate>Sun, 30 Jan 2011 12:43:46 +0000</pubDate>
		<dc:creator>Rui Miguel Feio</dc:creator>
				<category><![CDATA[Tech - Web Development]]></category>
		<category><![CDATA[WAMP]]></category>

		<guid isPermaLink="false">http://www.ruifeio.com/?p=624</guid>
		<description><![CDATA[If you do not wish to use &#8220;c:/wamp/www/&#8221; as your DocumentRoot you simply have to perform the following steps: 1. Click on the WampServer icon 2. Select Apache &#62; httpd.conf 3. Search for &#8220;DocumentRoot&#8221; 4. Change the path to whatever you wish to be the new Document root directory (make sure to use a forward [...]]]></description>
			<content:encoded><![CDATA[<p>If you do not wish to use &#8220;c:/wamp/www/&#8221; as your DocumentRoot you simply have to perform the following steps:</p>
<p>1. Click on the WampServer icon</p>
<p>2. Select Apache &gt; httpd.conf</p>
<p>3. Search for &#8220;DocumentRoot&#8221;</p>
<p>4. Change the path to whatever you wish to be the new Document root directory (make sure to use a forward slash instead of a back slash)</p>
<p>5. Search once again for &#8220;DocumentRoot&#8221;</p>
<p>6. You will find something like: &#8220;&#8221;</p>
<p>7. Once again change the path to whatever you wish to be the new Document root directory (make sure to use a forward slash instead of a back slash)</p>
<p>8. Save your changes</p>
<p>9. Click on the WampServer icon</p>
<p>10. Select option &#8220;Restart All Services&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ruifeio.com/2011/01/30/change-the-www-root-directory-on-wampserver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP parameter session.gc_maxlifetime is lower that cookie validity configured in phpMyAdmin</title>
		<link>http://www.ruifeio.com/2009/12/05/php-parameter-session-gc_maxlifetime-is-lower-that-cookie-validity-configured-in-phpmyadmin/</link>
		<comments>http://www.ruifeio.com/2009/12/05/php-parameter-session-gc_maxlifetime-is-lower-that-cookie-validity-configured-in-phpmyadmin/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 11:55:22 +0000</pubDate>
		<dc:creator>Rui Miguel Feio</dc:creator>
				<category><![CDATA[PhpMyAdmin]]></category>
		<category><![CDATA[WAMP]]></category>

		<guid isPermaLink="false">http://www.ruifeio.com/?p=432</guid>
		<description><![CDATA[If you have installed a new MySQL version you may be getting the following warning message: Your PHP parameter session.gc_maxlifetime is lower that cookie validity configured in phpMyAdmin, because of this, your login will expire sooner than configured in phpMyAdmin. To solve this issue we first need to check what the session.gc_maxlifetime value is in [...]]]></description>
			<content:encoded><![CDATA[<p>If you have installed a new MySQL version you may be getting the following warning message:</p>
<p><code style="font-size: 12px">Your PHP parameter session.gc_maxlifetime is lower that cookie validity configured in phpMyAdmin, because of this, your login will expire sooner than configured in phpMyAdmin.</code></p>
<p>To solve this issue we first need to check what the <code style="font-size: 12px">session.gc_maxlifetime</code> value is in <code style="font-size: 12px">php.ini</code> and what the <code style="font-size: 12px">$cfg['LoginCookieValidity']</code> is in config.inc.php.</p>
<p><strong>Example:</strong></p>
<p>1. php.ini</p>
<p><code style="font-size: 12px">session.gc_maxlifetime = 1440</code></p>
<p>2. config.inc.php</p>
<p><code style="font-size: 12px">$cfg['LoginCookieValidity'] = 1800;</code></p>
<p>Now, we only need to make these two values the same. For the sake of this example, we will change the value of <code style="font-size: 12px">$cfg['LoginCookieValidity']</code> to 1440.</p>
<p>After saving the changes we need to restart the services to make them effective.</p>
<p><strong>Notes:</strong></p>
<p>1.The php.ini file can be found on the php folder.</p>
<p>2. The config.inc.php file can be found on the phpmyadmin folder.</p>
<hr/>
<p>If you&#8217;re interested in learning more about PhpMyAdmin then check out the book &#8220;<a href="http://www.ruifeio.com/mastering-phpmyadmin">Mastering PhpMydmin for Effective MySQL Management</a>&#8220;.</p>
<hr/>
]]></content:encoded>
			<wfw:commentRss>http://www.ruifeio.com/2009/12/05/php-parameter-session-gc_maxlifetime-is-lower-that-cookie-validity-configured-in-phpmyadmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpMyAdmin root with no password message</title>
		<link>http://www.ruifeio.com/2009/09/17/phpmyadmin-root-with-no-password-message/</link>
		<comments>http://www.ruifeio.com/2009/09/17/phpmyadmin-root-with-no-password-message/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 11:35:53 +0000</pubDate>
		<dc:creator>Rui Miguel Feio</dc:creator>
				<category><![CDATA[PhpMyAdmin]]></category>
		<category><![CDATA[WAMP]]></category>

		<guid isPermaLink="false">http://www.ruifeio.com/?p=380</guid>
		<description><![CDATA[After installing WAMP Server it is common when you first access phpMyAdmin to get the following message: &#8220;Your configuration file contains settings (root with no password) that correspond to the default MySQL privileged account. Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole by [...]]]></description>
			<content:encoded><![CDATA[<p>After installing WAMP Server it is common when you first access phpMyAdmin to get the following message:</p>
<p>&#8220;Your configuration file contains settings (root with no password) that correspond to the default MySQL privileged account. Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole by setting a password for user &#8216;.root&#8217;.&#8221;</p>
<p><strong>To correct this security issue you need to do the following:</strong></p>
<ol>
<li>Go to <em>phpMyAdmin</em></li>
<li>Select the <em>Privileges</em> tab</li>
<li>Locate the user &#8220;<em>root</em>&#8221; that has <em>localhost </em>for a host</li>
<li>Edit the root user privileges by clicking on the corresponding <em>Edit Privileges</em> button</li>
<li>On the <em>Change Password</em> section insert the desired password and press <em>Go</em></li>
<li>You should now have at the top of the screen the message: &#8220;<em>The password for &#8216;root&#8217;@'localhost&#8217; was changed successfully.</em>&#8220;</li>
<li>Now you need to edit file <em>config.inc.php</em> normally located at <em>C:\wamp\apps\phpmyadmin3.2.0.1</em> (note that the version indication may  vary)</li>
<li>Locate <em>$cfg['Servers'][$i]['auth_type'] = &#8216;config&#8217;;</em> and change from <em>config </em>to <em>cookie </em>so that you get a login window every time you access phpMyAdmin</li>
<li>Locate <em>$cfg['blowfish_secret'] = &#8216;  &#8216;;</em> line. If you don&#8217;t have one add it to your <em>config.inc.php</em> file</li>
<li>Add a secret passphrase to <em>$cfg['blowfish_secret'] = &#8216;  &#8216;;</em> for example: <em>$cfg['blowfish_secret'] = &#8216;secret_pass&#8217;;</em></li>
<li>Save your changes</li>
<li>Go to the WAMPServer and select <em>Restart All Services</em></li>
<li>Once all the services have been restarted go to <em>phpMyAdmin</em> and enter the username root and your password to access phpMyAmdin</li>
</ol>
<p><strong>Notes:</strong></p>
<ol>
<li>The <em>blowfish_secret</em> passphrase should not be the same as the root password.</li>
<li>If you don&#8217;t add a <em>$cfg['blowfish_secret']</em> line to the <em>config.inc.php</em> file, when you access phpMyAdmin you&#8217;ll get the message: &#8220;<em>The configuration file now needs a secret passphrase (blowfish_secret).</em>&#8220;</li>
</ol>
<hr/>
<p>If you&#8217;re interested in learning more about PhpMyAdmin then check out the book &#8220;<a href="http://www.ruifeio.com/mastering-phpmyadmin">Mastering PhpMydmin for Effective MySQL Management</a>&#8220;.</p>
<hr/>
]]></content:encoded>
			<wfw:commentRss>http://www.ruifeio.com/2009/09/17/phpmyadmin-root-with-no-password-message/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

