Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我似乎无法更改 php.ini 中的某些值。
例如:display_errors = On
我只能在运行时打开它。
我怀疑 suhosin 搞砸了,有没有办法绕过它?
是的,我确定我正在编辑正确的文件,但看看这个,取自 phpinfo():
额外的.ini文件解析/etc/php5/fpm/conf.d/pdo.ini, /etc/php5/fpm/conf.d/suhosin.ini
但是我打开 suhosin.ini 里面什么都没有,只有 extension=suhosin.so
尝试将此添加到您的 php.ini 或 suhosin.ini:
suhosin.disable.display_errors = Off