Why can't my PHP script chmod a file it creates? Why can't my PHP script chmod a file it creates? apache apache

Why can't my PHP script chmod a file it creates?


Most probably due to umask. Try setting it to 0 prior to the chmod.