dongpo0409 2018-10-12 14:45
浏览 406

我无法更改配置文件(php.ini)路径

I have a problem with locating my php.ini file on my apache server. Server works fine. I am new to this and I have spend hours allready looking for an answer in google and forums.

situation:

I have folders:

C:\Apache24
C:\php

I have altered the httpd.conf file with the help of internet and added the code like this:

LoadModule php5_module "C:/php/php5apache2_4.dll"

PHPIniDir "C:/PHP"

AddHandler application/x-httpd-php .php

Still my phpinfo shows "Configuration File (php.ini) Path C:\WINDOWS and no php.ini file is loaded.

Even when I place the php.ini file in the windows folder and change the directory in the httpd.conf file to look in C:\Windows, the php.ini file is not loaded.

With this problem I can not work with phpmyadmin, which is my goal for this moment. It says it cannot find the mysqli extension.

Does anyone provide me with a link to a topic or an answer?

  • 写回答

2条回答 默认 最新

  • dqba94619 2018-10-12 14:52
    关注

    Are you sure you are editing the good httpd.conf? Try to add this settings in your httpd.conf:

    SetEnv PHPRC C:/php
    

    But PHPIniDir is supposed to work.

    Did you restart your apache server after editing the configuration?

    评论

报告相同问题?

悬赏问题

  • ¥15 制裁名单20240508芯片厂商
  • ¥20 易康econgnition精度验证
  • ¥15 msix packaging tool打包问题
  • ¥28 微信小程序开发页面布局没问题,真机调试的时候页面布局就乱了
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致