Not able to upload files and images

Dear Team,

        I have an issues while change the path of data dir in ec2. we are running more than 4 website in elgg and one in normal php. Suddenly i am not able to upload a files, even a profile image also. I dnt know why.Even i just test with simple php file also. Please give me suggestion. Any server configuration??