I\'m trying to create a file through fopen() as below :
fopen()
Change the permission of the folder(in which you are trying to create) to all permission
sudo chmod 777