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?

    评论

报告相同问题?

悬赏问题

  • ¥100 c语言,请帮蒟蒻看一个题
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集
  • ¥15 esp8266与51单片机连接问题(标签-单片机|关键词-串口)(相关搜索:51单片机|单片机|测试代码)