简体   繁体   English

php.ini - 路径错误?

[英]php.ini - wrong path?

I can't make any changes to php.ini.我无法对 php.ini 进行任何更改。 Looks like either I'm editing wrong file or changes are not applied after restarting apache.看起来我正在编辑错误的文件或重新启动 apache 后未应用更改。

Obviously I did run phpinfo() and it points to /etc/php.ini file.显然我确实运行了phpinfo()并且它指向/etc/php.ini文件。 I edited it, then run:我编辑了它,然后运行:

sudo apachectl reload
sudo apachectl restart

Nothing has changed.什么也没有变。 I've checked /etc/php.d directory (each files) to be sure changes are not overriden by file inside Scan this dir for additional.ini files .我已经检查了/etc/php.d目录(每个文件),以确保更改不会被文件中的文件覆盖Scan this dir for additional.ini files Not a single file set the lines I need to change.没有一个文件设置我需要更改的行。

Using:使用:

  • Centos 8 (VPS) Centos 8 (VPS)
  • Zend Engine v3.4.0, Zend OPcache v7.4.19 Zend 引擎 v3.4.0、Zend OPcache v7.4.19

Any ideas?有任何想法吗?

If anyone has the same problem.如果有人有同样的问题。 I had to call: sudo systemctl restart php-fpm.service我不得不打电话: sudo systemctl restart php-fpm.service

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM