Solved

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

Posted on 2014-11-30
6
2,221 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 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

920 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

14 Experts available now in Live!

Get 1:1 Help Now