I have a site which has a folder for google sitemaps. Recently I've been receiving the following error sent to me
Sitemap generate warnings: File "sitemap.xml" cannot be saved. Please, make sure the directory "/var/www/vhosts/frrakns.com/sitemaps/en/" is writeable by web server.
ls -ld it shows the following owner and permissions
drwxrwxr-x 2 www-data www-data 4096 Jul 3 22:04 /var/www/vhosts/frrakns.com/sitemaps/en/
So I generally take this to mean the folder is owned by apache and both owner and group has write permissions. Where am I going wrong?
sudo su - www-data -s /bin/bash) and try to create a file there to make sure you can access the directory and have write access. If that doesn't help, I would think it has nothing to do with your rights. The error sounds like access rights is just the most probable solution, not the one that was checked.