将大型扩展程序上传到本地主机上的joomla时出错 [英] Error uploading big extensions to joomla on a localhost
问题描述
当我尝试在本地主机上上传Akeeba Backup扩展时,出现以下错误:将文件上传到服务器时出错."
I get the following error when I tried uploading the Akeeba Backup extension on my localhost: "There was an error uploading this file to the server."
我尝试上传JCE编辑器,但效果很好.我知道会出现此错误,因为我无法上传大于X MB的扩展名(JCE为1.5MB,Akeeba为2.25MB).所以我的猜测是我无法上传大于2MB的扩展程序.
I tried uploading JCE Editor and it worked fine. I understand this error appears because I cannot upload extensions bigger than X MB (JCE is 1,5MB and Akeeba is 2,25MB). So my guess is I cannot upload extensions bigger than 2MB.
研究中,我遇到了两种解决方案,都对我没有帮助.
Researching I came across two solutions, neither worked for me.
第一个解决方案:
在文件ini.php中,找到以下行upload_max_filesize = xM
并将"x"替换为10(例如).我在ini.php文件中找不到上述行.
First solution:
In the file ini.php find the following line upload_max_filesize = xM
and replace "x" with a value of 10 (for example). I could not find the above mentioned line in the ini.php file.
第二个解决方案: 在您的.htaccess中添加以下内容:
Second solution: In your .htaccess add the following:
php_value max_upload_size 10M
添加了代码,什么也没发生.
added the code, nothing happened.
我正在使用Joomla 3.2
I am using Joomla 3.2
推荐答案
而不是尝试手动查找正确的行来进行编辑,而是在代码编辑器中使用 Ctrl + F ,这将打开查找"框.复制并粘贴 upload_max_filesize ,然后单击查找".这将带您到它所在的确切行.更改后,保存文件并在本地主机上重新启动Apache/所有服务.
Rather than trying to manually find the correct line to edit, in your code editor, use Ctrl + F which will open up the "find" box. Copy and paste upload_max_filesize and click "find". This will take you to the exact line where it is located. Once changed, save the file and restart Apache/All services on your localhost.
这篇关于将大型扩展程序上传到本地主机上的joomla时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!