在php.ini中更改upload_max_filesize,但phpinfo不显示更改(Changed upload_max_filesize in php.ini but phpinfo doesn't show the change)
基本上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.
最满意答案
您应该更改/Applications/MAMP/bin/php/php5.4.10/conf/php.ini中的文件
之后你应该重置MAMP。 我之前也改变了所有的php.ini,并且phpinfo()没有改变,但是我不确定它是否需要工作,所以如果只更改上面路径中的文件,请尝试更改其他文件。
我希望能帮助你。
In httpd.conf file the PhpIniDir had the wrong path. It was off by one directory. That was the fix!
更多推荐
发布评论