0

I have a php website which is running on Nginx on Ubuntu using the www-data user.

I want to add SFTP only access (using ssh key) to a new user, having access to the /var/www/websites/company

I've followed this guide:

https://gist.github.com/lymanlai/3008244

The only difference for me is that the /var/www/websites/company already exists and it's owned by root.

I've added a symlink to my web directory, but the paths in PHP are not resolved properly, looks like it's a permission issue (user home dir is outside the web dir).

How do I do this properly including the permission settings?

takeshin
  • 1,471
  • 3
  • 21
  • 28
  • 1
    I think you want to read [NGINX and PHP-FPM. What my permissions should be?](https://www.getpagespeed.com/server-setup/nginx-and-php-fpm-what-my-permissions-should-be). – Danila Vershinin Feb 20 '22 at 13:08

0 Answers0