解决Warning: scandir() has been disabled for security reasons in…的问题
来源:互联网 发布:mac上的视频编辑软件 编辑:程序博客网 时间:2024/05/01 00:54
转载自:http://www.xker.com/page/e2013/1126/130258.html
今天改了一下博客主题,结果在编辑主题的时候出现了
Warning: scandir() has been disabled for security reasons in /home/wwwroot/…
Warning: Invalid argument supplied for foreach() in /home/wwwroot/…
错误。开始以为是文件权限问题,检查下来结果发现不是,改了权限没有生效,后来打开探针,发现原来是因为php里面的scandir函数被禁用了。
解决办法:
编辑php.ini,找到这行:
disable_functions = scandir,passthru,exec,system,chroot,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去掉scandir保存并重起php-fpm即可。
同样,如果是Warning: exec() has been disabled for security reasons in /home/wwwroot/…
或者红色部分为其它函数,解决办法也是一样的。
0 0
- 解决Warning: scandir() has been disabled for security reasons in…的问题
- lnmp -- 解决Warning: scandir() has been disabled for security reasons in…的问题
- lnmp/lamp-- 解决Warning: scandir() has been disabled for security reasons in…的问题
- scandir() has been disabled for security reasons
- Warning: gzinflate() has been disabled for security reasons
- Warning: stream_socket_server() has been disabled for security reasons
- assert() has been disabled for security reasons in php
- php报错:Warning: Phpinfo() Has Been Disabled For Security Reasons
- php报错shell_exec() has been disabled for security reasons
- wordpress disabled for security reasons in
- 解决PHP环境Warning: scandir()问题
- Linux执行php脚本,报错:disabled for security reasons
- libpng warning: iCCP: Not recognizing known sRGB profile that has been edited问题的解决
- For security reasons, WebView is not allowed in privileged processes报错解决
- 未通过针对是否适用于 Firefox的验证 现已被禁用 could not be verified for use in Firefox and has been disabled
- “Location of the Android SDK has not been set up in the preferences”问题的解决
- getOutputStream() has already been called for this response问题的解决
- getOutputStream() has already been called for this response问题的解决
- Inventor之入门
- oracle表关联方式错误导致不出结果
- jquery.validate使用攻略
- Redis单机多实体安装与主从配置
- oracle知识点杂记(持续更新)
- 解决Warning: scandir() has been disabled for security reasons in…的问题
- 留一点梦想给自己
- Android心得4.3--SQLite数据库--execSQL()和rawQuery()方法
- 黑马程序员——7.1.IO(其他对象API(System类、Runtime类、Math类、Date类)字节流与字符流、IO异常处理、缓冲区、键盘录入、转换流、异常日志、流的操作总结)
- 棋牌源码下载出租出售维护
- RelativeLayout执行measure(w,h)方法时,出现NullPointerException的异常情况
- 强行重置Mysql的账号密码
- javascript解析
- 【TCP】TCP连接建立过程的三次握手