title: Can EasyPHP Devserver Appache Listen to Multiple Ports?
body: <p>Installed EasyPHP Devserver on Windows 7.</p>
  
  <blockquote>
    <p>EasyPHP Devserver Version 17.0 (pretty the latest)</p>
    
    <p>EasyPHP Devserver Apache Version 2.4.25</p>
  </blockquote>
  
  <p><strong><em>You may skip direct to my conclusion below.</em></strong></p>
  
  <p><strong><em>Here is my process of trials.</em></strong></p>
  
  <p>In the <code>httpd.conf</code> file, I added the second Listen port</p>
  
  <pre><code>Listen 127.0.0.1:80
  Listen 127.0.0.1:8080
  </code></pre>
  
  <p>Then at the EasyPHP Devserver website console (<a href="http://127.0.0.1:1111" rel="nofollow noreferrer">http://127.0.0.1:1111</a>) I restart the Apache. the <code>httpd.conf</code> file will be rewritten to the following, and Apache cannot start. (Where can I see the error log? Nothing written into EasyPHP Devserver\eds-binaries\httpserver\apache...\logs)</p>
  
  <pre><code>Listen 127.0.0.1:80
  Listen 127.0.0.1:80
  </code></pre>
  
  <p>If I leave the <code>httpd.conf</code> file with only one Listen port</p>
  
  <pre><code>Listen 127.0.0.1:8080
  </code></pre>
  
  <p>Apache starts successful, but <code>httpd.conf</code> is also rewritten back to </p>
  
  <pre><code>Listen 127.0.0.1:80
  </code></pre>
  
  <p>And in the EasyPHP Devserver website console (<a href="http://127.0.0.1:1111" rel="nofollow noreferrer">http://127.0.0.1:1111</a>) > Http Server Settings (the gear icon) > there is a drop down menu for us to select the Port: 80.</p>
  
  <p>There are a few options, 80 8080, 8000, 8888, 8008. If I change here, and restart the Apache. the <code>httpd.conf</code> is updated according to this setting.</p>
  
  <p><strong><em>Conclusion</em></strong></p>
  
  <p>My conclusion is, no matter what I set in the <code>httpd.conf</code> file, the <code>Listen 127.0.0.1:80</code> will be rewritten by the setting in the EasyPHP Devserver website console > Http Server Settings > Port. The real setting is controlled by the EasyPHP Devserver website console. The <code>httpd.conf</code> file <code>Listen</code> directive is not functionable.</p>
  
  <p><strong><em>Question</em></strong></p>
  
  <p>Here comes the question. In fact I only wish to configure Apache Listens to multiple port, 80 for production and 8080 for development. How can I do it?</p>