Blog

Posts Tagged FusionPBX

FusionPBX PHP Warning: File upload error – unable to create a temporary file in Unknown on line 0, referer: /app/voicemail_greetings/voicemail_greetings.php?id=1001&back=%2Fapp%2Fvoicemails%2Fvoicemails.php

I was working on a FusionPBX and it wouldn’t upload a voicemail greeting. When i checked in the /var/log/httd/error_log there was a error PHP Warning: File upload error – unable to create a temporary file in Unknown on line 0, referer: /app/voicemail_greetings/voicemail_greetings.php?id=1001&back=%2Fapp%2Fvoicemails%2Fvoicemails.php

 

After doing some digging around i found that the upload_tmp_dir = wasn’t set.

After editing /etc/php.ini

; http://php.net/upload-tmp-dir
upload_tmp_dir = “/tmp”

; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 20M

and service httpd restart

and all working.

Posted in: Blog

Leave a Comment (0) →