Yum installation mode PHP, switch nts to ZTS version

Source: Internet
Author: User
Tags zts

Using the Yum installation PHP, switch nts to ZTS version (switch to thread-safe version)

It's best to install it in my own way (installation comparison is all a point): https://www.cnblogs.com/fps2tao/p/7699448.html

In fact, according to the installation of the default httpd is also installed.

Systemctl Stop Firewalld  // Turn off the firewall // start service
Php-v

The default is the NTS version.

Personal sense, thread safety is mainly PHP and IIS fastcgi, Apache execution method, such as Apache execution PHP is using libphp7.so or libphp7-zts.so

If the PHP module is libphp7.so changed to libphp7-zts.so, is the thread safe to turn on???

Let's start by finding the libphp7.so of the httpd configuration file (I was looking for a few times in HTTPd's Conf folder)

Ten-php.conf

I changed the exclamation mark to the one above, which should be the meaning of the note. Save, restart httpd.

At the command line php-v does not change, or NTS do not know why (but phpinfo () the output of the change)

Yum installation mode PHP, switch nts to ZTS version

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.