Keywords: LAMP/MAMP/WAMP - AWS - Technical issue - Permissions
This is my first post, but the community's posts have been very helpful to read. I have a LAMP stack through Amazon AWS Lightsail. I've been using composer to set up various SDKs for a new project.
PHPOffice/ PHPSpreadsheet is one of them. It installed seemingly fine with Composer, but I get an error when I try to use it, even with the Hello World example.
The Apache error log says:
PHP Fatal error: Uncaught PhpOffice\PhpSpreadsheet\Writer\Exception: Could not close zip file /opt/bitnami/apache2/htdocs/temp/hello.xlsx. in /opt/bitnami/apache2/htdocs/Roundabout/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx.php
I see that many other folks have had trouble with temporary folders not being writable. I checked the settings in bash and found that the tmp folder is writable. Also, I tried changing the php.ini file, but there don't seem to be any obvious permission problems there either.
Has anyone else resolved this issue? I'm thinking that perhaps it is something specific to Bitnami's security settings?