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

tempnam(): file created in the systems temporary directory #3

Open
jkga opened this issue Sep 6, 2018 · 1 comment
Open

tempnam(): file created in the systems temporary directory #3

jkga opened this issue Sep 6, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@jkga
Copy link
Member

jkga commented Sep 6, 2018

Error when loading pdf rendered by DOMPDF

OS: Mac OSX High Sierra

@jkga jkga added the bug Something isn't working label Sep 6, 2018
@jkga
Copy link
Member Author

jkga commented Sep 6, 2018

This is due to permission error in Mac's temporary directory
http://php.net/manual/en/function.tempnam.php

To solve this issue:

  • mkdir /.temp/
  • sudo chmod -R 775 /.temp/
  • update php.ini and add the code below to override default system's temporary directory

php.ini

sys_temp_dir = /.temp/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant