I have set up a Ubuntu LAMP server, and everything is working fine, however, I have a PHP script that allows the user to upload files to a directory within the www directory. The files saved via PHP are chmod 644.
How can I change the setting so that the files saved on the server are chmod 755 by default?