php can't connect to mysql with error 13
2016-03-07 14:57
507 查看
setsebool -P httpd_can_network_connect=1
will also be a helpful CLI command to many people visiting this question, as to allow mysql_connet() connections from within HTTP (Apache) requests to a remote MySQL database server, ensure to enable Network Connections from httpd in SElinux usually located
in /etc/selinux/config (disabled by default to prevent hackers from attacking other machines using your httpd).
相关文章推荐
- PHP如何取出数组最后一个元素?
- 检测PHP环境
- Windows下的PHP安装文件线程安全和非线程安全的区别
- Laravel 5.1学习之 验证
- php 简洁上传
- php 的定界符 <<<eof 的问题
- 【PHP】PHP 7.0.4 发布
- ContentProvider的生命周期
- PHP - 继承 - 子类使用父类方法
- Matplotlib Tutorial(译)
- 搜索实现最近联系人 thinkPHP框架
- Zend Framework教程之MVC框架的Controller用法分析
- Zend Framework教程之路由功能Zend_Controller_Router详解
- 关于PHP的框架
- php session
- php中mkdir()函数的权限问题
- 使用getParts()上传多个文件
- PHP中file_exists与is_file,is_dir的区别介绍
- Zend Framework教程之Zend_Controller_Plugin插件用法详解
- php 学习笔记 -- 日期(四)