当我尝试上传数据库(794 kb)时出现错误:
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.
我已经阅读了很多关于这个错误的答案,但我找不到适合我的决定和答案。
我的服务器:
Ubuntu 12.10 服务器
Apache/2.2.22 (apache2-mpm-itk);
MySQL客户端版本:5.5.27;
phpmyadmin 3.4.11.1deb1;
nginx/1.2.1 ;
PHP 5.4.6;
在/etc/nginx/default中配置 phpmyadmin
location /phpmyadmin {
root /usr/share/phpmyadmin;
index index.php;
proxy_pass http://backend/phpmyadmin;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_connect_timeout 120;
proxy_send_timeout 120;
proxy_read_timeout 180;
}
php.ini 配置
file_uploads = On
upload_tmp_dir = /var/tmp
upload_max_filesize = 128M
max_file_uploads = 30
post_max_size = 128M
谢谢!