title: /vendor/autoload.php not found when installing Laravel on Ubuntu 18.04
body: <p>I am trying to install Laravel on my Ubuntu 18.04 computer. I installed composer in <code>/opt/lampp/htdocs/www</code>.</p>
  
  <p>I created a project using the create project command in composer. Once installed I went to the directory via terminal, <code>/opt/lampp/htdocs/www/laravelproject</code>.</p>
  
  <p>I entered <code>composer install</code> in the terminal. When I go to <code>localhost/www/laravelproject/public</code> I get this error message:</p>
  
  <pre><code>PHP Warning:
    require(/opt/lampp/htdocs/www/laravelproject/vendor/autoload.php):  
    failed to open stream: No such file or directory
    in /opt/lampp/htdocs/www/laravelproject/artisan on line 18
  PHP Fatal error: require(): Failed opening required
    '/opt/lampp/htdocs/www/laravelproject/vendor/autoload.php'
    (include_path='.:/usr/share/php')
    in /opt/lampp/htdocs/www/laravelproject/artisan on line 18
  </code></pre>
  
  <p>I have looked all over Google, and stackoverflow for a solution, and all I've been able to find was to go to the root directory and enter composer install via terminal.</p>
  
  <p>But that hasn't fixed the issue for me. Any ideas what could have gone wrong?</p>
  
  <p>Thank you for your time. I appreciate it.</p>
  
  <p>UPDATE: I ended up uninstalling composer, installing Apache2 and installing the dependencies that are show on the laravel website.</p>
  
  <p>From there I reinstalled composer, and laravel, and used the /var/www/html section that the apache installation gave me. And it worked. </p>