Deploy Laravel on 1&1 Servers <p>I have recently completed my first laravel site, but now I am stuck with deployment. This is an entirely new concept for me. My webspace is supplied by 1&amp;1.</p> <p>I have attempted several tutorials, but none seem to work. Based on the tutorial here at: <a href="http://stackoverflow.com/questions/22075238/uploading-laravel-project-onto-web-server">Uploading Laravel Project onto Web Server</a></p> <p>I structured my server folders like so:</p> <p>(note when first FTPing my server, there was no www or html_docs, only a logs folder).</p> <p><img src="https://i.stack.imgur.com/gdZCL.png" alt="enter image description here"></p> <p>In the www, my index.php was altered to:</p> <pre><code>require __DIR__.'/../laravel/bootstrap/autoload.php'; $app = require_once __DIR__.'/../laravel/bootstrap/start.php'; </code></pre> <p>In the laravel/bootstrap/paths.php file I altered:</p> <pre><code>'public' =&gt; __DIR__.'/../../www', </code></pre> <p>When visiting my domain in a browser, for example: myDomain.co.uk - the site is redirected to a "placeholder" (named /defaultsite) page for 1&amp;1 domains and states "This domain name has just been registered."</p> <p>If I append /www/index.php for example, I get file does not exist, even though the file is residing in my structure above.</p> <p>As you probably noticed I am very new to server side aspects such as FTPing ect. I have read a few tuts, and all seem to take a different approach, leaving me confused to the best method. I am not sure where to go from here, so any advice is appreciated. Thank you.</p> <p><strong>Edit: I think I actually got it working, but now when I go to domain.com/public I get what I think is a DB error:</strong></p> <pre><code>SQLSTATE[HY000] [2002] No such file or directory. </code></pre> <p>Any Advice please?</p>