PHPExcel Permission Denied

August 27, 2014 3.8k views

Can Someone Help me with this Error

Warning: fopen(Diagnosis.xls): failed to open stream: Permission denied in /var/www/mydomain.com/publichtml/PHPExcel/Classes/PHPExcel/Shared/OLE/PPS/Root.php on line 90 Fatal error: Uncaught exception 'Exception' with message 'Can't open Diagnosis.xls. It may be in use or protected.' in /var/www/iligandogandcatdoctor.info/publichtml/PHPExcel/Classes/PHPExcel/Shared/OLE/PPS/Root.php:93 Stack trace: #0 /var/www/iligandogandcatdoctor.info/publichtml/PHPExcel/Classes/PHPExcel/Writer/Excel5.php(233): PHPExcelSharedOLEPPSRoot->save('Diagnosis.xls') #1 /var/www/iligandogandcatdoctor.info/publichtml/reportsdiagnostic.php(192): PHPExcelWriterExcel5->save('Diagnosis.xls') #2 {main} thrown in /var/www/iligandogandcatdoctor.info/publichtml/PHPExcel/Classes/PHPExcel/Shared/OLE/PPS/Root.php on line 93

1 Answer

chmod 755 /var/www/mydomain.com/public_html/

Have another answer? Share your knowledge.