纳速健身

标题: 关于取消LP附件上传限制方法的官方答复 [打印本页]

作者: awagink    时间: 2008-3-31 21:50
标题: 关于取消LP附件上传限制方法的官方答复

关于取消LP附件上传限制的官方答复(中英文)
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 [email protected] 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步后修改就完成了!经我测试,完全有效!!


在htaccess中添加:

suPHP_ConfigPath /home/Yourusername/public_html

其中Yourusername用cpanel用户名代替

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




欢迎光临 纳速健身 (https://nasue.com/) Powered by Discuz! X3.4