NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] pls confirm dbg WILL NOT wrk with zts.


Joined: 18 Mar 2008
Posts: 14
Reply with quote
I have loaded the correct dbg modules to my server (confirmed that my Linux server is running glibc 2.3.4)

I have installed the dbg-wizard.php in my public_html dir

I my custom php.ini, I have added
Code:
extension_dir=/home/USERNAME/extensions

(because this is a shared server and I don't have access to /usr/lib/php/extensions/no-debug-zts-20060613, the default extension location)

I am being told from dbg-wizard that 'DBG (PHP DEBUGGER) is NOT INSTALLED':

* PHP Version: 5.2.5
* Web Server: Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
* Server Name: USERNAME.com
* OS: Linux
* Your Client IP Address: XX.XXX.XXX.XX
* Your Server IP Address: XX.XXX.XXX.XX
* Port: 80
* Your Web Server and PhpED are on different machines
* Path to website files: /home/USERNAME/public_html/
* Document Root is: /home/USERNAME/public_html/
* Your PHP.INI file is /home/USERNAME/platform/php.ini
* PHP extensions directory is /home/USERNAME/extensions
* DBG (PHP DEBUGGER) is NOT INSTALLED

I followed the instructions from the paragraph 'How to install Server side DBG module'


Code:
[debugger]
debugger.enabled=on
debugger.profiler_enabled=on
debugger.hosts_allow=host1 host2 host3
debugger.hosts_deny=ALL
debugger.ports=7869, 10000/16


[Zend]

zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.2.0
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.2.0
zend_optimizer.version=3.2.0
 
zend_extension_ts=/home/USERNAME/extensions/dbg.so-5.2.x 

zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so


I have tried several iterations with the zend_extension_ts in different places.
I even try putting in nonsense file names (e.g. dbg.so-5.2.y) , and I don't get errors in my log file

HOWEVER if I use the glibc 2.7 version of the file, I get a core dump every time I try the correctly named 2.7 version (so, the file is getting read)

PHP Configure Command:
Code:

 './configure' '--enable-bcmath' '--enable-calendar' '--enable-dbase' '--enable-exif' '--enable-fastcgi' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-maintainer-zts' '--enable-mbstring' '--enable-pdo=shared' '--enable-soap' '--enable-sockets' '--enable-wddx' '--enable-zip' '--prefix=/usr' '--with-bz2' '--with-curl=/opt/curlssl/' '--with-curlwrappers' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libexpat-dir=/usr' '--with-libxml-dir=/opt/xml2' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--with-mime-magic' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-png-dir=/usr' '--with-pspell' '--with-sqlite=shared' '--with-tidy=/opt/tidy/' '--with-ttf' '--with-xmlrpc' '--with-xpm-dir=/usr/X11R6' '--with-xsl=/opt/xslt/' '--with-zlib' '--with-zlib-dir=/usr'


I don't seem to get any errors in my error_log. Any suggestions?


Last edited by garfly on Thu May 29, 2008 2:05 pm; edited 5 times in total
View user's profileFind all posts by garflySend private message


Joined: 18 Mar 2008
Posts: 14
Reply with quote
Other phpinfo() settings:
Code:

Server API    CGI/FastCGI
Virtual Directory Support    enabled
Configuration File (php.ini) Path    /usr/lib
Loaded Configuration File    /home/USERNAME/platform/php.ini
PHP API    20041225
PHP Extension    20060613
Zend Extension    220060519
Debug Build    no
Thread Safety    enabled
Zend Memory Manager    enabled
IPv6 Support    enabled
Registered PHP Streams    zip, php, file, data, tftp, ftp, telnet, dict, ldap, http, https, ftps, compress.bzip2, compress.zlib
Registered Stream Socket Transports    tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters    string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*

Looks like Thread Safety is enabled - I ran across a post that indicated this can be problematic. Is this my issue?
View user's profileFind all posts by garflySend private message


Joined: 18 Mar 2008
Posts: 14
Reply with quote
In desperation, I even commented out the existing Zend ts lines and tried putting this into my php.ini:
Code:
extension=dbg.so-5.2.x;

At least this kicks me an error (=more information):
Code:
[28-May-2008 11:36:02] PHP Warning:  PHP Startup: Unable to load dynamic library '/home/USERNAME/extensions/dbg.so-5.2.x' - /home/USERNAME/extensions/dbg.so-5.2.x: undefined symbol: compiler_globals in Unknown on line 0


Again, my assumption is that this has something to do with thread safety. ANYONE have ANY ideas?
View user's profileFind all posts by garflySend private message
Veteran

Joined: 24 Jan 2006
Posts: 311
Reply with quote
We think the problem is because you are using
--enable-maintainer-zts'

Please try recompiling w/o it. Thanks!
View user's profileFind all posts by yfaktorSend private message


Joined: 18 Mar 2008
Posts: 14
Reply with quote
1st - thanks for the response.

Is there a php.ini setting that disables --enable-maintainer-zts?

Again - I am using a SHARED server - not gonna be able to easily recompile with the options I like.

Thanks in advance,
View user's profileFind all posts by garflySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
Kevin,

You're right. You don't need zts under any linux/unix until want to get troubles with stability in almost all php extensions. Although the extensions themselves are threadsafe, it's known that only a few of them are using thread-safe 3rd party libraries.
Don't forget to run make clean or better unpack fresh php sources before running configure without zts argument.

Regarding php settings, no zts can't be turned off after php is compiled. It's a compile-time switch that changes php binary in many ways.


Last edited by dmitri on Mon Jun 02, 2008 8:58 am; edited 2 times in total

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


Joined: 18 Mar 2008
Posts: 14
Reply with quote
Thanks - that was all I was looking for.

Pls Consider this RESOLVED
View user's profileFind all posts by garflySend private message
[resolved] pls confirm dbg WILL NOT wrk with zts.
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