Is there a tutorial for installing Laravel 5 on a Ubuntu 14.04 LAMP stack ?

November 13, 2015 6.4k views
LAMP Stack PHP Frameworks

Is there a tutorial for installing Laravel 5 on a Ubuntu 14.04 LAMP stack ? I found some older tutorials, but nothing recent. When I do the installation I'm able to see the directory listing. I've tried chmod -R 775 storage, but that still didn't work. Any help is appreciated. New to DO and Laravel. Thanks in advance.

  • To clarify, are you saying that you're not able to see the directory listing? I was a little confused by your question. Did you follow this guide? ? Or which guide did you use?

  • No, that's all I can see if the directory structure. Even after using chmod -R 755 or chmod -R 775.

  • @KingCompass

    Are you familiar with the CLI / OS software locations (Apache, PHP etc) and how did you go about installing Laravel? (Downlad from GitHub Repo, Git Clone, Composer etc)?

    (asking before requesting more technical information)


    PHP files should only require chmod 0644 in most all cases, unless there's something more specialized about your configuration; directories, however, would need chmod 0755.

1 Answer

A sample Apache VirtualHost for a Laravel project could be as simple as:

<VirtualHost *:80>
  DocumentRoot "/var/www/html/project/public"

  <Directory "/var/www/html/project/public">
    AllowOverride all


The key is that the DocumentRoot should be your project's public/ directory.

The only directory whose permissions you should change is the project's storage/ directory in order to grant the web server write permissions:

  • sudo chmod -R 775 /var/www/html/project/app/storage
Have another answer? Share your knowledge.