PHP修改上传大文件以及应当注意的事项----记录地理所joomla后台更改

php.ini中对上传文件大小是有限制的,如果需要上传大的数据文件,应当对一下几项进行修改:

1) max_execution_limit; 设置每个php页面运行的最大时间值

 2) max_input_time ; 设置每个php页面接收数据的最大时间值

 3) memory_limit ; 每个php页面允许吃掉的最大内存

 4)upload_max_filesize ; 允许上传的最大文件大小

 5)post_max_size ; 表单允许上传的最大值 

注意:post_max_size 的最大值不能超过2048M,如果超过2048M,在/var/log/httpd/error错误日志中会报错:

在项目中(地理所joomla)的具体体现在:登录后台的时候,正确的用户名和密码无法登录,没有任何报错,页面只是刷新一下。

还有:Memory_limit如果不小心修改错误,没有设置什么的,会出现如下错误

Allowed memory size of 0 bytes exhausted (tried to allocate 9 bytes)

[Thu Jan 10 22:01:17 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

[Thu Jan 10 22:01:17 2013] [notice] Digest: generating secret for digest authentication ...

[Thu Jan 10 22:01:17 2013] [notice] Digest: done

Allowed memory size of 0 bytes exhausted (tried to allocate 9 bytes)

[Thu Jan 10 22:02:58 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

[Thu Jan 10 22:02:58 2013] [notice] Digest: generating secret for digest authentication ...

[Thu Jan 10 22:02:58 2013] [notice] Digest: done

Allowed memory size of 0 bytes exhausted (tried to allocate 9 bytes)

[Thu Jan 10 22:04:14 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

[Thu Jan 10 22:04:14 2013] [notice] Digest: generating secret for digest authentication ...

[Thu Jan 10 22:04:14 2013] [notice] Digest: done

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值