title: Not Found - The requested URL /app/example was not found on this server
body: <p>I have followed the tutorial to get started with Symfony</p>
  
  <blockquote>
    <p><a href="https://symfony.com/doc/current/quick_tour/the_big_picture.html" rel="nofollow noreferrer">https://symfony.com/doc/current/quick_tour/the_big_picture.html</a></p>
  </blockquote>
  
  <p>and I have first set up a development environment using Vagrant: I created the virtual machine Ubuntu, and it seems that the files in the virtual machine are synchronised with my current Symfony project directory.</p>
  
  <p>When I try to start the server locally from the project folder with the following command:</p>
  
  <pre><code>php console server:run
  </code></pre>
  
  <p>or (depending on my current directory)</p>
  
  <pre><code>php app/console server:run
  </code></pre>
  
  <p>I get the following error/warning:</p>
  
  <blockquote>
    <p>[Symfony\Component\Debug\Exception\ContextErrorException]<br>
      Warning: date_default_timezone_get(): It is not safe to rely on the system'<br>
      s timezone settings. You are <em>required</em> to use the date.timezone setting or<br>
       the date_default_timezone_set() function. In case you used any of those me<br>
      thods and you are still getting this warning, you most likely misspelled th<br>
      e timezone identifier. We selected the timezone 'UTC' for now, but please s<br>
      et date.timezone to select your timezone.</p>
  </blockquote>
  
  <p>But apparently this is not a problem, and it is not my actual problem.</p>
  
  <p>I have associated the port <code>80</code> of the virtual machine with the port <code>4567</code> in my local computer, as explained in the tutorial of Vagrant, by typing the following command in the <code>Vagrantfile</code>:</p>
  
  <pre><code>config.vm.network :forwarded_port, guest: 80, host: 4567
  </code></pre>
  
  <p>Now, in the <a href="https://symfony.com/doc/current/quick_tour/the_big_picture.html#running-symfony" rel="nofollow noreferrer">Symfony tutorial</a> I am following, to see the initial page, I have to type the following command in the browser URL entry box:</p>
  
  <pre><code>http://localhost:8000/app/example
  </code></pre>
  
  <p>But it does not work, because of course I need to use another port, so I try with:</p>
  
  <pre><code> http://localhost:4567/app/example
  </code></pre>
  
  <p>and I get the following page:</p>
  
  <p><a href="https://i.stack.imgur.com/OHTRc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OHTRc.png" alt="enter image description here"></a></p>