Solved

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

Posted on 2014-11-30
6
2,134 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
  • 4
  • 2
6 Comments
 
LVL 82

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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 82

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

743 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now