Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ionlineadmin's avatar

Deploying Laravel on Ubuntu server

Hi All,

So i have completed local dev on the app i am working on. I am just battling to make it work on our internal test server(Ubuntub 16.4).

What i have tried.

  1. Transfered my project over to the server's /var/www/html/.
  2. Installed Composer on the server.
  3. cd into my app dir and ran 'composer install' to install all app dependencies.
  4. Changed permisions for /storage folder to '775'
  5. When i browser my server ip htpp://192.168.X.XXX/myapp, I get this error "You don't have permission to access /myapp/ on this server.

To test if the issues is not Laravel, made another folder in var/ww/html/testblog and create a index.php with echo 'hello'. When i browse 192.168.xx.xx, It works fine.

Is there a step by step guide on how to deploy the app on your SSH server, Not shared hosting

0 likes
2 replies
ionlineadmin's avatar

I have tried 'chown -R www-data:www-data /var/www'

here is my typical rights.

drwxr-xr-x 8 www-data www-data 4096 Jan 18 08:36 app

Please or to participate in this conversation.