Question

PHPExcel Permission Denied

Can Someone Help me with this Error

Warning: fopen(Diagnosis_.xls): failed to open stream: Permission denied in /var/www/mydomain.com/public_html/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/public_html/PHPExcel/Classes/PHPExcel/Shared/OLE/PPS/Root.php:93 Stack trace: #0 /var/www/iligandogandcatdoctor.info/public_html/PHPExcel/Classes/PHPExcel/Writer/Excel5.php(233): PHPExcel_Shared_OLE_PPS_Root->save(‘Diagnosis_.xls’) #1 /var/www/iligandogandcatdoctor.info/public_html/reports_diagnostic.php(192): PHPExcel_Writer_Excel5->save(‘Diagnosis_.xls’) #2 {main} thrown in /var/www/iligandogandcatdoctor.info/public_html/PHPExcel/Classes/PHPExcel/Shared/OLE/PPS/Root.php on line 93


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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