更改了php.ini中的upload_max_filesize,但phpinfo未显示更改 [英] Changed upload_max_filesize in php.ini but phpinfo doesn't show the change

查看:343
本文介绍了更改了php.ini中的upload_max_filesize,但phpinfo未显示更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上phpinfo表示upload_max_filesize为2M,但我在php.ini文件中将其更改为8M.我正在使用MAMP,所以我重新启动了MAMP,phpinfo仍然显示2M.我检查了phpinfo显示的php.ini文件的路径,它与之完全匹配.请观看我记录的所有YouTube视频.

Basically phpinfo says upload_max_filesize is 2M, but I changed it in the php.ini file to 8M. I am using MAMP, so I restarted MAMP and phpinfo still says 2M. I checked the path to the php.ini file that phpinfo shows and it matched up exactly. See the YouTube video of me documenting all of this.

推荐答案

在httpd.conf文件中,PhpIniDir的路径错误.它被一个目录关闭了.那就是解决办法!

In httpd.conf file the PhpIniDir had the wrong path. It was off by one directory. That was the fix!

这篇关于更改了php.ini中的upload_max_filesize,但phpinfo未显示更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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