Note that there are some explanatory texts on larger screens.

plurals
  1. POXAMPP apache server not using the ports I desire, not certain why
    text
    copied!<p>So, I've been setting up this HTTP server for a school project that has to be able to maintain multiple domains through virtual hosts. Using XAMPP I have my server set up, I thought I'd done it properly but perhaps not. </p> <p>I had heaps of issues with not being able to listen to a port, to solve this I used (in httpd.conf under apache/conf/)</p> <pre><code> Listen 0.0.0.0:8080 ServerName localhost:8080 </code></pre> <p>If I used 80/81/8080/321/any combination that did not have the prefix 0.0.0.0 it told me the port could not be listened or whatever (sorry, a little rusty with my syntax).</p> <p>I set up my first virtual host up like so (under apache/conf/extra/httpd-vhosts.conf):</p> <pre><code>NameVirtualHost *:8080 &lt;VirtualHost *:8080&gt; DocumentRoot "H:/xampp2/xampp/htdocs" ServerName localhost:8080 &lt;Directory "H:/xampp2/xampp/htdocs"&gt; Option Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre> <p>I thought this seemed all good and well and I don't believe I've modified anything else. To me, I would expect that this means my Apache server would use port 8080 for the server? However, when I start Apache in XAMPP it states quite clearly </p> <pre><code> Apache started [Port 80] </code></pre> <p>Why would this be port 80?</p> <p>In conjunction, localhost:8080 doesn't navigate me to the documents, but localhost:80 or localhost do. I presume that this just means it's still on port 80. I've tried resetting my computer and XAMPP. </p> <p>If you need any more information, please let me know. I tried following guides such as this one: <a href="http://ailoo.net/2008/07/set-up-multiple-virtual-hosts-on-xampp-for-windows/" rel="nofollow">http://ailoo.net/2008/07/set-up-multiple-virtual-hosts-on-xampp-for-windows/</a></p> <p>Cheers.</p> <p>Oh, I also edited my Windows HOSTS file; it looks like so:</p> <pre><code># localhost name resolution is handled within DNS itself. 127.0.0.1 localhost ::1 localhost 127.0.0.1 localhost:8080 </code></pre> <p>Edit: New error... Now getting this when I init, doesn't seem to be affecting it though: </p> <pre><code> ERROR: Status Check Failure [3] This program must be run from your XAMPP root directory. </code></pre> <p>It is being run from teh root directory as far as I can tell.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload