douqian3712 2015-06-24 13:03
浏览 82
已采纳

在Vagrant机器上查找xDebug时,PhpStorm 8 Interpreter读错了php.ini

I've been trying to set up xDebug with Vagrant and PhpStorm 8. It is supposed to simplify the process a lot, but for me it was exactly the opposite. In PhpStorm 8 we can set up Interpreters on a Vagrant maching. This is my setup.

enter image description here

The connection is set up - no problem here, the PHP binary is also found and responding. However, you can see the message Debugger: Not installed.

PhpStorm does not detect xDebug because it is looking at the CLI config file (/etc/php5/cli/php.ini) instead of /etc/php5/apache2/php.ini, where debugger is installed.

I find it rather strange that it would look for the Cli config while it is usually a different config file for web servers.

How can I make PhpStorm detect the debugger? Should I copy all configuration from /etc/php5/apache2/php.ini to /etc/php5/cli/php.ini (these are substantially different in my remote environment and I want to keep them different). Has anyone encountered the same prblem?

  • 写回答

1条回答 默认 最新

  • douqiangchuai7674 2015-06-24 13:14
    关注

    Well, PS is supposed to look at the Cli config, because it executes the PHP binary other SSH. I have a separate ini file for each PHP Module and I use the same in Web Server and Cli configuration. In my php5/cli/conf.d folder I have symlinks pointing to the modules in my mods-available folder.

    |-- cli
    |   |-- conf.d
    |   |   |-- 05-opcache.ini -> ../../mods-available/opcache.ini
    |   |   |-- 10-mysqlnd.ini -> ../../mods-available/mysqlnd.ini
    |   |   |-- 10-pdo.ini -> ../../mods-available/pdo.ini
    
    |   -- php.ini
    |-- mods-available
        |-- curl.ini
        |-- gearman.ini
        |-- imagick.ini
        |-- intl.ini
        |-- mcrypt.ini
        |-- mongo.ini
        |-- mysqli.ini
        |-- mysql.ini
        |-- mysqlnd.ini
        |-- opcache.ini
        |-- pdo.ini
        |-- pdo_mysql.ini
        |-- readline.ini
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 gwas 分析-数据质控之过滤稀有突变中出现的问题
  • ¥15 没有注册类 (异常来自 HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
  • ¥15 知识蒸馏实战博客问题
  • ¥15 用PLC设计纸袋糊底机送料系统
  • ¥15 simulink仿真中dtc控制永磁同步电机如何控制开关频率
  • ¥15 用C语言输入方程怎么
  • ¥15 网站显示不安全连接问题
  • ¥15 51单片机显示器问题
  • ¥20 关于#qt#的问题:Qt代码的移植问题
  • ¥50 求图像处理的matlab方案