I am executing a php script from my home directiry in linux, script is executing but at the end of the script when it encounters below steps, it stops. This statement is create file. I have write access in the specified directory. I am very new to php and dont know how can i debug this or see the error. $objWriter->save($fileName);