CloudLinux OS Blog - Beta: Alt-PHP with HTTP/2 support released
CloudLinux OS Blog

Beta: Alt-PHP with HTTP/2 support released

Beta: Alt-PHP with HTTP/2 support released

The new updated Alt-PHP packages with HTTP/2 support are available for download from our updates-testing repository.

Changelog:

alt-php44-4.4.9-62

alt-php51-5.1.6-72

alt-php52-5.2.17-98

alt-php53-5.3.29-48

alt-php54-5.4.45-32

alt-php55-5.5.38-14

alt-php56-5.6.30-5

alt-php70-7.0.19-2

alt-php71-7.1.5-2

  • using alt-openssl instead of system OpenSSL;
  • implemented HTTP/2 support (via cURL).

alt-curlssl-7.54.0-3.cloudlinux

  • updated to 7.54.0;
  • build against alt-openssl.

alt-openssl-1.0.2k-2.cloudlinux.5

  • updated to 1.0.2k.

To update run the command:

yum groupinstall alt-php --enablerepo=cloudlinux-updates-testing 

How to check if HTTP/2 is supported:

  • Check HTTP/2 feature in phpinfo() at cURL section. It should equal "Yes".
  • run check script:

!--?php

if (!defined('CURL_HTTP_VERSION_2_0')) {

    define('CURL_HTTP_VERSION_2_0', 3);

}

$version = curl_version();

if ($version["features"] & constant("CURL_VERSION_HTTP2") !== 0) {

    $url = "https://google.com/";

    $ch = curl_init();

    curl_setopt($ch,CURLOPT_URL,$url);

    curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);

    curl_setopt($ch,CURLOPT_HEADER,1);

    curl_setopt($ch,CURLOPT_HTTP_VERSION,CURL_HTTP_VERSION_2_0);

    curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);

    $response = curl_exec($ch);

    if ($response !== false && strpos($response, "HTTP/2") === 0) {

        echo "HTTP/2 support!";

    } elseif ($response !== false) {

        echo "No HTTP/2 support on server.";

    } else {

        echo curl_error($ch);

    }

    curl_close($ch);

} else {

    echo "No HTTP/2 support on client.";

}

echo "\n";

?>

PHP for EasyApache 4 updated
MariaDB for MySQL Governor updated
 

Comments 8

Guest - Jose Nobile on Wednesday, 17 May 2017 19:20

Hello,

Good is you include also an example showing proof of HTTP Push.

Hello, Good is you include also an example showing proof of HTTP Push.
Guest - Peter Grahn on Wednesday, 17 May 2017 20:30

Got it working and fully working for cpanel server:

For users who are just catching up, you can install and test HTTP2 by running:

# yum install ea4-experimental
# yum install ea-apache24-mod_http2
Place this .conf file down in '/etc/apache2/conf.d/http2.conf'


LogLevel http2:info
Protocols h2 h2c http/1.1

Restart Apache

/scripts/restartsrv_httpd

Got it working and fully working for cpanel server: For users who are just catching up, you can install and test HTTP2 by running: # yum install ea4-experimental # yum install ea-apache24-mod_http2 Place this .conf file down in '/etc/apache2/conf.d/http2.conf' LogLevel http2:info Protocols h2 h2c http/1.1 Restart Apache /scripts/restartsrv_httpd
Guest - Lucas on Wednesday, 24 May 2017 02:47

Any news on HTTP/2 support for the MultiPHP manager? It is already available at cPanel experimental repo.

Thanks!

Any news on HTTP/2 support for the MultiPHP manager? It is already available at cPanel experimental repo. Thanks!
Kateryna Obiidykhata on Thursday, 25 May 2017 11:02

Hi! The support for the MultiPHP manager will be added in 2 weeks.

Thanks!

Hi! The support for the MultiPHP manager will be added in 2 weeks. Thanks!
Guest - Thomas on Wednesday, 07 June 2017 11:31

Will this also be available for CentOS6 running CL with EA4?

Will this also be available for CentOS6 running CL with EA4?
Bogdan on Tuesday, 13 June 2017 11:00

If you are talking about ea-php* packages then we are planning to release support this week.

For alt-php* packages with EA4 on CloudLinux6 it is available right now, we are considering to move it to stable really soon.

For better understanding about ea-php and alt-php packages difference please review http://kb.cloudlinux.com/2017/01/cloudlinux-php-selector-and-cpanel-multiple-php-manager-from-ea4-explained/

If you are talking about ea-php* packages then we are planning to release support this week. For alt-php* packages with EA4 on CloudLinux6 it is available right now, we are considering to move it to stable really soon. For better understanding about ea-php and alt-php packages difference please review http://kb.cloudlinux.com/2017/01/cloudlinux-php-selector-and-cpanel-multiple-php-manager-from-ea4-explained/
Guest - Thomas on Wednesday, 14 June 2017 06:43

We are using CentOS 6 w/ CL EA4 with ea-php*. So we will just be waiting for the stable release.

We are using CentOS 6 w/ CL EA4 with ea-php*. So we will just be waiting for the stable release.
Guest - Michael Findlay on Tuesday, 18 July 2017 16:50

Ah so you are planning to release HTTP2 support for the EA4 by the end of this week? :-) I assume by the 21st?

Ah so you are planning to release HTTP2 support for the EA4 by the end of this week? :-) I assume by the 21st?
Already Registered? Login Here
Guest
Monday, 22 July 2019

Captcha Image