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

Posted November 13, 2015 7.5k views
LAMP StackPHP 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.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
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