遇到No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration. See FAQ 1.16怎么解決
2017-01-12 16:48:52
11240
使用wdcp面板管理centos系統(tǒng)時(shí),如果遇到上傳數(shù)據(jù)庫(kù)提示
“No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration. See FAQ 1.16”
說明數(shù)據(jù)庫(kù)大小超過了PHP限制的大小,需要修改php配置文件。
wdcp提供了文件管理功能,在“系統(tǒng)管理-文件管理-php.ini”打開php.ini配置文件,修改一下參數(shù):
max_execution_time = 0(默認(rèn)是30)
post_max_size = 20M (限制為20M)
post_max_size = 20M (限制為20M)
設(shè)置完畢點(diǎn)保存,重啟服務(wù)器,這樣設(shè)置之后上傳文件大小就被限制成20M。