Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

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,805 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 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Recently I spent hours debugging an issue in a Rails project where ActiveRecord was causing MySQL errors trying to create a User object of a class at the top level of a Single Table Inheritance model structure.  It turns out `.create` behaves differ…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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 look for a specific file type in a local or remote server directory using PHP.

721 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