My php project reported error: unable to write file. I found that might be caused by permission guaranteed for directory containing my project files.
I did this:
sudo chown [username]:[username] -R [directory location]
and then restarted apache but nothing got changed even my /WWW is in home. Any help is appreciated :)
www-data
. – Tung Tran Dec 15 '15 at 10:13