IXWebHosting特别优惠

 

IXWebHosting为 本站用户提供特别优惠

最低只需3.95美元/月

美国主机侦探论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

Godaddy优惠码 美国主机优惠信息汇总出售cPanel CloudLinux R1SoftGodaddy美国空间代购
IX WebHosting专题站国外主机资料导航支持支付宝付款的美国主机BlueHost空间介绍
查看: 4478|回复: 15

关于取消LP附件上传限制的官方答复(中英文) [复制链接]

Rank: 1

金币
0
银币
269
侦探币
0
威望
10
阅读权限
10
帖子
47
精华
0
积分
47
UID
20034
发表于 2008-1-23 03:54:12 PM |显示全部楼层
Hello
You can change the upload file size by doing the following:
Put the following in a regular text file named php.ini in the same folder as
the upload script:
upload_max_filesize = 5M
post_max_size = 5M
Replace the 5 with whatever size you want. If you are letting other people
upload, a size cap protects your storage space from abuse/overuse.
If you want all your site folders to have the same setting, put the php.ini
file in public_html folder.
You will then need to add this line to a .htaccess file:
(Please replace "yourusername" with your cpanel user name an add to the end of the comand line the folder(s) to the location of the php.ini file - Also there is a space between path and /home)
suPHP_ConfigPath /home/Yourusername/public_html
--
If you have any more questions, please do not hesitate to contact the Lunarpages Help Desk again.
--
Best Regards,
Dinsan Francis
support@lunarpages.com
Telephone: 1-714-521-8150
Fax: 1-714-521-8195

我翻译的其中一个方法:
全局设置,在public_html 文件夹下
在php.ini文件添加
upload_max_filesize = 5M
post_max_size = 5M
可以把5换成其他数值,
然后在 .htaccess 中,添加suPHP_ConfigPath /home/Yourusername/public_html
其中yourusername是你的控制面板的用户名,完成以上2步后修改就完成了!
经我测试,完全有效!!

[ 本帖最后由 tomalan68888 于 2008-1-23 04:02 PM 编辑 ]
已有 1 人评分威望 收起 理由
大象无形 + 5

总评分: 威望 + 5   查看全部评分

超级版主

GOD is a girl

Rank: 8Rank: 8

金币
86
银币
102569
侦探币
6
威望
214
阅读权限
200
帖子
25768
精华
14
积分
25908
UID
2
发表于 2008-1-23 04:01:01 PM |显示全部楼层
在htaccess中添加:

suPHP_ConfigPath /home/Yourusername/public_html

其中Yourusername用cpanel用户名代替

在php.ini中添加:
upload_max_filesize = 5M
post_max_size = 5M

使用道具 举报

Rank: 1

金币
0
银币
269
侦探币
0
威望
10
阅读权限
10
帖子
47
精华
0
积分
47
UID
20034
发表于 2008-1-23 04:02:36 PM |显示全部楼层
哈~和老大翻译的一样哈

使用道具 举报

Rank: 2

金币
12
银币
377
侦探币
0
威望
1
阅读权限
20
帖子
107
精华
0
积分
107
UID
19062
发表于 2008-1-23 04:49:10 PM |显示全部楼层
那我今晚也要测试一下这个功能.

使用道具 举报

Rank: 2

金币
0
银币
659
侦探币
0
威望
5
阅读权限
20
帖子
191
精华
0
积分
191
UID
17497
发表于 2008-2-20 12:06:13 PM |显示全部楼层
php.ini
这个文件在哪 我怎么找不到?

使用道具 举报

Rank: 1

金币
0
银币
269
侦探币
0
威望
10
阅读权限
10
帖子
47
精华
0
积分
47
UID
20034
发表于 2008-3-26 04:47:37 PM |显示全部楼层
HostEase
在public_html目录里。没有的话可以新建一个。如果不设置php.ini的内容则按照全局的默认设置

使用道具 举报

Rank: 2

金币
0
银币
761
侦探币
0
威望
0
阅读权限
20
帖子
180
精华
0
积分
180
UID
18080
发表于 2008-10-12 09:14:59 PM |显示全部楼层
那请问子目录的域名绑定网站的上传限制怎末修改?

使用道具 举报

Rank: 3Rank: 3

金币
0
银币
931
侦探币
0
威望
0
阅读权限
30
帖子
211
精华
0
积分
211
UID
13782
发表于 2008-10-13 12:55:51 AM |显示全部楼层
HostEase
做个记号

使用道具 举报

Rank: 1

金币
5
银币
42
侦探币
0
威望
0
阅读权限
10
帖子
9
精华
0
积分
9
UID
22706
发表于 2009-1-7 05:57:04 PM |显示全部楼层
这贴得记录下;哈哈,我就觉得奇怪了怎么我一上传,没一会就断开

使用道具 举报

Rank: 2

金币
0
银币
411
侦探币
0
威望
0
阅读权限
20
帖子
129
精华
0
积分
129
UID
25530
发表于 2009-1-8 09:44:48 AM |显示全部楼层
做个记号
谢谢分享

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

论坛言论由会员发布,不代表本论坛观点;非交易论坛,本站不对会员间交易承担任何责任。

代购请联系本站客服

美国主机侦探 回顶部