duanrong0738 2015-06-29 17:19
浏览 215

phpinfo()和加载的php.ini不匹配

It's happening something really weird, never happened to me before now. im working on a LEMP server (Ubuntu, PHP5-fpm, MySql, Nginx) and i modified /etc/php5/fpm/php.ini. Then i have decided to check my work through phpinfo(), but none of my changes seem to be applied .

phpinfo() says:

  • Configuration File (php.ini) Path : /etc/php5/fpm (ok)
  • Loaded Configuration File : /etc/php5/fpm/php.ini (ok)

But the values displayed by phpinfo do not match with the loaded php.ini!! For example allow_url_fopen is set to "Off" in php.ini, while both phpinfo() and ini_get("allow_url_fopen") return 1!! the same with "file_uploads", "expose_php" and so on..

any idea of what is happening? thank you

EDIT Already tried:

  • nginx restart
  • php5-fpm restart
  • server reboot
  • the only php.ini file which can be loaded is the one i have modified because i do not have no others php installations (cli or "standard")
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
    • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
    • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
    • ¥15 帮我写一个c++工程
    • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
    • ¥15 关于smbclient 库的使用
    • ¥15 微信小程序协议怎么写
    • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
    • ¥20 怎么用dlib库的算法识别小麦病虫害
    • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启