PHP

Download, unzip, and change into PHP source directory

wget https://www.php.net/distributions/php-8.1.13.tar.gz
tar -xvf php-8.1.13.tar.gz
cd php-8.1.13

Configure, make, and install

./configure                     \
	--prefix=/usr/local/php-zts \
	--with-curl                 \
	--with-mysqli               \
	--with-openssl              \
	--with-pear                 \
	--with-zlib                 \
	--enable-mbstring           \
	--enable-sockets            \
	--enable-zts
make
make test
make install

Install parallel

/usr/local/php-zts/bin/pear install pecl/parallel
Create the file: '/usr/local/php-zts/lib/php.ini';
Then add the following line:
extension=parallel.so