 
    
<?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>change port Archives - Complete, Concrete, Concise</title>
	<atom:link href="https://complete-concrete-concise.com/tag/change-port/feed/" rel="self" type="application/rss+xml" />
	<link>https://complete-concrete-concise.com/tag/change-port/</link>
	<description>Practical Information Without The Bloat</description>
	<lastBuildDate>Sat, 16 Apr 2011 07:04:12 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>How to Change the Apache Port in XAMPP</title>
		<link>https://complete-concrete-concise.com/web-tools/how-to-change-the-apache-port-in-xampp/</link>
					<comments>https://complete-concrete-concise.com/web-tools/how-to-change-the-apache-port-in-xampp/#comments</comments>
		
		<dc:creator><![CDATA[richardsplanet]]></dc:creator>
		<pubDate>Sat, 16 Apr 2011 07:04:12 +0000</pubDate>
				<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[change port]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[XAMPP]]></category>
		<guid isPermaLink="false">http://complete-concrete-concise.com/uncategorized/how-to-change-the-apache-port-in-xampp</guid>

					<description><![CDATA[<p>These instructions are for XAMPP 1.7.3 running on Windows XP. They should be similar for other configuration combinations, but no guarantee is made. These instructions should also work for an Apache Server install that is not part of a XAMPP install (specific details regarding file locations and restarting of the Apache Server will differ). NOTE: [&#8230;]</p>
<p>The post <a href="https://complete-concrete-concise.com/web-tools/how-to-change-the-apache-port-in-xampp/">How to Change the Apache Port in XAMPP</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="c1">
<p>These instructions are for XAMPP 1.7.3 running on Windows XP.</p>
<p>They should be similar for other configuration combinations, but no guarantee is made.</p>
<p>These instructions should also work for an Apache Server install that is not part of a XAMPP install (specific details regarding file locations and restarting of the Apache Server will differ).</p>
<div class="c3">
<p><strong>NOTE:</strong> XAMPP 1.7.4 and XAMPP 1.7.7 display <u>misleading</u> port information in the XAMPP Control Panel.</p>
<p><u>Regardless</u> of which port you specify Apache to listen to, the XAMPP Control Panel will always display:</p>
<p><span class="i1"><code>Apache started [Port 80]</span></code></p>
<p>This is WRONG!!!! This is a HARDCODED string in XAMPP 1.7.4 and 1.7.7. It does not reflect the actual port Apache is listening to.</p>
<p> Yet another reason why you should not be using XAMPP 1.7.4 or 1.7.7.</p>
</div>
</div>
<p>By default, Apache Server listens on port 80, but this can be changed.</p>
<h2>Why Change the Port?</h2>
<p>Perhaps certain ports are blocked by your network admin or ISP (although, I would not recommend running XAMPP as a publicly accessible server). </p>
<p>Perhaps port 80 is already being used by some other application (like IIS) and you don&#8217;t want to or are not allowed to shut it down or change it.</p>
<p>Apache Server is not starting and you are using XAMPP 1.7.4 (I recommend XAMPP 1.7.3). XAMPP 1.7.4 removed a useful port debugging tool, so changing the Apache Server port is one way of checking to see if you have a port conflict &#8211; change the port and if Apache Server starts working, then you know some other application is using port 80. You should try several ports, just in case you are <em>lucky</em> and manage to pick ports used by other applications. Some ports to try are 2375, 4173, 5107, 9260, 20010 &#8211; these ports, among others, are all <a href="http://www.iana.org/assignments/port-numbers" target="_top">listed</a> as unassigned (but that doesn&#8217;t mean someone else isn&#8217;t using them). </p>
<h2>How to Change the Port</h2>
<p>Edit the <span class="i1"><em>httpd.conf</em></span> file to change the port Apache listens on.</p>
<p><strong>(1) Locate</strong> the file <u><em>httpd.conf</em></u>. This file should be found in <span class="i1">C:\xampp\apache\conf</span> (or whichever directory you installed XAMPP in &#8211; mine is on my D-drive because that is where I installed XAMPP).</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/04/xampp-change-apache-port-1.png" alt="" border="0" class="centered"/></p>
<p><strong>(2) Open</strong> the file using a text editor or programmer&#8217;s editor (I use <a href="http://notepad-plus-plus.org/" target="_top">notepad++</a>). <span class="i3"><strong>DO NOT</strong> use a word processor (like Word) to open the file, it will badly mess it up.<br />
</span></p>
<p><strong>(3a) Locate</strong> the line that says <span class="i2"><code>Listen 80</code></span>. It is line #47 in the XAMPP 1.7.3 install.</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/04/xampp-change-apache-port-2.png" alt="" border="0" class="centered"/></p>
<p><strong>(3b) Change</strong> the port number (80) to a different number (for this tutorial, I changed it to 1234).
</p>
<p><strong>(3c) Save</strong> the file.</p>
<p><strong>(4) Restart</strong> the Apache Server to have the change take effect. Do this by <strong>clicking</strong> on the <u><em>Stop</em></u> button on the XAMPP control panel and then <strong>clicking</strong> on the <u><em>Start</em></u> button. (You could also just reboot the computer, but that is overkill).</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/04/xampp-change-apache-port-3.png" alt="" border="0" class="centered"/></p>
<h1>Using the New Port</h1>
<p>When you connect to the Apache Server, you will have to append the port number to the URL. Previously where you typed <span class="i1"><em>localhost</em></span>, you will now have to type <span class="i1"><em>localhost:1234</em></span> (or whatever your new port number is):</p>
<p><img decoding="async" src="//complete-concrete-concise.com/wp-content/uploads/2011/04/xampp-change-apache-port-4.png" alt="" border="0" class="centered"/></p>
<div class="c1">
<p><strong>Note:</strong> in Microsoft Internet Explorer 8 (IE8), it is necessary to prepend the prefix <em>http://</em> before <em>localhost</em>: localhost:1234 will not work, it must be <span class="i1">http://localhost:1234</span>.</p>
<p>I did not observe this with Firefox 4.0 &#8211; entering <span class="i1">localhost:1234</span> worked just fine (the browser was able to resolve the address as <em>http://localhost:1234</em>).</p>
<p><strong>Second note:</strong> this is not a bug in IE8 &#8211; as a convenience, browsers automatically try to fixup URLs for you. Technically, you <strong>ARE</strong> required to type <strong><em>http://</em></strong> before every URL you type in.</p>
</div>

<p>The post <a href="https://complete-concrete-concise.com/web-tools/how-to-change-the-apache-port-in-xampp/">How to Change the Apache Port in XAMPP</a> appeared first on <a href="https://complete-concrete-concise.com">Complete, Concrete, Concise</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://complete-concrete-concise.com/web-tools/how-to-change-the-apache-port-in-xampp/feed/</wfw:commentRss>
			<slash:comments>43</slash:comments>
		
		
			</item>
	</channel>
</rss>
