找到PHP配置文件 php.ini 配置文件
找到
open_basedir=
与
upload_tmp_dir
一般屏蔽掉就可以了
如果 open_basedir 未屏蔽,那 upload_tmp_dir 必须要添加路径,并且,必须在 open_basedir 配置的路径里面选择一个
出现这个问题:open_basedir restriction in effect. File(../license.php) is not within the allowed path(s):
也只需要把 open_basedir 屏蔽,或者 添加相应路径进去即可
PHP上传默认的linux 临时文件夹在 /tmp 下