View Issue Details

IDProjectCategoryView StatusLast Update
0000926XdebugInstallationpublic2013-10-14 01:37
Reporterdarinpeterson Assigned To 
PriorityhighSeverityblockReproducibilityalways
Status resolvedResolutionunable to reproduce 
PlatformIntel Asus AMD64OSLinuxOS VersionDebian 7, Wheezy
Product Version2.2.1 
Summary0000926: Xdebug is Not Running
Description

I have followed the instructions provided below:

Xdebug installed: no
Server API: CGI/FastCGI
Windows: no
Zend Server: no
PHP Version: 5.3.18
Zend API nr: 220090626
PHP API nr: 20090626
Debug Build: no
Thread Safe Build: no
Configuration File Path: /opt/php-5.3.18/lib
Configuration File: /var/www/conf/web1/php.ini
Extensions directory: /opt/php-5.3.18/lib/php/extensions/no-debug-non-zts-20090626
Instructions

Download xdebug-2.2.1.tgz
Unpack the downloaded file with tar -xvzf xdebug-2.2.1.tgz
Run: cd xdebug-2.2.1
Run: phpize (See the FAQ if you don't have phpize.

As part of its output it should show:

Configuring for:
...
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
If it does not, you are using the wrong phpize. Please follow this FAQ entry and skip the next step.

Run: ./configure
Run: make
Run: cp modules/xdebug.so /opt/php-5.3.18/lib/php/extensions/no-debug-non-zts-20090626
Edit /var/www/conf/web1/php.ini and add the line
zend_extension = /opt/php-5.3.18/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so
Restart the webserver

This is the section of my php.ini with xdebug information:
zend_extension=/opt/php-5.3.18/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so
xdebug.remote_host=www.aaabs.org
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req

I copy and paste the extension directory: "/opt/php-5.3.18/lib/php/extensions/no-debug-non-zts-20090626" do an "ls" and see xdebug.so, so I know the path is correct.

I created a phpinfo.php file at the root location of www.aaabs.org with these contents:

<?php
echo phpinfo();

Paste the source of the document into the field at: http://xdebug.org/wizard.php, and the results are always as you see in the summary information that I posted at the top.

I look at my session variable in Google Chrome at I have XDEBUG_SESSION = PHPSTORM.

Everything looks right, but Xdebug is not loading.

Steps To Reproduce

Download xdebug from: http://xdebug.org/files/xdebug-2.2.1.tgz

(1) Extract the files
(2) go into the xdebug-2.2.1 directory and phpize using /opt/php-5.3.18/phpize
(3) cp modules/xdebug.so /opt/php-5.3.18/lib/php/extensions/no-debug-non-zts-20090626
(4) Verify php.ini settings and restart apache2 using /etc/init.d/apache2 restart
(5) http://www.aaabs.org/phpinfo.php
(6) Copy and paste the source into http://xdebug.org/wizard.php
(7) Get the same results:

Summary

Xdebug installed: no
Server API: CGI/FastCGI
Windows: no
Zend Server: no
PHP Version: 5.3.18
Zend API nr: 220090626
PHP API nr: 20090626
Debug Build: no
Thread Safe Build: no
Configuration File Path: /opt/php-5.3.18/lib
Configuration File: /var/www/conf/web1/php.ini
Extensions directory: /opt/php-5.3.18/lib/php/extensions/no-debug-non-zts-20090626
Instructions

Download xdebug-2.2.1.tgz
Unpack the downloaded file with tar -xvzf xdebug-2.2.1.tgz
Run: cd xdebug-2.2.1
Run: phpize (See the FAQ if you don't have phpize.

As part of its output it should show:

Configuring for:
...
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
If it does not, you are using the wrong phpize. Please follow this FAQ entry and skip the next step.

Run: ./configure
Run: make
Run: cp modules/xdebug.so /opt/php-5.3.18/lib/php/extensions/no-debug-non-zts-20090626
Edit /var/www/conf/web1/php.ini and add the line
zend_extension = /opt/php-5.3.18/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so
Restart the webserver

TagsNo tags attached.
Operating System
PHP Version5.3.15-5.3.19

Activities

derick

2013-05-18 18:36

administrator   ~0002466

As you are running it with fastcgi, can you run the following on the command line:

 strace -o /tmp/strace.log -e open /opt/php-5.3.18/bin/php -c /var/www/conf/

and then attach the output, as well as a copy of /tmp/strace.log (It's possible I got your paths wrong, so you might need to adjust)

derick

2013-06-22 13:40

administrator   ~0002515

Can you please provide the requested feedback?

atljj

2013-06-24 17:50

reporter   ~0002519

I went to cmd input and keyed your line exactly. only to receive the following error:

‘strace’ is not recognized as an internal or external command, operable program or batch file.

I do not understand what I am doing, so please be very simple.

Thanks again, Jerry

darinpeterson

2013-06-24 18:07

reporter   ~0002520

Hi Derick,

Sorry I have not had an opportunity to reply to this. I don't know who atljj is, but he is not the person reporting the issue.

I'll do my best to get you feedback on your request later today. As far as this issue, I highly recommend ignoring atljj's comments as he plainly explains that:
"I do not understand what I am doing, so please be very simple."

Regards,
Darin

darinpeterson

2013-06-26 01:26

reporter   ~0002525

Derick,

Sorry for the delay. This is going to take longer than expected. Unfortunately, I reconfigured my dev server. I didn't know if this issue would ever see the light of day, because it took 3 months before I received a reply. I had to get my development work done.

Give me a few days to see whether I can get you the information you requested.

Darin

darinpeterson

2013-07-13 19:12

reporter   ~0002535

Derek,

I'm sorry, I cannot afford the expense to reconfigure a server at this time to solve this issue. If you want to duplicate my setup, you can go here, and use this installation guide for Debian Wheezy: http://www.howtoforge.com/perfect-server-ubuntu-12.10-apache2-bind-dovecot-ispconfig-3

Yes, that is correct, use it for Debian Wheezy... When you get to section 14.3, install PHP version 5.3.x... Once you are finished with that, create a website and use your 5.3.x version with it, and try making xdebug work. It simply will not work.

This is my request for help thread in the howtoforge forum: http://www.howtoforge.com/forums/showthread.php?t=60593

I hope this will help some...

Regards,
Darin

derick

2013-10-14 01:37

administrator   ~0002586

Local environment misconfiguration.