SSH

Permission Stuff

Get current user

whoami

echo get_current_user();

or

id -u

or


echo posix_getuid();

Get group

id -g
user:~$ chown -R www-data:www-data /full/path/to/htdocs/target-folder