[英]Debian php.ini not updating
I can't seem to get my max_upload_filesize to change despite updating the the php.ini file. 尽管更新了php.ini文件,但似乎无法更改max_upload_filesize。 Here is a screenshot of the loaded config file, upload_max_filesize in the phpinfo() and the php.ini open along side it:
这是加载的配置文件的截图,phpinfo()中的upload_max_filesize和php.ini随其打开:
https://drive.google.com/file/d/0B3b3kShpACJHcFV6YU9XMkdyR0E/view?usp=sharing https://drive.google.com/file/d/0B3b3kShpACJHcFV6YU9XMkdyR0E/view?usp=sharing
after updating the file I've tried: 更新文件后,我尝试过:
sudo /etc/init.d/apache2 restart
and I've also tried to stop/start it: 而且我也尝试停止/启动它:
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 start
the phpinfo() says the config loaded is: phpinfo()表示加载的配置是:
/etc/php5/apache2/php.ini
but when I run: 但是当我跑步时:
php -i | grep "php.ini"
it returns the following: 它返回以下内容:
Configuration File (php.ini) Path => /etc/php5/cli
Loaded Configuration File => /etc/php5/cli/php.ini
So I've updated this config file also to 100M and restarted apache, stop and started it again but yet my phpinfo() is still showing 2M max upload. 所以我也将此配置文件也更新为100M,并重新启动了apache,停止并再次启动它,但是我的phpinfo()仍显示最大上传2M。
What could the problem be? 可能是什么问题?
UPDATE! UPDATE! I have deleted both the php.ini files on my system in etc/php5/cli and etc/php5/apache2 and restarted but it still says its loading the config from etc/php5/apache2 hos is this possible when I've completely removed the file?
我已经删除了系统中etc / php5 / cli和etc / php5 / apache2中的两个php.ini文件,然后重新启动,但仍然说从我完全从etc / php5 / apache2中加载配置是可能的文件?
Your cli command php
and your Webserver use different php.ini
files. 您的cli命令
php
和您的Web服务器使用不同的php.ini
文件。 That why you have to change both of them. 这就是为什么您必须同时更改它们。
And you have to change post_max_size
in your php.ini, too. 并且您还必须在php.ini中更改
post_max_size
。 Otherwise you can't send enough data to your webserver. 否则,您将无法将足够的数据发送到Web服务器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.