PHP Warning: File upload error - unable to create a temporary file
Hi
I am getting the following error when uploading images to my website:
PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0
I am running centos-7 with WHM. the current user for php-7.2 is "oah" with group "oah" although I have the "upload_tmp_dir" set to default which is "/tmp" in centos-7. I added that user to the root group but still have the same error message, do I need to set further permissions? if so, where?
-
Hello @oah, Can you let us know the contents of the .htaccess file in the document root of the affected PHP script? Ensure to remove any identifying information from the contents when pasting it here. Thank you. 0 -
Hello @oah, Can you let us know the contents of the .htaccess file in the document root of the affected PHP script? Ensure to remove any identifying information from the contents when pasting it here. Thank you.
Hi @cPanelMichael I am not using any ht-access file at the moment. Thx.0 -
Hi Thank you for your support, I solved the problem (temporarily) by adding the user to the root group ( I know that is a security risk ) but for debug purposes doing that solved the problem for me. 0
Please sign in to leave a comment.
Comments
4 comments