title: Running PHP on Windows 10 - Server problem?
body: <p>My computer is a Windows 10 64 bit.<br>
  I tried to run my PHP code, steps:</p>
  
  <ol>
  <li>Downloaded php.net. </li>
  <li><p>Set the environment variables path as instructed. Ran the command line like this: <a href="https://imgur.com/a/Q9zs9mL" rel="nofollow noreferrer">https://imgur.com/a/Q9zs9mL</a></p>
  
  <blockquote>
  <pre><code>Microsoft Windows [Version 10.0.17134.345]
  (c) 2018 Microsoft Corporation. All rights reserved.
  
  C:\Users\Mai Do&gt;php -S localhost:4000
  PHP 7.2.10 Development Server started at Mon Oct 22 21:04:32 2018
  Listening on http://localhost:4000
  Document root is C:\Users\Mai Do
  Press Ctrl+C to quit.
  </code></pre>
  </blockquote></li>
  <li><p>Created a PHP file, first with NetBeans</p></li>
  <li>Saved the file in the root directory folder named "php1" (try to be different from my root name)</li>
  <li>Typed in browser: <code>localhost:4000/php1/input.php</code></li>
  <li>Object not found 404 page. </li>
  <li>Tried multiple times with different php file. same thing.</li>
  <li>Switch to Atom. Same thing.</li>
  <li>Moved the file to htdocs folder. Same thing</li>
  <li>Download Xampp. Turn on the Apache and MySQL.  XAMP ver 3.2.2 control panel shows up. Both Button turn to Green. Still not found.</li>
  </ol>
  
  <p>This SO page <a href="https://stackoverflow.com/questions/9406433/php-not-working-in-xampp">PHP not working in XAMPP</a> says:</p>
  
  <blockquote>
    <p>If you're trying to connect via your IP then your router must be
    stopping it so you have to sort the settings out. I don't know your
    router make/model you better off asking their support forums.</p>
  </blockquote>
  
  <p>I am thinking there might be a server config problem. Like this one has a similar issue: <a href="https://stackoverflow.com/questions/39905274/apache2-not-working-with-routes-php">Apache2 not working with routes PHP</a>
  which leads to this:
  <a href="https://docs.bolt.cm/3.0/howto/making-sure-htaccess-works" rel="nofollow noreferrer">https://docs.bolt.cm/3.0/howto/making-sure-htaccess-works</a></p>
  
  <blockquote>
    <p>"Editing the apache2.conf and setting 'AllowOverride All' on , finally
    works." ???</p>
  </blockquote>
  
  <p>I am not sure if that is the right problem either. Can someone walk me through it? Bless you.</p>