问题
I'm working on a mac OSX 10.8 using the built in apache server and php/mysql to develop on moodle 2.4
the problem i'm having is that why I try and upload anything I get the error message PHP is missing a Temporary Folder.
I then downloaded the live copy onto my laptop as i know this is working, and still got the same error on my localhost.
How can i fix this?
回答1:
Open your php.ini file look at the value for upload_tmp_dir and double check that the path exists.
And that apache has write access to it also, obviously.
回答2:
Just to add to this, on windows refer to the same upload_tmp_dir setting in your php.ini file and make sure the IUSR account has full control/write access to this directory.
回答3:
Change permission on /tmp folder chmod 777 /tmp
来源:https://stackoverflow.com/questions/14235871/missing-a-temporary-folder