PHPStorm does not detect my php interperter

I have compiled php 5.4.10 from source, but when I set the 'php home' in phpstorm it does not detect the php binary.

Screenshot:

https://www.evernote.com/shard/s188/sh/d81788c1-3380-470b-b0cd-db44cf99fdcc/bec5dcc677688bce49a5112da6d5287b

I clearly have the php binary there:



Yours-MacBook-Pro:bin kevinkorb$ pwd
/Volumes/CODE/DevEnvironment/bin

Yours-MacBook-Pro:bin kevinkorb$ ls -la | grep php
-rwxrwxrwx   1 kevinkorb  staff  11053568 Jan  6 19:11 php

Yours-MacBook-Pro:bin kevinkorb$ ./php -i | grep xdebug
xdebug
xdebug support => enabled
xdebug.auto_trace => Off => Off
xdebug.cli_color => 0 => 0
xdebug.collect_assignments => Off => Off
xdebug.collect_includes => On => On
xdebug.collect_params => 0 => 0
xdebug.collect_return => Off => Off
xdebug.collect_vars => Off => Off
xdebug.coverage_enable => On => On
xdebug.default_enable => On => On
xdebug.dump.COOKIE => no value => no value
xdebug.dump.ENV => no value => no value
xdebug.dump.FILES => no value => no value
xdebug.dump.GET => no value => no value
xdebug.dump.POST => no value => no value
xdebug.dump.REQUEST => no value => no value
xdebug.dump.SERVER => no value => no value
xdebug.dump.SESSION => no value => no value
xdebug.dump_globals => On => On
xdebug.dump_once => On => On
xdebug.dump_undefined => Off => Off
xdebug.extended_info => On => On
xdebug.file_link_format => no value => no value
xdebug.idekey => no value => no value
xdebug.max_nesting_level => 100 => 100
xdebug.overload_var_dump => On => On
xdebug.profiler_aggregate => Off => Off
xdebug.profiler_append => Off => Off
xdebug.profiler_enable => On => On
xdebug.profiler_enable_trigger => Off => Off
xdebug.profiler_output_dir => /var/tmp/xhprof/ => /var/tmp/xhprof/
xdebug.profiler_output_name => cachegrind.out.%p => cachegrind.out.%p
xdebug.remote_autostart => Off => Off
xdebug.remote_connect_back => Off => Off
xdebug.remote_cookie_expire_time => 3600 => 3600
xdebug.remote_enable => On => On
xdebug.remote_handler => dbgp => dbgp
xdebug.remote_host => localhost => localhost
xdebug.remote_log => no value => no value
xdebug.remote_mode => req => req
xdebug.remote_port => 9000 => 9000
xdebug.scream => Off => Off
xdebug.show_exception_trace => Off => Off
xdebug.show_local_vars => Off => Off
xdebug.show_mem_delta => Off => Off
xdebug.trace_enable_trigger => Off => Off
xdebug.trace_format => 0 => 0
xdebug.trace_options => 0 => 0
xdebug.trace_output_dir => /var/tmp/ => /var/tmp/
xdebug.trace_output_name => trace.%c => trace.%c
xdebug.var_display_max_children => 128 => 128
xdebug.var_display_max_data => 512 => 512
xdebug.var_display_max_depth => 3 => 3s

What is the reason that phpstorm is unable to detect php here?

Thanks!

4 comments
Comment actions Permalink

This is just guessed: Execute php -v and check if there are any warnings printed by PHP.
If a warning is prepended to the php output, PhpStorm won't recognize the PHP binary (this issue has been reported and will probably be fixed in future).

0
Comment actions Permalink

I did make sure this was not happening, not on the box I'm trying to configure at the moment, otherwise I'd post the output.

0
Comment actions Permalink

Yours-MacBook-Pro:lib kevinkorb$ which php


/Volumes/CODE/DevEnvironment/bin/php
Yours-MacBook-Pro:lib kevinkorb$ php -v
PHP 5.4.10 (cli) (built: Jan  6 2013 19:11:36)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
    with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans
0
Comment actions Permalink

I found the issue, I had installed xhprof and at the end of each php script that was ran it would output
a link to view the profiling information for that page.  After disabling that phpstorm was properly able to identify
my php interperator.


0

Please sign in to leave a comment.