Jump to content

New AlmaLinux 9.5 server with CWP Pro compiled PHP 8.3 both with OpenSSL 3.2.2 and OpenSSL 1.1 and it breaks SMTP connections.

Featured Replies

Posted

Output of command (PHP 8.2): php -i | grep "OpenSSL"

SSL Version => OpenSSL/3.2.2

OpenSSL support => enabled

OpenSSL Library Version => OpenSSL 1.1.1t 7 Feb 2023

OpenSSL Header Version => OpenSSL 1.1.1t 7 Feb 2023

Native OpenSSL support => enabled

Output of command (PHP-FPM 8.3): /opt/alt/php-fpm83/usr/bin/php -i | grep "OpenSSL"

SSL Version => OpenSSL/3.2.2

OpenSSL support => enabled

OpenSSL Library Version => OpenSSL 1.1.1t 7 Feb 2023

OpenSSL Header Version => OpenSSL 1.1.1t 7 Feb 2023

Native OpenSSL support => enabled

php -i | grep "Configure Command"

Configure Command => './configure' '--with-config-file-path=/usr/local/php' '--enable-cgi' '--with-config-file-scan-dir=/usr/local/php/php.d' '--with-zlib=/usr' '--enable-mbstring' '--with-zip' '--enable-bcmath' '--enable-pcntl' '--enable-ftp' '--enable-exif' '--enable-calendar' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--with-tidy' '--with-curl' '--with-gmp' '--with-pspell' '--enable-gd' '--with-jpeg' '--with-freetype' '--enable-gd-jis-conv' '--with-webp' '--with-avif' '--with-zlib-dir=/usr' '--with-xpm' '--with-openssl' '--with-pdo-mysql=mysqlnd' '--with-gettext=/usr' '--with-bz2=/usr' '--with-mysqli' '--enable-soap' '--enable-phar' '--with-xsl' '--with-kerberos' '--enable-posix' '--enable-sockets' '--with-external-pcre' '--with-libdir=lib64' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--enable-intl' '--with-imap' '--with-imap-ssl' '--with-password-argon2' 'PKG_CONFIG_PATH=/usr/local/opensslso/lib/pkgconfig'

/opt/alt/php-fpm83/usr/bin/php -i | grep "Configure Command"

Configure Command => './configure' '--prefix=/opt/alt/php-fpm83/usr' '--with-config-file-path=/opt/alt/php-fpm83/usr/php' '--with-config-file-scan-dir=/opt/alt/php-fpm83/usr/php/php.d' '--with-zlib=/usr' '--enable-mbstring' '--with-zip' '--enable-bcmath' '--enable-pcntl' '--enable-ftp' '--enable-exif' '--enable-calendar' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--with-tidy' '--with-curl' '--with-iconv' '--with-gmp' '--with-pspell' '--enable-gd' '--with-jpeg' '--with-freetype' '--enable-gd-jis-conv' '--with-webp' '--with-avif' '--with-zlib-dir=/usr' '--with-xpm' '--with-openssl' '--with-pdo-mysql=mysqlnd' '--with-gettext=/usr' '--with-bz2=/usr' '--with-mysqli' '--enable-soap' '--enable-phar' '--with-xsl' '--with-kerberos' '--enable-posix' '--enable-sockets' '--with-external-pcre' '--with-libdir=lib64' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--enable-intl' '--with-imap' '--with-imap-ssl' '--enable-fpm' '--enable-opcache' '--with-password-argon2' 'PKG_CONFIG_PATH=/usr/local/opensslso/lib/pkgconfig'

The PHP is configured to use OpenSSL from:
🔴 PKG_CONFIG_PATH=/usr/local/opensslso/lib/pkgconfig
This means PHP is still linked to OpenSSL 1.1.1t instead of OpenSSL 3.2.2.

@Sandeep B. Do you have any suggestion to correct it as fast as possible?

May all CWP in AlmaLinux 9 have this issue.

Edited by TheHolbi
typo in title

  • Author

So, we need change the PHP build script to include the right OpenSSL library (e.g. 3.2.2 for the AlmaLinux 9.5), or we need to move the OpenSSL 3.x to location /usr/local/opensslso/ instead of the v.1.1.
The CWP uses PHP 7.x for admin-panel function so, the OpenSSL v.1.1 is not removable.

@Sandeep B. What is your opinion?

Edited by TheHolbi
typo, with OpenSSL version

  • TheHolbi changed the title to New AlmaLinux 9.5 server with CWP Pro compiled PHP 8.3 both with OpenSSL 3.2.2 and OpenSSL 1.1 and it breaks SMTP connections.

Create an account or sign in to comment