首页 >

PHP Warning:phpinfo() has been disabled函数禁用

php教程|php手册PHP Warning:phpinfo() has been disabled函数禁用
has,been,disabled
php教程-php手册
今天在一朋友服务器测试一个网站时发现我在测试phpinfo时碰到PHP Warning:phpinfo() has been disabled for security reasons 提示了,按话的意思我总结了解决办法,下面我们一起来看看吧.
仿有道云笔记源码,Ubuntu命令记录工具,tomcat文件打开网页,爬虫class on,php接入stripe支付接口,seo优化动画lzw
在运行phpinfo时碰到提示如下:PHP Warning: phpinfo() has been disabled for security reasons in XX.php on line XX
android ui效果源码下载,ubuntu没有光驱,tomcat项目放到外面,淘宝爬虫蜘蛛,php压缩工具下载,黑龙江网络推广seo优化公司lzw
这段话的意思是告诉我们由于安全考虑 phpinfo() 函数被禁用,如果你有服务器管理权限请修改 php.ini 配置文件参数并重启apache 重新启用.
一对一 教育 源码,vscode做网页木马,ubuntu 查找替换,tomcat的连接端口,wooyun 爬虫,php白屏,seo哪家公司好做,网站下载页面源码下载,微信平台登陆页面模板下载lzw
打开php安装路径打开php.ini文件,具体实例:在php.ini中存在 disable_functions配置,默认配置中,cli执行函数都是被 禁止的,如果需要的话,需要在php.ini中将 disable_functions = phpinfo,exec , popen, system ….,将你需要执行的函数从列表中删掉在重启apache即可.

完全是配置的问题,linux中解决办法,编辑PHP配置文件:

vi /usr/local/php/etc/php.ini

寻找disable_functions字符串,将后面的scandir删除,提示:vi下可输入/,进入搜索模式,轻松找到disable_functions.

重启PHP生效:

/etc/init.d/php-fpm restart

永久链接:

转载随意!带上文章地址吧。


PHP Warning:phpinfo() has been disabled函数禁用
  • Warning:chmod() has been disabled for security reasons in
  • Warning:chmod() has been disabled for security reasons in | Warning:chmod() has been disabled for security reasons in ...

    PHP Warning:phpinfo() has been disabled函数禁用
  • jQuery中:disabled选择器用法实例【jquery】
  • jQuery中:disabled选择器用法实例【jquery】 | jQuery中:disabled选择器用法实例【jquery】 ...

    PHP Warning:phpinfo() has been disabled函数禁用
  • PHP提示Warning:phpinfo() has been disabled函数禁用的操作【PHP】
  • PHP提示Warning:phpinfo() has been disabled函数禁用的操作【PHP】 | PHP提示Warning:phpinfo() has been disabled函数禁用的操作【PHP】 ...