Report this

What is the reason for this report?

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

Posted on November 13, 2015

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.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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

<VirtualHost *:80>
  ServerName example.com
  DocumentRoot "/var/www/html/project/public"

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

</VirtualHost>

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.