title: Configure remote Laravel app to be accessible from browser
body: <p>All the laravel projects I worked on were installed/configured started by other people. A long time ago I managed to install a Laravel project on a Windows machine using WAMP and it was easier as far as I remember.
  I recently received access to a clean droplet from digitalocean.com with Centos 7 installed. I think a droplet is something like a VPS. You have an IP, and SSH access
  After some headache I managed to successfully install laravel using composer. I have also installed mysql and apache(httpd)
  Now I have </p>
  
  <blockquote>
    <p>/var/www/laravel</p>
  </blockquote>
  
  <p>folder, with the installation of the latest Laravel (5.3)</p>
  
  <p>I went inside /var/www/ and called </p>
  
  <blockquote>
    <p>composer create-project laravel/laravel mypro</p>
  </blockquote>
  
  <p>Now, I have a laravel app scheleton of a new application at </p>
  
  <blockquote>
    <p>/var/www/mypro</p>
  </blockquote>
  
  <p>I would like to access it from a browser so I can start working on it, but I do not know what I need to do. There are many tutorials on how to do that but they are very confusing for me.</p>
  
  <p>What must I do next in order to be able to see the results of what I am working on?
  If , in the browser, I access now the droplet by IP, like</p>
  
  <blockquote>
    <p><a href="http://xxx.xxx.xxx.xxx" rel="nofollow noreferrer">http://xxx.xxx.xxx.xxx</a></p>
  </blockquote>
  
  <p>I get</p>
  
  <blockquote>
    <p>Not Found The requested URL / was not found on this server.</p>
  </blockquote>
  
  <p>Same if I add to the URL the name of my app like </p>
  
  <blockquote>
    <p><a href="http://xxx.xxx.xxx.xxx/mypro" rel="nofollow noreferrer">http://xxx.xxx.xxx.xxx/mypro</a></p>
  </blockquote>
  
  <p>I believe I must configure the httpd ? Or maybe move the project's folder somewhere else?</p>
  
  <p>I tried moving my project folder inside /var/www/html folder, so </p>
  
  <blockquote>
    <p>/var/www/html/mypro</p>
  </blockquote>
  
  <p>and now when I try to access the url I receive an empty page (view-source of the browser page returns also an empty page)
  I even tried</p>
  
  <blockquote>
    <p><a href="http://xxx.xxx.xxx.xxx/mypro/server.php" rel="nofollow noreferrer">http://xxx.xxx.xxx.xxx/mypro/server.php</a></p>
  </blockquote>
  
  <p>since there is a server.php file in the root of my project folder... same result</p>
  
  <p>I even added a conf to the /etc/httpd/conf.d/ folder called mypro.conf where I added these lines:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
     ServerName mypro
     DocumentRoot "/var/www/html/mypro/public"
     &lt;Directory /var/www/html/mypro/public&gt;
        AllowOverride all
     &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Nothing new happens
  I did "service httpd restart" everytime a changed something.</p>
  
  <p>I even tried</p>
  
  <p>php artisan serve --host xxx.xxx.xxx.xxx --port 8000</p>
  
  <p>and tried the url <a href="http://xxx.xxx.xxx.xxx:8000" rel="nofollow noreferrer">http://xxx.xxx.xxx.xxx:8000</a></p>
  
  <p>Now I get "Unable to connect" page from the browser so I stopped the "serve"</p>
  
  <p>What is it that I have to do in order to be able to finally start working?</p>