Hi there, I am running a server using CentOS 6.5 x64, and i followed the following tutorials: https://www.digitalocean.com/community/articles/how-to-configure-vsftpd-to-use-ssl-tls-on-a-centos-vps https://www.digitalocean.com/community/articles/how-to-install-linux-apache-mysql-php-lamp-stack-on-centos-6
And when i connect to the FTP, the files owner is Apache and the FTP doesnt let me upload/edit/delete the files because of the the files aren’t my FTP user, but if i change the ownership to my user, apache can’t run it.
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!
Change the ownership to your user and then run the following commands: <br><pre>sudo chgrp -R apache /path/to/your/files <br>sudo chown -R g+w /path/to/your/files</pre>
The first command sets the group ownership to the group that’s called “apache”. The second command adds write permissions to members of the group that owns the files (which is apache in this case). This allows apache to write to the files.
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.