原因:LNMP 0.9禁用了部分存在危险的PHP函数

LNMP0.9禁用的PHP函数包括:passthru, exec, system, chroot, scandir, chgrp, chown, shell_exec, proc_open, proc_get_status, ini_alter, ini_alter, ini_restore, dl, pfsockopen ,openlog, syslog, readlink, symlink, popepassthru, stream_socket_server, fsocket, fsockopen

解决方法:
lnmp环境中编辑PHP配置文件:

  1. vi /usr/local/php/etc/php.ini进入编辑状态

  2. 输入/,进入搜索模式,找到disable_functions

  3. 寻找disable_functions字符串,将后面的scandir删除

重启PHP生效

/etc/init.d/php-fpm restart

原文来自赵公子记

相关文章:

  • 2022-12-23
  • 2021-06-17
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
  • 2022-12-23
  • 2021-12-14
猜你喜欢
  • 2022-12-23
  • 2021-08-14
  • 2021-04-01
  • 2021-07-25
  • 2021-09-23
  • 2022-12-23
  • 2021-06-21
相关资源
相似解决方案