Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-11-30
6
Medium Priority
?
2,933 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 84

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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 2000 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 Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

885 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