title: Setting Up WordPress MS Locally with Port 8888 with XAMPP
body: <p>I have installed XAMPP and edited the httpd.conf file because my port 80 is busy.
  So I have the following:</p>
  
  <pre><code>Listen 0.0.0.0:8888
  Servername localhost:8888
  </code></pre>
  
  <p>Everything works fine until I try to install WordPress 3.0.5 MS because it will not accept ports in the name.</p>
  
  <p>So I have tried to add .htaccess file to my htdocs that contains:</p>
  
  <pre><code>RewriteEngine on
  RewriteRule ^:8888/(.*)$ /$1 [L]
  </code></pre>
  
  <p>But that did not work.</p>
  
  <p>So I have tried to create Virtual Hosts in httpd.conf adding the following at the bottom:</p>
  
  <pre><code>&lt;Directory "C:/xampp/htdocs/www/wp.dev"&gt;
    Order Deny,Allow
    Allow from all
  &lt;/Directory&gt;
  &lt;Directory "C:/xampp/htdocs/"&gt;
    Order Deny,Allow
    Allow from all
  &lt;/Directory&gt;
  
  
  NameVirtualHost 127.0.0.1:8888
  &lt;VirtualHost 127.0.0.1:8888&gt;
     DocumentRoot "C:/xampp/htdocs/"
     ServerName localhost2
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost 127.0.0.1:8888&gt;
     DocumentRoot "C:/xampp/htdocs/www/wp.dev"
     ServerName wp.dev
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>And then I added the following to my hosts file (<a href="http://www.fpweb.net/support/managed-hosting/hostfile-editing-support.asp" rel="nofollow">Help</a>):</p>
  
  <pre><code>127.0.0.1:8888       localhost2
  127.0.0.1:8888       wp.dev
  </code></pre>
  
  <p>And that hasn't worked. I cannot use port 80 as an option, so I need to figure this out. So what am I doing wrong?</p>