test.sh's path is /var/www/proj/test.sh, and project.php is inside /var/www/ and my test.sh uses and creates some .txt files.
when i execute test.sh through terminal it works fine, but when I run project.php by
it fails, the permissions on the txt files also changed, so I have to manually change the permissions of the txt file, even to run through terminal again.
rm: remove write-protected regular empty file `/var/www/project/result/List.txt'? project/test.sh: line 8: /var/www/project/result/List.txt: Permission denied
So, how can I permanently give write access to /var/www/*