./configure параметры
./configure --enable-curl --enable-exif --enable-imagick --enable-mbstring --enable-openssl --enable-ftp --enable-zip --enable-gd --enable-cli --enable-fpm --enable-intl --enable-opcache --enable-sockets --enable-soap --with-freetype --with-fpm-user=www-data --with-fpm-group=www-data --with-jpeg --with-mysql-sock --with-mysqli --with-pdo-mysql --with-pgsql --with-xsl --with-zlib --with-openssl --with-zip --with-external-gd --with-imagick --with-curl
ссылки на гит
git clone https://github.com/php/php-src.git # Master branch git clone https://github.com/php/php-src.git --branch=master # PHP 8.2 branch git clone https://github.com/php/php-src.git --branch=PHP-8.2 # PHP 8.1 branch git clone https://github.com/php/php-src.git --branch=PHP-8.1 # PHP 8.0 branch git clone https://github.com/php/php-src.git --branch=PHP-8.0 # PHP 7.4 branch git clone https://github.com/php/php-src.git --branch=PHP-7.4
#порядок действий:
make -j$(nproc) #количество ядер make TEST_PHP_ARGS=-j4 test make install php --ini #устанваливаем в систему vim /etc/systemd/system/php-fpm.service #конфиг [Unit] Description=PHP FPM service After=network.target [Service] PIDFile=%t/php8/php-fpm.pid ExecStartPre=/bin/mkdir --parents %t/php8 ExecStart=/opt/php/php8/sbin/php-fpm --fpm-config /opt/php/php8/etc/php-fpm.conf --nodaemonize ExecReload=/bin/kill -USR2 $MAINPID Type=simple [Install] WantedBy=multi-user.target #запуск systemctl daemon-reload systemctl start php-fpm systemctl enable php-fpm #статус systemctl status php-fpm #найти процесс find / -iname php*.pid #направить nginx (domain-conf) fastcgi_pass 127.0.0.1:8999;