Solved

How do I enable  ZTS (Zend Thread Safety)  PHP Version 5.3.27, IIS7?

Posted on 2014-11-30
6
2,431 Views
Last Modified: 2014-12-01
Just looking into new relic www.newrelic.com/‎, looks pretty cool. For requirements the IIS7 server seems to fulfil all except ZTS (Zend Thread Safety) as seen under configure command in phpinfo.
cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" "--disable-isapi" "--disable-nsapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared" "--with-enchant=shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--with-mcrypt=static" "--disable-static-analyze"

Is there an easy way to enable ZTS in windows command line or in php.ini or do I have to install it, if so how?

https://specialistreferrals.co.nz/error_log/info.php
Windows Server VersionIIS7 version
0
Comment
Question by:jwleys
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40472920
Since it says "--disable-zts", you would have to find another version or compile your own version of PHP.  I got a virus warning when I went to the NewRelic web site.
0
 

Author Comment

by:jwleys
ID: 40472932
Have you seen any good documentation for setting this up with Windows IIS7?
0
 

Author Comment

by:jwleys
ID: 40472934
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 40472946
Your version of PHP has "--disable-zts" which means it does not support ZTS (Zend Thread Safety).  In the links you posted, it says that you need Apache, not IIS, to run New Relic.
0
 

Author Comment

by:jwleys
ID: 40474764
Hi Dave,

I found that they do have New Relic for .Net (wonder if I can use this for a PHP application I will look into it)
https://docs.newrelic.com/docs/agents/net-agent/getting-started/new-relic-net

Naturally in my situation I have a PHP application I want to monitor on a Windows Server, because of systems requirements of this project I cannot change to Apache, I have to use IIS7, what documentation did you view that stated that Apache was a requirement. From the links I provided I didn't see Apache stated as a requirement, perhaps I am missing something.

Thanks for your help Dave.
0
 

Author Closing Comment

by:jwleys
ID: 40474791
New Relic, is not going to work for me in my situation I need to use IIS7 and it requires Apache, there is a .Net version but it is only useful for .Net code.

If I can't get Apache on the windows server then I will probably just focus on the normal error logs, ensure low level logging is enabled and try to identify the timeout issue.

Unfortunate. The most important thing from new relic would've been the stack trace, I expect I can code timestamp debug through the code and review the logs to identify the code point that is taking time
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question