wordpress “xx is not readable”
来源:互联网 发布:莫扎特人格问题 知乎 编辑:程序博客网 时间:2024/06/06 16:21
转自:http://www.cnblogs.com/wangkongming/p/3541172.html
在ubuntu下面安装了一个wordpress程序,在后台什么都没干,编辑主题时,发现页面中报下面的错误。
notice: /home/wwwroot/test.localhost/wordpress/wp-content/themes is not readable in /home/wwwroot/test.localhost/wordpress/wp-includes/theme.php on line 447 Warning: scandir() has been disabled for security reasons in /home/wwwroot/test.localhost/wordpress/wp-includes/l10n.php on line 764
这个是什么情况呢,赶快到网上搜了一下。
原来是scandir被禁用了。通过lnmp探针也可以看到。
很简单,编辑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即可。
php.ini 的位置:/usr/local/php/etc/php.ini
最后执行/etc/init.d/php-fpm restart重启下
等重启完后,再刷新页面,就会发现以前报的警告没有了。
阅读全文
0 0
- wordpress “xx is not readable”
- UnityException: Texture is not readable
- svn: E220001: Item is not readable
- does not exist or is not a readable directory
- ..\TestApp does not exist or is not a readable directory
- svn 查看历史记录失败 ,并提示"Item is not readable"
- SVN无法查看历史,报错Item is not readable
- org.apache.subversion.javahl.ClientException: Item is not readable 解决办法
- svn出现问题E220001: Item is not readable
- SVN无法查看历史,报错Item is not readable
- The filename xls/xxx.xls is not readable
- xx is not in the sudoers file
- xx is not in the sudoers file
- xx is not in the sudoers file
- The word 'xx' is not correctly spelled
- java script XX is not define
- Hibernate XX is not Mapped问题笔记
- The word 'xx' is not correctly spelled
- recyclerView隐藏item
- 【codevs 1332】上白泽慧音
- netty 服务端连接分析
- 微信小程序-开发者工具篇
- Linux学习笔记1
- wordpress “xx is not readable”
- eclipse中添加Eclipse Marketplace Client
- dlq
- 前端通过JS将从后端接口返回的大数求和的简单实现
- SpringBoot入门总结
- 《深度学习:21天实战Caffe》第一天
- Kaggle入门
- C语言(如何不使用第三个变量达到交换两个变量值的目的)
- LeetCode 66. Plus One