Does your script give it the correct permissions after upload? Whats the error log say in cPanel when you call that file?