<?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>Jiv Studio &#187; Servers</title>
	<atom:link href="http://jivstudio.com/category/servers/feed/" rel="self" type="application/rss+xml" />
	<link>http://jivstudio.com</link>
	<description>Wordpress Themes and Development, X-cart Development</description>
	<lastBuildDate>Thu, 02 Dec 2010 18:07:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>MySQL File Access, Access Denied</title>
		<link>http://jivstudio.com/2008/12/31/mysql-file-access-access-denied/</link>
		<comments>http://jivstudio.com/2008/12/31/mysql-file-access-access-denied/#comments</comments>
		<pubDate>Thu, 01 Jan 2009 03:04:46 +0000</pubDate>
		<dc:creator>Jason Maletsky</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[file access]]></category>

		<guid isPermaLink="false">/?p=451</guid>
		<description><![CDATA[If you need to access files for importing directly from MySQL you may have encountered an error stating the following. Access denied for user: 'user@localhost' (Using password: YES) The user used to execute the import needs the FILE privilege in order to complete a command similar the one below. LOAD DATA INFILE filename INTO TABLE [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to access files for importing directly from MySQL you may have encountered an error stating the following.</p>
<pre><code class="html">Access denied for user: 'user@localhost' (Using password: YES)</code></pre>
<p>The user used to execute the import needs the FILE privilege in order to complete a command similar the one below.</p>
<pre><code class="mysql">LOAD DATA INFILE filename
INTO TABLE products
FIELDS TERMINATED BY '|'
LINES TERMINATED BY '\n';</code></pre>
<p>Use the following command within MySQL to grant the FILE privilege.</p>
<pre><code class="mysql">GRANT FILE ON *.* TO 'mysql_user'@'localhost';</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://jivstudio.com/2008/12/31/mysql-file-access-access-denied/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Set PHP Include Path in htaccess</title>
		<link>http://jivstudio.com/2008/12/26/set-php-include-path-in-htaccess/</link>
		<comments>http://jivstudio.com/2008/12/26/set-php-include-path-in-htaccess/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 17:00:27 +0000</pubDate>
		<dc:creator>Jason Maletsky</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[include_path]]></category>

		<guid isPermaLink="false">/?p=431</guid>
		<description><![CDATA[If you do not want to change the include_path directories (or you don&#8217;t have access to php.ini) you can still set the include_path value within your root .htaccess file. Update/Create /doc_root/.htaccess Unix/Linux Servers php_value include_path "/path/to/include" Windows Servers php_value include_path "C:/path/to/include" PHP To call the include within PHP do the following: require_once('file.php'); The file above [...]]]></description>
			<content:encoded><![CDATA[<p>If you do not want to change the include_path directories (or you don&#8217;t have access to php.ini) you can still set the include_path value within your root .htaccess file.</p>
<h2>Update/Create /doc_root/.htaccess</h2>
<p><strong>Unix/Linux Servers</strong></p>
<pre><code class="html">php_value include_path "/path/to/include"
</code></pre>
<p><strong>Windows Servers</strong></p>
<pre><code class="html">php_value include_path "C:/path/to/include"
</code></pre>
<h2>PHP</h2>
<p>To call the include within PHP do the following:</p>
<pre><code class="php">require_once('file.php');
</code></pre>
<p>The file above is in /doc_root/include/file.php</p>
<h3>Options</h3>
<p><strong>Multiple include directories</strong></p>
<p>If you have multiple include directories you can chain them with the separator for your OS, : (*nix), ; (Windows).</p>
<pre><code class="html">php_value include_path "/path/to/include:/path/to/include2"
</code></pre>
<p><strong>Call files outside include directory</strong></p>
<p>You can also traverse your directory structure if you need to call a file that is outside of the include_path.</p>
<p><em>file.php in /doc_root/include/file.php</em></p>
<pre><code class="html">require_once('./include/file.php');
</code></pre>
<p><em>file.php in /doc_root/test/file.php</em></p>
<pre><code class="html">require_once('./test/file.php');
</code></pre>
<p><em>file.php in /test/file.php, Outside, up one level from /doc_root</em></p>
<pre><code class="html">require_once('../test/file.php');
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://jivstudio.com/2008/12/26/set-php-include-path-in-htaccess/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>GoDaddy Now Allows Direct Access to MySQL on Shared Hosting Plans</title>
		<link>http://jivstudio.com/2008/12/25/godaddy-now-allows-direct-access-to-mysql-on-shared-hosting-plans/</link>
		<comments>http://jivstudio.com/2008/12/25/godaddy-now-allows-direct-access-to-mysql-on-shared-hosting-plans/#comments</comments>
		<pubDate>Thu, 25 Dec 2008 21:45:57 +0000</pubDate>
		<dc:creator>Jason Maletsky</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[godaddy.com]]></category>
		<category><![CDATA[mysql access]]></category>

		<guid isPermaLink="false">/?p=424</guid>
		<description><![CDATA[GoDaddy.com has recently added the ability for shared hosting plans owners to access their MySQL databases directly. Once you start the MySQL creation process you will have the option to Allow/Disallow direct access. This is very useful if you do not want to use phpMyAdmin to administer your MySQL database such as an initial import [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.godaddy.com" target="_blank">GoDaddy.com</a> has recently added the ability for shared hosting plans owners to access their MySQL databases directly.</p>
<p>Once you start the MySQL creation process you will have the option to Allow/Disallow direct access.</p>
<div style="clear: both;"></div>
<p><a href="http://jivstudio.com/wp-content/uploads/2008/12/godaddy-1.png"><img class="alignnone size-medium wp-image-425" title="godaddy-1" src="/wp-content/uploads/2008/12/godaddy-1-300x114.png" alt="" width="300" height="114" /></a></p>
<div style="clear: both;"></div>
<p>This is very useful if you do not want to use phpMyAdmin to administer your MySQL database such as an initial import that exceeds the maximum import file size. Currently <a href="http://www.godaddy.com" target="_blank">GoDaddy.com</a> limits to 2048kb.</p>
<p>If you want to use phpMyAdmin and need to import a large amount of data check out my <a title="MySQL SQL Dup Splitter" href="/2008/11/26/great-mysql-mysqldump-split-utility/">tutortial on how to use SQLDumpSplitter</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jivstudio.com/2008/12/25/godaddy-now-allows-direct-access-to-mysql-on-shared-hosting-plans/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>MySQL Match Dates with a UNIXTIME Field</title>
		<link>http://jivstudio.com/2008/12/19/mysql-match-dates-with-a-unixtime-field/</link>
		<comments>http://jivstudio.com/2008/12/19/mysql-match-dates-with-a-unixtime-field/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 18:01:56 +0000</pubDate>
		<dc:creator>Jason Maletsky</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[compare]]></category>
		<category><![CDATA[unixtime]]></category>

		<guid isPermaLink="false">/?p=360</guid>
		<description><![CDATA[Here is how to grab and compare a date directly from a MySQL query if you are storing your dates as UNIXTIME. SELECT * FROM table WHERE MONTH(FROM_UNIXTIME(unixtime_fieldname)) = MONTH(CURDATE()) AND DAY(FROM_UNIXTIME(unixtime_fieldname)) = DAY(CURDATE()) AND YEAR(FROM_UNIXTIME(unixtime_fieldname)) = YEAR(CURDATE()) This particular query is looking for any records that have the same month, day and year as [...]]]></description>
			<content:encoded><![CDATA[<p>Here is how to grab and compare a date directly from a MySQL query if you are storing your dates as UNIXTIME.</p>
<pre><code class="mysql">SELECT
	*
FROM
	table
WHERE
	MONTH(FROM_UNIXTIME(unixtime_fieldname)) = MONTH(CURDATE())
	AND DAY(FROM_UNIXTIME(unixtime_fieldname)) = DAY(CURDATE())
	AND YEAR(FROM_UNIXTIME(unixtime_fieldname)) = YEAR(CURDATE())</code></pre>
<p>This particular query is looking for any records that have the same month, day and year as today.</p>
]]></content:encoded>
			<wfw:commentRss>http://jivstudio.com/2008/12/19/mysql-match-dates-with-a-unixtime-field/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Remove/Force www on Your Domain and 301 Redirect</title>
		<link>http://jivstudio.com/2008/12/18/removeforce-www-on-your-domain-and-301-redirect/</link>
		<comments>http://jivstudio.com/2008/12/18/removeforce-www-on-your-domain-and-301-redirect/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 21:07:55 +0000</pubDate>
		<dc:creator>Jason Maletsky</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[301 redirect]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[remove www]]></category>

		<guid isPermaLink="false">/?p=353</guid>
		<description><![CDATA[You want to ensure that Google and other SEs only see one domain so you don&#8217;t penalized for duplicate content (www and non-www indexed pages are not the same and counted as duplicates). .htaccess To redirect to domain.com and 301 existing pages: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC] RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L] To [...]]]></description>
			<content:encoded><![CDATA[<p>You want to ensure that Google and other SEs only see one domain so you don&#8217;t penalized for duplicate content (www and non-www indexed pages are not the same and counted as duplicates).</p>
<h2>.htaccess</h2>
<p><strong>To redirect to domain.com and 301 existing pages:</strong></p>
<pre><code class="html">RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]</code></pre>
<p><strong>To redirect to www.domain.com and 301 existing pages:</strong></p>
<pre><code class="html">RewriteEngine On
RewriteBase /
RewriteCond %{HTTP:Host} ^(?!www\.)(.+)$ [NC]
RewriteCond %{REQUEST_URI} (.+)
RewriteRule .? http(?%1s)://www.%2%3 [R=301,L]</code></pre>
<h2>Google</h2>
<p>If you a Google Webmaster account you can also make sure that the preferred domain matches your domain redirection choice.</p>
<ol>
<li>Log on to <a href="https://www.google.com/webmasters/tools/" target="_blank">Google Webmaster Tools</a></li>
<li>Click Settings</li>
<li>In the Preferred Domain section make your selection and click Save</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://jivstudio.com/2008/12/18/removeforce-www-on-your-domain-and-301-redirect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Replace String, Similar to PHP str_replace()</title>
		<link>http://jivstudio.com/2008/12/17/mysql-replace-string-similar-to-php-str_replace/</link>
		<comments>http://jivstudio.com/2008/12/17/mysql-replace-string-similar-to-php-str_replace/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 17:09:38 +0000</pubDate>
		<dc:creator>Jason Maletsky</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[replace]]></category>

		<guid isPermaLink="false">/?p=331</guid>
		<description><![CDATA[Very handy function if you need to replace a string in your MySQL database tables. UPDATE table SET field = REPLACE(field, 'Old Value', 'New Value') Reference MySQL String Functions http://dev.mysql.com/doc/refman/5.1/en/string-functions.html]]></description>
			<content:encoded><![CDATA[<p>Very handy function if you need to replace a string in your MySQL database tables.</p>
<pre><code class="mysql">UPDATE table
SET field = REPLACE(field, 'Old Value', 'New Value')</code></pre>
<h3>Reference</h3>
<p>MySQL String Functions<br />
<a href="http://dev.mysql.com/doc/refman/5.1/en/string-functions.html" target="_blank">http://dev.mysql.com/doc/refman/5.1/en/string-functions.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jivstudio.com/2008/12/17/mysql-replace-string-similar-to-php-str_replace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Move Your WordPress Blog from Development/Staging to Production</title>
		<link>http://jivstudio.com/2008/12/08/move-your-wordpress-blog-from-developmentstaging-to-production/</link>
		<comments>http://jivstudio.com/2008/12/08/move-your-wordpress-blog-from-developmentstaging-to-production/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 14:50:24 +0000</pubDate>
		<dc:creator>Jason Maletsky</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[production]]></category>
		<category><![CDATA[staging]]></category>

		<guid isPermaLink="false">/?p=313</guid>
		<description><![CDATA[When you are finished with development and staging reviews there are some database changes that need to be made in order for your WordPress blog to work properly. You can use any MySQL tool you have available, my favorite is Navicat. Options Table The options table stores all of the main settings for your blog. [...]]]></description>
			<content:encoded><![CDATA[<p>When you are finished with development and staging reviews there are some database changes that need to be made in order for your WordPress blog to work properly.</p>
<p>You can use any MySQL tool you have available, my favorite is <a href="http://www.navicat.com/" target="_blank">Navicat</a>.</p>
<h3>Options Table</h3>
<p>The options table stores all of the main settings for your blog. You will need to update the URLs that were originally set during installation as well as where your uploads are stored.</p>
<p><strong>Update URLs</strong></p>
<pre><code class="mysql">UPDATE wp_options
SET option_value = 'http://www.yourwebsite.com'
WHERE option_name = 'siteurl'
	AND option_name = 'home'</code></pre>
<p><strong>Update Upload Path</strong></p>
<pre><code class="mysql">UPDATE wp_options
SET option_value = 'wp-content/uploads'
WHERE option_name = 'upload_path'</code></pre>
<h3>Galleries</h3>
<p>If you have galleries in your posts you will need to update the URLs for the images to your production URL.</p>
<p><strong>Update Image URLs</strong></p>
<p>NOTE: The &#8216;localhost&#8217; value below should match what you entered during installation on your development/staging server.</p>
<pre><code class="mysql">UPDATE wp_posts
SET guid = REPLACE(guid, 'localhost', 'www.yourwebsite.com')
WHERE post_type = 'attachment'
	AND post_mime_type = 'image/jpeg'</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://jivstudio.com/2008/12/08/move-your-wordpress-blog-from-developmentstaging-to-production/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Return Single Value with ExecuteScalar, Stored Procedures and C#</title>
		<link>http://jivstudio.com/2008/12/03/return-single-value-with-executescalar-stored-procedures-and-c/</link>
		<comments>http://jivstudio.com/2008/12/03/return-single-value-with-executescalar-stored-procedures-and-c/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 05:43:45 +0000</pubDate>
		<dc:creator>Jason Maletsky</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">/?p=239</guid>
		<description><![CDATA[A common query is to return a single value from a SQL query such as an aggregate to get the total number of rows in a table. I will show you how to do just that with SQL Server Stored Procedures and C#. Preparation You will need some table data to query against. I am [...]]]></description>
			<content:encoded><![CDATA[<p>A common query is to return a single value from a SQL query such as an aggregate to get the total number of rows in a table. I will show you how to do just that with SQL Server Stored Procedures and C#.</p>
<h3>Preparation</h3>
<p>You will need some table data to query against. I am using the Northwind sample database. You can get links to download a copy of the sample database and instructions how to install from <a href="/2008/12/02/sample-databases-for-sql-server/"><strong>here</strong></a>.</p>
<p>I will be using the following technologies for this demonstration.</p>
<ol>
<li>ASP.NET 2.0</li>
<li>SQL Server Express 2005 &#8211; Code should work with SQL Server versions 2000 and higher</li>
</ol>
<p>For the impatient you can download the entire project <a href="http://jivstudio.com/wp-content/uploads/2008/12/executescalar.zip"><strong>here</strong></a>.</p>
<h2>SQL Server</h2>
<h3>Stored Procedure</h3>
<p>Copy the following code into a new stored procecure with SQL Server Management Studio or directly within the Visual Studio Server Explorer.</p>
<p>Stored Procedure: CountCustomers.sql</p>
<pre><code class="mysql">CREATE PROCEDURE dbo.CountCustomers
AS
SELECT COUNT(CustomerID) AS TotalCustomers
FROM Customers</code></pre>
<h2>ASP.NET</h2>
<h3>web.config</h3>
<p>Add the following SQL connection string to your web.config if you already do not have a connection to your database.</p>
<h3>Web Form</h3>
<p>Create a new web site project or a new web form page to an existing web site. Add a label control to display the total number of customers.  Web Form: ExecuteScalar.aspx</p>
<pre><code class="html">Total Number of Customers:</code></pre>
<h3>Code Behind</h3>
<p>Add the following to your using statements.</p>
<pre><code class="csharp">using System.Data.SqlClient;
using System.Web.Configuration;</code></pre>
<p>Place the following within your Page_Load or event you want the count to be displayed.</p>
<pre><code class="csharp">///
/// SQL
///

// Open SQL connection
SqlConnection myConnection = new SqlConnection(WebConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ToString());
myConnection.Open();

// Create command
SqlCommand myCommand = new SqlCommand("CountCustomers", myConnection);
myCommand.CommandType = CommandType.StoredProcedure;

// Execute
int totalCustomerCount = Convert.ToInt32(myCommand.ExecuteScalar());

// Close SQL connection
myConnection.Dispose();
myConnection.Close();

///
/// Set control values
///

Label1.Text = totalCustomerCount.ToString();</code></pre>
<h2>Output</h2>
<p>You should have the following output.</p>
<p><a href="http://jivstudio.com/wp-content/uploads/2008/12/scalar-1.png"><img class="alignnone size-full wp-image-246" title="scalar-1" src="http://jivstudio.com/wp-content/uploads/2008/12/scalar-1.png" alt="" width="480" height="296" /></a></p>
<h2>Download</h2>
<p><a href="http://jivstudio.com/wp-content/uploads/2008/12/executescalar.zip"><strong>Download the complete project.</strong></a></p>
]]></content:encoded>
			<wfw:commentRss>http://jivstudio.com/2008/12/03/return-single-value-with-executescalar-stored-procedures-and-c/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Sample Databases for SQL Server</title>
		<link>http://jivstudio.com/2008/12/02/sample-databases-for-sql-server/</link>
		<comments>http://jivstudio.com/2008/12/02/sample-databases-for-sql-server/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 05:38:03 +0000</pubDate>
		<dc:creator>Jason Maletsky</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[sample databases]]></category>

		<guid isPermaLink="false">/?p=254</guid>
		<description><![CDATA[Microsoft provides some sample databases to use to experiment with your code; because you wouldn&#8217;t dare query against your live customer data with untested code right? Samples http://www.codeplex.com/SqlServerSamples SQL Server Database Examples http://www.codeplex.com/SqlServerSamples#databases I use the Northwind tables from the SQL Server 2000 Sample DBs. How to Install the Northwind Sample Database Unzip the sample database [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft provides some sample databases to use to experiment with your code; because you wouldn&#8217;t dare query against your live customer data with untested code right?</p>
<p><strong>Samples</strong><br />
<a href="http://www.codeplex.com/SqlServerSamples" target="_blank">http://www.codeplex.com/SqlServerSamples</a></p>
<p><strong>SQL Server Database Examples</strong><br />
<a href="http://www.codeplex.com/SqlServerSamples#databases" target="_blank">http://www.codeplex.com/SqlServerSamples#databases</a></p>
<p>I use the Northwind tables from the <a href="https://code.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=northwind" target="_blank"><span id="ctl00_ctl00_MasterContent_Content_wikiSourceLabel">SQL Server 2000 Sample DBs</span></a><span id="ctl00_ctl00_MasterContent_Content_wikiSourceLabel">.</span></p>
<h3>How to Install the Northwind Sample Database</h3>
<ol>
<li>Unzip the sample database files you just downloaded</li>
<li>Open SQL Server Management Studio (Express if you don&#8217;t have the full version) and connect to your SQL Server instance</li>
<li>Create a new database called Northwind by right clicking Database and select New Database</li>
<li>Go to File/Open, navigate to where you unzipped the download</li>
<li>Select instnwnd.sql</li>
<li>Click Execute to start the import</li>
<li>It will take ~1 minute to complete</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://jivstudio.com/2008/12/02/sample-databases-for-sql-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Apache WAMP vhost with SSL Configuration</title>
		<link>http://jivstudio.com/2008/11/28/apache-wamp-vhost-with-ssl-configuration/</link>
		<comments>http://jivstudio.com/2008/11/28/apache-wamp-vhost-with-ssl-configuration/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 15:06:44 +0000</pubDate>
		<dc:creator>Jason Maletsky</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[Windows XP]]></category>
		<category><![CDATA[iis and apache same server]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[vhosts]]></category>
		<category><![CDATA[wamp]]></category>

		<guid isPermaLink="false">/?p=181</guid>
		<description><![CDATA[If you are developing in a Windows environment and need to host multiple sites on your Apache development workstation or server here are some tips for setting up your Apache configuration. Download and install XAMPP http://www.apachefriends.org/en/xampp-windows.html Verify apache is running after installation &#60;a href="http://localhost" target="_blank"&#62;http://localhost&#60;/a&#62; NOTE: If you are also running IIS you will need [...]]]></description>
			<content:encoded><![CDATA[<p>If you are developing in a Windows environment and need to host multiple sites on your Apache development workstation or server here are some tips for setting up your Apache configuration.</p>
<p><strong>Download and install XAMPP</strong></p>
<blockquote><p><a href="http://www.apachefriends.org/en/xampp-windows.html" target="_blank">http://www.apachefriends.org/en/xampp-windows.html</a></p></blockquote>
<p><strong>Verify apache is running after installation</strong></p>
<pre><code class="html">&lt;a href="http://localhost" target="_blank"&gt;http://localhost&lt;/a&gt;</code></pre>
<p>NOTE: If you are also running IIS you will need to disable socket pooling that is turned on by default and restart your workstation or server after making the changes. You won&#8217;t have to do this if you are using VS.NET built-in debug web server (cassini) for your .NET development. You will also need to use an alternate IP address for IIS as well as Apache and set * to the IP used for Apache in the VirtualHost block header below.</p>
<p><em>Windows Server 2000:</em> <a href="http://articles.techrepublic.com.com/5100-10878_11-6067036.html" target="_blank">http://articles.techrepublic.com.com/5100-10878_11-6067036.html</a></p>
<p><em>Windows Server 2003:</em> <a href="http://www.sitebuddy.com/Apache/IIS/same/server" target="_blank">http://www.sitebuddy.com/Apache/IIS/same/server</a></p>
<p><strong>Open httpd-vhosts.conf</strong></p>
<p>Make a backup of the default vhosts config; eg.</p>
<pre><code class="html">&lt;install dir&gt;\xampp\apache\conf\extra\httpd.conf.bak.</code></pre>
<p>With your favorite text editor (<a href="http://notepad-plus.sourceforge.net/" target="_blank">Notepad++</a> is a great one) open</p>
<pre><code class="html">&lt;install dir&gt;\xampp\apache\conf\extra\httpd.conf</code></pre>
<p>Copy the following.</p>
<pre><code class="html"># HTTP vhosts
NameVirtualHost *:80

&lt;VirtualHost *:80&gt;
  DocumentRoot "&lt;install dir&gt;\htdocs\your-site.com"
  ServerName your-site
  ServerAlias your-site
&lt;/VirtualHost&gt;

# HTTPS vhosts
NameVirtualHost *:443

&lt;VirtualHost *:443&gt;
  DocumentRoot "&lt;install dir&gt;\htdocs\your-site.com"
  ServerName your-site
  ServerAlias your-site

  SSLEngine on
  SSLCertificateFile conf/ssl.crt/server.crt
  SSLCertificateKeyFile conf/ssl.key/server.key
&lt;/VirtualHost&gt;</code></pre>
<p><strong>Restart Apache</strong></p>
<p>Open a command prompt, Windows + R <em>or</em> Windows + R + services.msc and restart Apache</p>
<pre><code class="html">C:\&gt; net stop apache2 &amp;&amp; net start apache2</code></pre>
<p><strong>Update hosts</strong></p>
<p>Copy and make a backup of your hosts file.</p>
<pre><code class="html">%SystemRoot%\system32\drivers\etc\hosts.bak</code></pre>
<p>Open your hosts file and add your new vhost site. The IP address should match the same IP address as your local workstation.</p>
<pre><code class="html">192.168.1.2 your-site</code></pre>
<p>Check that you can ping your new hosts entry.</p>
<pre><code class="html">C:\&gt; ping your-site</code></pre>
<p><strong>Moment of truth</strong></p>
<p>If all went well you should be able to open your new vhost site.</p>
<pre><code class="html"><a href="http://your-site" target="_blank">http://your-site</a></code></pre>
]]></content:encoded>
			<wfw:commentRss>http://jivstudio.com/2008/11/28/apache-wamp-vhost-with-ssl-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk (enhanced)
Database Caching using disk
Object Caching 669/757 objects using disk

Served from: jivstudio.com @ 2012-02-09 09:25:21 -->
