The problem of recompiling php under centos

I need to add pthread extensions to php on a server,

cd pthreads
phpize
./configure

prompt

when compiling this step
configure: error: pthreads requires ZTS, please re-compile PHP with ZTS enabled

check whether it needs to be recompiled. Add-enable-maintainer-zts

now I have a few questions. I didn"t equip the server
1 at the beginning. I don"t know the configuration I used when compiling. If I compile directly according to the configuration on the Internet, will it lead to some configuration loss? I saw a php-config, that looked up and seemed to save the original configuration. Can I use something like-- with-php-config=/usr/local/php/bin/php-config to make sure that the configuration is the same as the last compilation, and then add-enable-maintainer-zts
, that is,

?
./configure --with-php-config=/usr/local/php/bin/php-config enable-maintainer-zts

2 I used to use window development, did not take care of the server, only slightly according to the online documentation to install the environment, before compiling what is done in the installation package extracted after the directory, but now this seems to be unable to find the original installation package, then I have to download the same version of the php installation package to compile it?

Mar.23,2021

go to / usr/bin/php-config to execute this binary file will output the relevant configuration of the current php
-- the configure-options option is the configuration command when compiling php at that time, and add
-- enable-maintainer-zts to that command when recompiling php

./configure [/usr/bin/php-config --configure-options ] --enable-maintainer-zts

I have been developed with window before, without taking care of the server, only slightly according to the online documentation to install the environment, before compiling what is done in the directory after the installation package is unzipped, but now this seems to be unable to find the original installation package, so do I have to download a new version of the php installation package to compile?

if the original compilation directory exists, there should be a config.nice file in the directory that contains the compilation parameters at that time. If there is no reservation, use the php-I command or the phpinfo () function to see that there is a Configure Command that is the compilation parameter.

as for recompiling, you can download the same version of the installation package, a small version can download the latest version, such as the current 5.6.x, you can download the latest 5.6.36 to compile.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e612ac-445c4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e612ac-445c4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?