I have a raspberry pi running Apache2, PHP5 and Samba on it (so I can access the pi from my home network as a network drive).However, I have managed to change the apache2 running directory to /network-drive/website in order to be able to build a home website from that directory, which means I can just view the files in windows explorer from my laptop like any other folder.The problem is, When I log into my pi with the user name mandy-samba, The PHP files it saves do not have execute permissions.  When I try and access  index.php, I get the following error:Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0However If I log in via SSH and run the following command:sudo chmod -R 755 /network-drive/websiteIt works fine.But if I edit the file from my laptop (aka, the mandy-samba user), I get the error.  How can I allow or set my mandy-samba user to write files with executable permissions?
PHP Permission Denied
apache httpd;php;samba