Linked Questions
21 questions linked to/from Setting up SFTP to log in to server with Filezilla and access files outside my home directory
1
vote
1
answer
16k
views
Can I make a user's home directory be /var/www/html for vsftp? [duplicate]
I have an Ubuntu 16.04 web server. It only hosts one site using Nginx. I want to keep things very simple, and store the index.html file and the whole website in /var/www/html.
I need to be able to ...
3
votes
0
answers
1k
views
WordPress and Ubuntu, www-data and ubuntu for FTP [duplicate]
I posted this in stackoverflow but no one can give me an answer.
...
I'm using Amazon EC2. I'm on Ubuntu 16.04. I'm also using Apache 2. I have WordPress installed on my server.
I do:
chown -R ...
0
votes
0
answers
846
views
How to add php website files to XAMPP? [duplicate]
Ubuntu newbie trying to migrate from Windows.
I installed XAMPP, the installer placed the files in /opt/. I am trying to add my own work and after some digging I found that XAMPP serves files from ...
2
votes
0
answers
89
views
Permissions for Wordpress on Ubuntu 18.04 [duplicate]
On my web server - runnnig LAMP - I have a Wordpress installation, where I'd like to set the ownerships/permissions like this:
my-username is the owner of all files while the owner group is www-data (...
1
vote
0
answers
42
views
Wordpress permissions conflict with www-data and ftp [duplicate]
Running: Ubuntu 18.04, Nginx 1.14
I read somewhere that running Wordpress in 'fs_direct' mode is a security threat, so I wanted to completely scrap that idea and stick to a local ftp server instead.
...
196
votes
8
answers
124k
views
How to avoid using sudo when working in /var/www?
I want to stop having to use sudo everytime I work in /var/www. How can I do that? I simply want to put all of my sites into this directory and work with them without too much pain.
144
votes
3
answers
271k
views
What is the "t" letter in the output of "ls -ld /tmp"?
When running the command ls -ld /tmp, the output would be:
drwxrwxrwt 30 root root 20480 Mar 11 14:17 /tmp
So I have two main questions:
What is the letter t after the permissions?
As far as I know ...
87
votes
4
answers
467k
views
How to setup a restricted SFTP server on Ubuntu?
I would like to know how to set up root, sudo, sftp-only user accounts which won't be required public key authentication at log in. I would also like to know how to set up sftp-only users' home ...
48
votes
8
answers
320k
views
Change Apache document root folder to secondary hard drive
I installed the ubuntu 12.04 server edition for my server pc . i had installed lamp server. i need to change the var/www location to my secondary hard disk location. i was configured so many time to ...
66
votes
3
answers
352k
views
Permissions problems with /var/www/html and my own home directory for a website document root
I'm trying to not give 777 permission in my /var/www/html folder, but I want to edit my files without sudo. So I thought to create a symlink of a folder in my home directory within /var/www/html. I ...
40
votes
3
answers
201k
views
How do I give www-data user to a folder in my home folder?
I have a folder: /home/myuser/folderA
I want to give the www-data user write access to the above, while 'myuser' continues to have normal access (as it is myuser's home folder anyway).
Which ...
7
votes
3
answers
8k
views
apache won't index folder from another mount
I'm trying to enable directory listing for a folder outside the web root, from a different local ext4 mount that uses Basic Authentication, but I'm getting an empty list and no logged errors. What's ...
0
votes
1
answer
4k
views
apache2 is directing to wrong path
i follow this link to set vhosts https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04
and managed to get first site at var/www/html and second site var/...
1
vote
1
answer
2k
views
Permission Denied in /var/www/public_html. I am member of www-data
Hi just installed Apache2 on Ubuntu 20.04. Added myself to www-data group.
id prateek
uid=1000(prateek) gid=1000(prateek) groups=1000(prateek),4(adm),24(cdrom),27(sudo),30(dip),33(www-data),46(plugdev)...
1
vote
1
answer
924
views
How can I make a specific root folder accessible for a user?
I have installed Nextcloud via snaps, and it stores its files under /var/snap/nextcloud/common/nextcloud/data/FriedRose/files, owned by root. I like to give my normal user access to read and write to /...