By riskakamc
i’m really bad at linux however have been able to setup a webhost, ssl and mysql, phpmyadmin on my ubuntu 18.04 digitalocean server, I also setup a vsftpd server however it’s not working as I expected it to work because permissions are not working. Whenever I do anything in /var/www/mydomain.net (my local root), it gives me an operation failed error. It worked before I changed the local_root to /var/www/mydomain.net (before that it was /home/$USER/ftp)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Maybe just try creating a new user and set Apache to run as the user:
sudo adduser your-new-user
To set your Apache service to run as the new user. To do that edit /etc/apache2/envvars and change APACHE_RUN_USER and APACHE_RUN_GROUP from www-data to your user. Set the ownership of the /var/www/html to be owned by the new user:
sudo chown -R your-new-user:your-new-user /var/www/html
Then just restart Apache.
After that use that user to connect to your server and it would have access to that directory. Here’s a nice article by DigitalOcean that you could take a look on how to get started with VSFTPD:
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.