Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to open stream: Permission denied on line 178 of /var/cbi/framework/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/BaseWriter.php #3990

Open
davixma95 opened this issue Apr 17, 2024 · 0 comments

Comments

@davixma95
Copy link

IM having the same problem but I couldnt solve it

$spreadsheet = new Spreadsheet();

    $sheet = $spreadsheet->getActiveSheet();
    
    $sheet->setCellValue('A1', 'GeeksForGeeks!'); 
    // -rw-r--r--
    $sheet->setCellValue('B1', 'A Computer Science Portal For Geeks'); 
    
    $writer = new Xlsx($spreadsheet);
    
    $writer->save('gfg.xlsx');

Its just a test for me, when Im going to save it appears this problem i have the URL good, i had to change the permissions to 777, its not root anymore, its my name, i dont know what else i have to do.

I also checked this URL https://unix.stackexchange.com/questions/503111/group-permissions-for-root-not-working-in-tmp but nothing works.
Thank u everyone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant