如何增加最大上传文件大小的cPanel? [英] How to increase Maximum Upload size in cPanel?

查看:767
本文介绍了如何增加最大上传文件大小的cPanel?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用我的网站的cPanel增加最大上传文件大小字preSS媒体上传。我已经使用了codeS(从谷歌发现)用于此目的的wp-config.php文件,但的.htaccess没有什么工作。在我的cPanel,对于在软件/服务部分或其他地方的PHP配置编辑器没有服务。请帮助我该怎么办?

I am using cPanel of my website to increase maximum upload file size for wordpress media uploads. I have used the codes(found out from google) for this purpose wp-config.php, .htaccess but nothing is working. In my cPanel, there is no service for php configuration editor under software / services section or anywhere else. Please help what should I do?

我的.htaccess显示了这个code:

My .htaccess shows this code:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

我试图通过将code:

I tried by placing the code:

php_value upload_max_filesize 20M
php_value post_max_size 20M

内外#块,它提供了500错误,而。

inside and outside # blocks, it gives 500 error rather.

推荐答案

我已经找到了答案,并解决这个问题。之前,我不知道php.ini文件所在的字preSS文件。现在我发现,我放在code在WP-admin目录文件

I have found the answer and solution to this problem. Before, I did not know that php.ini resides where in wordpress files. Now I have found that file in wp-admin directory where I placed the code

post_max_size 33M
upload_max_filesize 32M

然后它的工作。它增加了上传文件大小为我的worpdress网站。但是,它是相同的2M如前上的cPanel

then it worked. It increases the upload file size for my worpdress website. But, it is the same 2M as was before on cPanel.

这篇关于如何增加最大上传文件大小的cPanel?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆