NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Help getting DBG installed on a Virtual Dedicated Server


Joined: 16 Dec 2008
Posts: 6
Reply with quote
I am having problems getting the DBG to load on my Virtual Private Server from KnownHost.com. I have included ecerpt from php.ini and phpinfo() at the bottom of this post. Any assistance would be appreciated.

Thank you, John

I have uploaded the correct file and have put the extension load line in several places and in several formats:

1) zend_extension = "/usr/local/lib/php/extensions/debug-non-zts-20060613/dbg-php-5.2.so"
This line inserted at the very top of the extension area causes the Apache Server to not reboot correctly.


**** error message: *******************************
Code:
Waiting for httpd to restart..............finished.

httpd (/usr/local/cpanel/whostmgr/bin/whostmgr ./reshttpd) running as root with PID 22114

httpd has failed, please contact the sysadmin.
*******************************

2) extension = "/usr/local/lib/php/extensions/debug-non-zts-20060613/dbg-php-5.2.so"
This line is inserted below in the sample. I had also tried to insert the line above the rest. This does NOT cause the Apache server to fail, but I do not get the extension to load.

I emailed support and they wrote back:
******************************************************
The PHP shows the message :

---------------------------
DBG requires Zend Engine API version 220040412.
The Zend Engine API version 220060519 which is installed, is newer.
Contact Dmitri Dmitrienko at www.nusphere.com for a later version of DBG.
---------------------------

Please contact the vendor of the module to get the new version.
******************************************************


*** Except from my php.ini **************************
Code:

zend_extension = "/usr/local/IonCube/ioncube_loader_lin_5.2.so"
zend_extension = "/usr/local/Zend/lib/ZendExtensionManager.so"
zend_extension_ts = "/usr/local/IonCube/ioncube_loader_lin_5.2_ts.so"
zend_extension_ts = "/usr/local/Zend/lib/ZendExtensionManager_TS.so"

extension = "/usr/local/lib/php/extensions/debug-non-zts-20060613/dbg-php-5.2.so"

extension = "eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"

** phpinfo() output **********************
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
with the ionCube PHP Loader v3.1.34, Copyright (c) 2002-2009, by ionCube Ltd., and
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
******************************************
View user's profileFind all posts by jtingatoSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
DBG requires Zend Engine API version 220040412.

It means that what you're trying to load is dbg for php 5.0, not for 5.2 and it won't work under php 5.2

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Is there a DBG for 5.2?


Joined: 16 Dec 2008
Posts: 6
Reply with quote
Dimitri,
Thanks for responding.

I am not sure I understood your response.

Are you saying that there is not a debugger that will work with this version of PHP?
Or are you saying I should be using dbg-php-5.0.

Which DBG version should I be using and are there any updated versions to download?
View user's profileFind all posts by jtingatoSend private message
Found the solution on my own


Joined: 16 Dec 2008
Posts: 6
Reply with quote
For those of you having the same issue, here is a solution for you.

The placement of the debugger install line in the php.ini file..., 'zend_extension=dbg.php.5.x' cannot be the first extension installed IF you have ioncube.

The ioncube needs to be installed first.

Disregard the instructions from phpEd which says IT must be first in this situation.

Load Ioncube
Load DBG
View user's profileFind all posts by jtingatoSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
yep, indeed, it's a known nasty thing in ioncube. But normally it only throws an error into the log and terminates the server. I didn't see any warnings like in your case:

Quote:
The PHP shows the message :

---------------------------
DBG requires Zend Engine API version 220040412.
The Zend Engine API version 220060519 which is installed, is newer.
Contact Dmitri Dmitrienko at www.nusphere.com for a later version of DBG.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 02 Jun 2009
Posts: 2
Reply with quote
re you saying that there is not a debugger that will work with this version of PHP?
Or are you saying I should be using dbg-php-5.0.
View user's profileFind all posts by webkid90Send private message


Joined: 16 Dec 2008
Posts: 6
Reply with quote
No. dbg-php.5.2.dll work just fine. What I am saying is that if you have inocube installed on your server, then you must load ionCube before dbg-php in the php.ini file
View user's profileFind all posts by jtingatoSend private message
Help getting DBG installed on a Virtual Dedicated Server
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic