PHP连接mysql数据库出现问题:Loaded Configuration File (none)

apache+MySQL+php5
在PHP连接mysql数据库时,
1、PHP加载MySQL扩展:(php.ini文件中)extension=php_mysql.dll

2、PHP中所有的扩展都是在ext文件夹中,需要制定扩展所在路径:extension_dir

3、php.ini已经被apache加载,需要重启生效。
4、打开apache/htdocs/index.php,使用phpinfo()检查PHP2环境。

phpinfo()出现Loaded Configuration File (none)错误,加载不到php配置文件。

寻找问题是加载PHP配置文件路径出错,修改即可。
解决方法:
打开F:\server\apache\conf\httpd.conf。因为我的php5在F盘server文件夹下,所以修改为PHPIniDir ‘F:/server/php5’。
修改之后,重启apache,问题解决。

Loaded Configuration File (none)相关推荐

  1. Apache下PHP Loaded Configuration File None 解决方法

    解决方法可在apache配置文件中增加 PHPIniDir "The path to your php.ini", 比如:PHPIniDir "/usr/local/ph ...

  2. Win10 python双版本共存配置问题 Configuration file could not be loaded.

    根据博客配置双版本python共存,重装pip时遇到问题 Configuration file could not be loaded. File contains no section header ...

  3. rabbitmq启动失败-报Failed to load advanced configuration file解决方法

    [README] 1.本文基于 centos8 搭建 rabbitmq:  版本信息如下: rabbitmq rabbitmq-server-3.8.12-1.el8.noarch.rpm erlan ...

  4. Ubuntu20.04安装zabbix以及Cannot create the configuration file解决

    添加zabbix的扩展源 echo 'deb http://mirrors.aliyun.com/zabbix/zabbix/5.0/ubuntu/dists/ focal main' >> ...

  5. Wrong permissions on configuration file, should not be world writable!

    进入phpmyadmin时,报了如下错误: Wrong permissions on configuration file, should not be world writable! 记得先前的时候 ...

  6. Wrong permissions on configuration file, should not be world writable

    Wrong permissions on configuration file, should not be world writable 进入phpMyAdmin页面时显示:Wrong permis ...

  7. No execution.target specified in your configuration file.

    完整报错如下: Exception in thread "main" java.lang.NullPointerException: No execution.target spe ...

  8. Could not find qmake configuration file解决

    编译Qt源码时出现Could not find qmake configuration file,这是因为Qt源码路径中有中文,将中文目录改为英文即可.

  9. Could not find a package,configuration file provided by G2O ,G2OConfig.cmake,g2o-config.cmake

    因为项目需要使用到g2o,所以自己从git上面clone下来, git clone https://github.com/RainerKuemmerle/g2o.git 然后: cd g2o mkdi ...

最新文章

  1. 提取ESX/ESXI4.0脚本安装文件ks.cfg、ks-first.cfg和ks-first-safe.cfg
  2. SAP请求传输事务代码
  3. BZOJ-1880-Elaxia的路线-SDOI2009-SPFA+拓扑排序
  4. Java里面的几种路径的区别
  5. awk按分隔符的不同取出不同的列
  6. a标签里面设置onclick_实现a标签中的各种点击(onclick)事件的方法
  7. mysql没有创建数据库的权限设置_mysql 创建数据库,用户并给用户设置权限
  8. sql 数字减去null_减去两个16位数字| 8086微处理器
  9. 11 款最好 CSS 框架 让你的网站独领风骚
  10. JavaScript跨域解决方法大全
  11. Android获取SharedPreferences失败,且App无法启动
  12. Unity3D基础21:UI简介
  13. 大数据架构由哪些模块组成
  14. python基础1之 由来、种类、优缺点、安装环境
  15. MySQL高可用之MHA的搭建 转
  16. SVM笔记(一)硬间隔SVM
  17. ue4设置组合键_UE4快捷键
  18. 早起的奇迹:那些能够在早晨8:00前改变人生的秘密
  19. 苹果AppStore应用商店生存之道以及市场攻略最全解析
  20. python的三种基本结构流程图_程序的三种基本结构是什么

热门文章

  1. IPSec NAT穿越原理
  2. 2014CSU-ACM暑假集训训练赛--七夕专场
  3. 学计算机的在机场能干什么,计算机专业都学什么,主要课程有那些?
  4. FANUC机器人开平方
  5. uni-app微信公众号(3)——购物车
  6. 早起舌苔厚白是不是湿气重?
  7. 会员裂变营销 实现会员量、销量快速提升
  8. #{}不自动改参数类型_pubg pic改120帧下载-PUBG Pic画质助手120帧官方最新版本 v0.8...
  9. 主页(八)-顶部导航——NavBar 导航栏 Icon 图标
  10. 提升音视频QoE的六条建议