dquoj04882 2016-03-08 19:19
浏览 184
已采纳

更改php.ini中的'upload_max_filesize'不会更改phpinfo()中的值

I'm using Wordpress via Bitnami + Xampp and am trying to change the upload_max_filesize variable since 2M is way too small. So I change it to 64M as shown here:

php.ini file

I also have post_max_size=64M.

However, Wordpress still shows that the max upload size is only 2M.

Only 2M?

I went to phpinfo() to look into the issue. I am editing the correct php.ini file that is being pointed too. And, on top of that, phpinfo() shows that upload_max_filesize is still set to 2M!

What in the hell...

Yes, I did restart the Apache server on Xampp (by clicking stop, then start). And I tried changing some Wordpress defined variables as described in this blog post.

  • 写回答

2条回答 默认 最新

  • duanjiao8007 2016-03-08 20:30
    关注

    Alright, figured it out. Problem is, I'm not sure how it worked.

    So I was using port 8080 since port 80 wasn't working for some reason. After restarting my computer, I started Apache up again. This time, it didn't work on port 8080. So I changed it back to port 80 and now, well, it works.

    No idea why this is the solution.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?