In my ubuntu i have configured cgi in /var/www/html/webcgi so when files uploaded on that webcgi its not get executed , it shows me internal server error so i need to chmod. As webcgi is chowned www-data and uploader. so i tried to chmod 777 with uploader when files get uploaded, i mean the uploader use php chmod() function to give permission but thats not execute.. but when i chmod it from termial and chown it as www-data it gets executed.. is there any way to chmod files when it get uploaded. i thought to make a cronjob but that's not a good way..
Thanks!