FIXED: except for logging
It was SeLinux interfering with xdebug.
For a development machine the easiest fix is disabling SeLinux
In file ”/etc/selinux/config”:
SELINUX=disabled
reboot and it should work.
I wasn't able to get the xdebug.log file to update from the apache server.
If you need SeLinux enable like I do, the issue is more complex
Use the "setsebool -P httpd_can_network_connect 1"
and it should work.
If you need file writing turned on, its more complicated.
UPDATE THE DOCUMENTATION !!! please.
cheers
On Tue, Feb 14, 2012 at 9:17 PM, gary mazzaferro <garym[@]oedata.com> wrote:
> One more update;
>
> I tried setting the idekey in the environment and executing a php script
> from the command line.
> Both, the debugclient and netbeans was able to capture the debug.
>
> The problem is the php scripts on the apache 2.2 server are not launching
> the remote.
>
> I even placed the 'xdebug.idekey=netbeans-xdebug' in php.ini file without
> positive result.
> I also used the "Easy xdebug" plugin on fire fix without positive result.
>
> Any help ??
>
>
> On Tue, Feb 14, 2012 at 11:03 AM, gary mazzaferro <garym[@]oedata.com>wrote:
>
>>
>> On Tue, Feb 14, 2012 at 7:34 AM, gary mazzaferro <garym[@]oedata.com>wrote:
>>
>>> Hi,
>>>
>>> I installed xdebug, but can't seem to make it work. I have a simple
>>> hello.php file in Documentroot with a syntax error and the remote xdebug
>>> wil not launch. I tried with netbeans and the debugclient, without success.
>>>
>>> Additionally, the is no log file created.
>>>
>>> How can I get xdebug to launch ?
>>>
>>> b/r
>>> -g
>>>
>>
>> This is a quick update:
>>
>> I uninstalled php and xdebug, reinstalled the stack and now I get the
>> stack trace in the browser.
>>
>> The remote still as dead as ever. I also disabled the firewall, just in
>> case.
>>
>>
>>
>>>
>>> Distribution; Centos 6.2
>>>
>>> OS:
>>> Linux localhost.localdomain 2.6.32-220.4.1.el6.x86_64 #1 SMP Tue Jan 24
>>> 02:13:44 GMT 2012 x86_64 x86_64 x86_64 GNU/Linux
>>>
>>> This is the URL:
>>> http://localhost/hello.php?XDEBUG_SESSION_START=netbeans-xdebug
>>>
>>> This is the version info:
>>> PHP 5.3.3 (cli) (built: Feb 2 2012 23:47:49)
>>> Copyright (c) 1997-2010 The PHP Group
>>> Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
>>> with Xdebug v2.1.3, Copyright (c) 2002-2012, by Derick Rethans
>>>
>>> This is the configuration from PHPInfo:
>>> xdebug
>>>
>>> xdebug support => enabled
>>> Version => 2.1.3
>>>
>>> Supported protocols => Revision
>>> DBGp - Common DeBuGger Protocol => $Revision: 1.145 $
>>>
>>> Directive => Local Value => Master Value
>>> xdebug.auto_trace => Off => Off
>>> 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.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 => garym => no value
>>> xdebug.manual_url => http://www.php.net => http://www.php.net
>>> 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 => Off => Off
>>> xdebug.profiler_enable_trigger => Off => Off
>>> xdebug.profiler_output_dir => /tmp => /tmp
>>> 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 => /tmp/xdebug.log => /tmp/xdebug.log
>>> 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_format => 0 => 0
>>> xdebug.trace_options => 0 => 0
>>> xdebug.trace_output_dir => /tmp => /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 => 3
>>>
>>>
>>>
>>
>
Received on Wed Feb 15 2012 - 07:37:22 GMT
This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST