LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Xdebug install problems (https://www.linuxquestions.org/questions/linux-software-2/xdebug-install-problems-671105/)

Braynid 09-19-2008 02:17 PM

Xdebug install problems
 
Hey,

What I want to do is to install XDEBUG for PHP on my CentOS server. I'm running PHP Version 5.1.6 with Apache 2.

Compiling it is not really an option so I went for:
Code:

pecl install xdebug
It all went fine until:
Code:

Build process completed successfully
Installing '/usr/lib/php/modules/xdebug.so'

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 119 bytes) in /usr/lib/php/pear/PEAR/PEAR/Registry.php on line 1061

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 40 bytes) in /usr/lib/php/pear/PEAR/PEAR.php on line 776

Which is weird because as far as I am aware of the Allowed memory size is controlled by PHP. So I went and modified php.ini and increased the allowed_memory but still it gave me the same error.

Thing is the file xdebug.so is where is supposed to be so I've tried to put it in php.ini as the documentation says.
Code:

zend_extension_ts="/usr/lib/php/modules/xdebug.so"
After that I've restarted HTTPD then looked at phpinfo() and there was no sign of xdebug...

Any ideas on that?
Thaks!

Braynid 09-22-2008 03:07 AM

I've tried to compile the stuff as a standalone with no luck. Do you have any idea on how can I make it work ?

Thanks

dooug 02-24-2009 09:21 AM

Quote:

Originally Posted by Braynid (Post 3285909)
Thing is the file xdebug.so is where is supposed to be so I've tried to put it in php.ini as the documentation says.
Code:

zend_extension_ts="/usr/lib/php/modules/xdebug.so"

I believe on CentOS this line in the php.ini file should be:

Code:

extension="/usr/lib/php/modules/xdebug.so"
And substitute the correct path to the xdebug.so file. Hopefully that helps.


All times are GMT -5. The time now is 02:32 PM.