I've recently installed Raspbian (Jessie) on a Pi B+ and installed Apache and PHP and copied some HTML and PHP code from a Dalek project from the forum. I changed /var/www/ to be owned by pi and successfully edited index.html to change various bits including a link to a gif file which I copied into /var/www/html and it all worked. I then changed some of the .php files that the html used and got them working.
After a reboot all my changes to index.html and the .php files had disappeared and the gif had gone as well and the permission had reverted to root. It looks like the whole folder had been copied back from somewhere.
I've done this sort of thing before without problem - has something changed recently or is there a setting somewhere that I've missed?
Thanks for any help Dave