Ubuntu 10.10 PHP上传配置
Ubuntu 10.10下php的配置文件放在/etc/php5/apache2文件下
找到php.ini
切换到root账户
用gedit打开php.ini
找到File Uploads
开启上传:file_uploads = on
修改上传文件最大大小
upload_max_filesize = [设定值] 默认是2M
post_max_size = [设定值] 该选项代表允许POST数据的最大字节长度,默认是8M,建议设定值比upload_max_filesize略大
如果启用了内存限制
memory_limit选项的值应比upload_max_filesize略大
最后重启apache
sudo /etc/init.d/apache2 restart
相关推荐
zyyjay 2020-11-09
xuebingnan 2020-11-05
samtrue 2020-11-22
stefan0 2020-11-22
yifangs 2020-10-13
songshijiazuaa 2020-09-24
hebiwtc 2020-09-18
天步 2020-09-17
83911535 2020-11-13
whatsyourname 2020-11-13
zhouyuqi 2020-11-10
Noneyes 2020-11-10
mathchao 2020-10-28
王志龙 2020-10-28
wwwsurfphpseocom 2020-10-28
diskingchuan 2020-10-23
savorTheFlavor 2020-10-23