<?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>this.rand() &#187; mysql</title>
	<atom:link href="http://www.thisrand.com/tag/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thisrand.com</link>
	<description>the life of Ryan Meinzer and Jessica Meinzer</description>
	<lastBuildDate>Mon, 19 Sep 2011 01:41:44 +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>phpMyAdmin over SSL</title>
		<link>http://www.thisrand.com/2009/10/phpmyadmin-over-ssl-2</link>
		<comments>http://www.thisrand.com/2009/10/phpmyadmin-over-ssl-2#comments</comments>
		<pubDate>Sun, 04 Oct 2009 18:53:06 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://206</guid>
		<description><![CDATA[I get asked this question a lot: &#8220;How can I force phpMyAdmin to run over https &#8216;SSL&#8217;?&#8221; It is basically an issue to deal with security. Since phpMyAdmin deals with...]]></description>
			<content:encoded><![CDATA[<p>I get asked this question a lot: &#8220;How can I force phpMyAdmin to run over https &#8216;SSL&#8217;?&#8221;  It is basically an issue to deal with security.  Since <a target="_blank" href="http://www.phpmyadmin.net" target="_blank">phpMyAdmin</a> deals with directly accessing your database, it only makes sense you want to make it as secure as you can.  While running over SSL &#8216;HTTPS&#8217; is not the total solution, it does help.  So, here is how to make it run over SSL.</p>
<p><span id="more-876"></span></p>
<p>Assuming you already have SSL installed and configured correctly in your webserver for whatever directory phpMyAdmin is in, open up the index.php file, and at the very top, just after the comments end, but before the includes&#8221;, add these few lines:</p>
<pre>if '$_SERVER["SERVER_PORT"] != 443'{
$head = "Location: https://" . $_SERVER["HTTP_HOST"] .  $_SERVER["REQUEST_URI"];
header'$head';
exit;
}</pre>
<p>That&#8217;s it.  It will force your page loads to go through HTTPS.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thisrand.com%2F2009%2F10%2Fphpmyadmin-over-ssl-2&amp;title=phpMyAdmin%20over%20SSL" id="wpa2a_2"><img src="http://www.thisrand.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2009/10/phpmyadmin-over-ssl-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpMyAdmin over SSL</title>
		<link>http://www.thisrand.com/2008/02/phpmyadmin-over-ssl</link>
		<comments>http://www.thisrand.com/2008/02/phpmyadmin-over-ssl#comments</comments>
		<pubDate>Thu, 01 Jan 1970 01:33:28 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://206</guid>
		<description><![CDATA[I get asked this question a lot: &#8220;How can I force phpMyAdmin to run over https &#8216;SSL&#8217;?&#8221; It is basically an issue to deal with security. Since phpMyAdmin deals with...]]></description>
			<content:encoded><![CDATA[<p>I get asked this question a lot: &#8220;How can I force phpMyAdmin to run over https &#8216;SSL&#8217;?&#8221;  It is basically an issue to deal with security.  Since <a target="_blank" href="http://www.phpmyadmin.net" target="_blank">phpMyAdmin</a> deals with directly accessing your database, it only makes sense you want to make it as secure as you can.  While running over SSL &#8216;HTTPS&#8217; is not the total solution, it does help.  So, here is how to make it run over SSL.</p>
<p><span id="more-23"></span></p>
<p>Assuming you already have SSL installed and configured correctly in your webserver for whatever directory phpMyAdmin is in, open up the index.php file, and at the very top, just after the comments end, but before the includes&#8221;, add these few lines:</p>
<pre>if '$_SERVER["SERVER_PORT"] != 443'{
$head = "Location: https://" . $_SERVER["HTTP_HOST"] .  $_SERVER["REQUEST_URI"];
header'$head';
exit;
}</pre>
<p>That&#8217;s it.  It will force your page loads to go through HTTPS.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thisrand.com%2F2008%2F02%2Fphpmyadmin-over-ssl&amp;title=phpMyAdmin%20over%20SSL" id="wpa2a_4"><img src="http://www.thisrand.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2008/02/phpmyadmin-over-ssl/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

