Apache/2.2.15 (Red Hat)
I have created some sitemap.xml files. I can ftp them to the server with no problem. I can use putty to log in as root and see the files and see their permissions and owner (discover). I also log in to putty using user name discover.
-rwxrwx--- 1 discover discover 6752 Jul 15 09:46 SiteMapIndex.xml
When I try to use the web interface to rebuild the files, I get Warning: file_put_contents(../SiteMapIndex.xml): failed to open stream: Permission denied.
The code works fine on my desktop (php 5.6) I don't think its a code problem, I know its a permission problem. The server is pretty locked down. I do not understand enough about linux/apache to permanently change the permission of those files so that I access them from web interface.
I believe the ftp user and web interface user are the same login. I do not know how to check who I log in as using web interface. (its all a secure connection that I don't have access to. I know all the sql user's and their permissions, just not the linux users permissions.