Deploying Laravel Application to Digital Ocean

... by Bittle in Laravel Development September 27, 2020

Go through the website development library.


Change the web root from /html/ to /public/ (for laravel):

edit 000-default.config:

sudo nano /etc/apache2/sites-enabled/000-default.conf


change all /html/ to /public/


If the app only works through url.com/index.php/route (with index.php) make sure to allow override:

  • open etc/apache2/apache2.conf
  • look for Directory /var/www/
  • Change "AllowOverride None" to "AllowOverride All"
  • Do the same thing under Directory /usr/share/
  • Save and exit the file

Comments (0)

Search Here