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