取消Lunarpages主机附件上传限制的官方答复:
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步后修改就完成了!
经我测试,完全有效!!
文章的脚注信息由WordPress的wp-posturl插件自动生成