The web server default user (it's www-data most of the time), should have execute rights on php files. Check this link: https://www.digitalocean.com/community/questions/permissions-on-var-www-html-for-uploading-web-site-files-via-sftp
Jan 17, 2018
2
Level 5
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.
- Transfered my project over to the server's /var/www/html/.
- Installed Composer on the server.
- cd into my app dir and ran 'composer install' to install all app dependencies.
- Changed permisions for /storage folder to '775'
- 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
Please or to participate in this conversation.