[xdebug-general] xdebug profiler not producing an output file

From: Thushara Wijeratna <thushw[@]gmail.com>
Date: Thu, 6 Dec 2007 06:48:39 -0800

Hi all,

I can't get xdebug profiler to write to its output file on a centos
installation. It doesn't create the file. Here are the details.

O/S - Linux 2.6.18-8.1.15.el5 (centos)
Apache - 2.2.6
php - 5.2.5 (at least the client, this is the full php -v output)

[root[@]backup-prod-1 ~]# php -v
PHP 5.2.5 (cli) (built: Nov 14 2007 11:34:30)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
    with Xdebug v2.0.2, Copyright (c) 2002-2007, by Derick Rethans

phpinfo settings related to xdebug (this is from a test.php that has
phpinfo() that i hit through the browser - not from executing the
cmdline php)
------------------------------------------------

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
    with Xdebug v2.0.2, Copyright (c) 2002-2007, by Derick Rethans

xdebug.profiler_enable On On
xdebug.profiler_enable_trigger Off Off
xdebug.profiler_output_dir /home/mocha/xdebug /home/mocha/xdebug
xdebug.profiler_output_name xdebug.dump xdebug.dump
xdebug.remote_autostart Off Off
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

PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety disabled

php.ini settings:
----------------------

[root[@]backup-prod-1 ~]# grep xdebug /etc/php.ini
xdebug.remote_enable = 1
xdebug.profiler_enable = 1
xdebug.profiler_output_dir = "/home/mocha/xdebug"
xdebug.profiler_output_name = "xdebug.dump"
xdebug.remote_log = "/tmp/xdebug.log"
zend_extension=/usr/lib64/php/modules/xdebug.so

directory permissions:
------------------------------

[root[@]backup-prod-1 ~]# ls -ld /home/mocha/xdebug/
drwxrwxrwx 2 mocha mocha 4096 Dec 6 07:35 /home/mocha/xdebug/

[root[@]backup-prod-1 ~]# ls -ld /tmp
drwxrwxrwt 4 root root 4096 Dec 6 14:24 /tmp

apache process info:
----------------------------

[root[@]backup-prod-1 ~]# ps auxww | grep htpd
root 28833 0.0 0.0 60220 712 pts/3 S+ 14:45 0:00 grep htpd
[root[@]backup-prod-1 ~]# ps auxww | grep httpd
root 26315 0.0 0.2 218964 8984 ? Ss 14:24 0:00 /usr/sbin/httpd
apache 26317 0.0 0.4 222316 17428 ? S 14:24 0:00 /usr/sbin/httpd
apache 26318 0.0 0.3 221500 15500 ? S 14:24 0:00 /usr/sbin/httpd

[root[@]backup-prod-1 ~]# grep apache /etc/passwd
apache:x:48:48:Apache:/var/www:/sbin/nologin

[root[@]backup-prod-1 ~]# grep apache /etc/group
mocha:x:500:apache,dev_admin
apache:x:48:
nagios:x:101:apache
nagiocmd:x:502:apache

xdebug.so informmation:
----------------------------------
[root[@]backup-prod-1 ~]# file /usr/lib64/php/modules/xdebug.so
/usr/lib64/php/modules/xdebug.so: ELF 64-bit LSB shared object, AMD
x86-64, version 1 (SYSV), not stripped

I have got this to work on my ubuntu desktop. But whatever i try, i
can't seem to make it work on this centos installation. BTW, I
followed instructions here for the xdebug install:

http://tech.nigel.in/

basically:
yum install php-devel
yum install gcc gcc-c++ autoconf automake
pecl install Xdebug

Any help much appreciated. I'm trying to debug a performance issue in
production, and it would be great to get the same xdebug data I get
when I run this sweet tool on ubuntu...

thanks,
thushara
(I'm not on the list, so please cc me: thushw[@]gmail.com)
Received on Thu Dec 06 2007 - 15:55:52 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST