logo       


Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

xdebug profiler not producing an output file: msg#00000

Subject: xdebug profiler not producing an output file
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@xxxxxxxxx)




Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
db.firebase.por...    text.xml.xalan....    qnx.openqnx.dev...    user-groups.zar...    internationaliz...    kde.devel.konve...    finance.e-gold....    emacs.latex.pre...    gis.therion/200...    web.webmin.gene...    yellowdog.gener...    vserver/2003-08...    redhat.release....    sysutils.tivoli...    xfree86.expert/...    mail.becky.user...    hardware.netapp...    netbsd.ports.xe...    python.distutil...    boot-loaders.gr...    culture.interne...    java.springfram...    activedir/2006-...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe