Have you googled it? Or have you tried those solutions?
unable to create a temporary file in Unknown on line 0
When I try to upload a file from the Admin panel (in laravel).
In the apache log on server, I'm seeing message below.
Warning: Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/) in Unknown on line 0, referer: https://newworld/admin/letter
Warning: File upload error - unable to create a temporary file in Unknown on line 0, referer: https://newworld/admin/letter
What I do now here?
@me10071990 somewhere run this
echo sys_get_temp_dir();
die;
EDIT: also check
echo ini_get('upload_tmp_dir'); // probably this one
die;
It will give you the tmp folder.
Then make sure that tmp folder has correct permissions:
chmod -R 777 /your/tmp/folder
And also make sure the folder you move to has correct permissions. But I don't think that's the problem.
But you said it worked until some security changes took place, ask someone,
What they did.
Please or to participate in this conversation.