CloudLinux OS Blog - Alt-PHP with HTTP/2 support updated
CloudLinux OS Blog

Alt-PHP with HTTP/2 support updated

Alt-PHP with HTTP/2 support updated

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

Changelog:

alt-php44-ioncube-loader-6.1.0-1

alt-php51-ioncube-loader-6.1.0-1

alt-php52-ioncube-loader-6.1.0-1

alt-php54-ioncube-loader-6.1.0-1

alt-php55-ioncube-loader-6.1.0-1

alt-php56-ioncube-loader-6.1.0-1

alt-php70-ioncube-loader-6.1.0-1

  • updated to 6.1.0.

alt-php44-sourceguardian-11.1.1-1

alt-php51-sourceguardian-11.1.1-1

alt-php52-sourceguardian-11.1.1-1

alt-php53-sourceguardian-11.1.1-1

alt-php54-sourceguardian-11.1.1-1

alt-php55-sourceguardian-11.1.1-1

alt-php56-sourceguardian-11.1.1-1

alt-php70-sourceguardian-11.1.1-1

alt-php71-sourceguardian-11.1.1-1

  • updated to 11.1.1.

alt-net-snmp-libs-5.7.2-2

  • initial release.

alt-libssh2-1.8.0-2

  • build with alt-openssl.

alt-curlssl-7.54.0-6

  • updated to 7.54.0;
  • build with alt-libssh2.

alt-icu-57.1-1

  • updated to 57.1.

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

  • updated to 1.0.2k.

alt-php44-4.4.9-63

  • ALTPHP-323: LSPHP: CRIU support added;
  • HTTP/2 support (via cURL).

alt-php51-5.1.6-73

  • ALTPHP-323: LSPHP: CRIU support added;
  • ALTPHP-315: Removed mod_php provide;
  • HTTP/2 support (via cURL).

alt-php52-5.2.17-99

  • ALTPHP-323: LSPHP: CRIU support added;
  • ALTPHP-315: Remove mod_php provide;
  • HTTP/2 support (via cURL).

alt-php53-5.3.29-49

  • ALTPHP-323: LSPHP: CRIU support added;
  • HTTP/2 support (via cURL).

alt-php54-5.4.45-33

  • ALTPHP-323: LSPHP: CRIU support added;
  • HTTP/2 support (via cURL).

alt-php55-5.5.38-15

  • ALTPHP-323: LSPHP: CRIU support added;
  • HTTP/2 support (via cURL).

alt-php56-5.6.30-6

  • ALTPHP-323: LSPHP: CRIU support added;
  • HTTP/2 support (via cURL).

alt-php70-7.0.20-1

  • updated to 7.0.20;
  • (core) 74600: crash (SIGSEGV) in _zend_hash_add_or_update_i;
  • (core) 74546: SIGILL in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_CONST;
  • (intl) 74468: wrong reflection on Collator::sortWithSortKeys;
  • (mysqli) 74547: mysqli::change_user() doesn't accept null as $database argument w/strict_types;
  • (opcache) 74596: SIGSEGV with opcache.revalidate_path enabled;
  • (phar) 51918: Phar::webPhar() does not handle requests sent through PUT and DELETE method;
  • (standard) 74510: win32/sendmail.c anchors CC header but not BCC;
  • (xmlreader) 74457: Wrong reflection on XMLReader::expand;
  • ALTPHP-323: LSPHP: CRIU support added;
  • use alt-net-snmp-libs instead of system net-snmp;
  • HTTP/2 support (via cURL).

alt-php71-7.1.6-1

  • updated to 7.1.6
  • (core) 74600: crash (SIGSEGV) in _zend_hash_add_or_update_i;
  • (core) 74546: SIGILL in ZEND_FETCH_CLASS_CONSTANT_SPEC_CONST_CONST;
  • (core) 74589: __DIR__ wrong for unicode character;
  • (intl) 74468: wrong reflection on Collator::sortWithSortKeys;
  • (mysqli) 74547: mysqli::change_user() doesn't accept null as $database argument w/strict_types;
  • (opcache) 74596: SIGSEGV with opcache.revalidate_path enabled;
  • (phar) 51918: Phar::webPhar() does not handle requests sent through PUT and DELETE method;
  • (readline) 74490: readline() moves the cursor to the beginning of the line;
  • (standard) 74510: win32/sendmail.c anchors CC header but not BCC;
  • (xmlreader) 74457: Wrong reflection on XMLReader::expand;
  • ALTPHP-323: LSPHP: CRIU support added;
  • use alt-net-snmp-libs instead of system net-snmp;
  • HTTP/2 support (via cURL).

To install run:

yum groupinstall alt-php
yum update alt-libicu alt-libcurlssl alt-net-snmp-libs alt-libssh2 alt-openssl-libs

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";

?>

Beta: CloudLinux 7 kernel updated
Beta: ea-apache24-mod_fcgid released
 

Comments 9

Guest - Eric on Wednesday, 14 June 2017 13:17

Does this update require Apache HTTP/2 support be enabled?

Does this update require Apache HTTP/2 support be enabled?
Mykola Naugolnyi on Wednesday, 14 June 2017 14:13

Hi Eric,

No, this update allows PHP to perform HTTP/2 requests to remote servers via cURL functionality.

Hi Eric, No, this update allows PHP to perform HTTP/2 requests to remote servers via cURL functionality.
Guest - Morten on Wednesday, 14 June 2017 19:11

Great work It's working quite good!
Looking forward to get http/2 on the websites aswell. But I guess you will wait until cPanel has released this into production?

Great work:) It's working quite good! Looking forward to get http/2 on the websites aswell. But I guess you will wait until cPanel has released this into production?
Guest - Flo' on Thursday, 15 June 2017 17:48

Hello,

Our server is running EA4 and the php would be ea-php packages. You're talking about alt-php packages from cloudlinux but apparently, HTTP/2 support for EA4 is still listed under feature request, right? So we have to wait until a cPanel update rolls out for this? Do you have an estimated date for this?

Best regards,
Florence.

Hello, Our server is running EA4 and the php would be ea-php packages. You're talking about alt-php packages from cloudlinux but apparently, HTTP/2 support for EA4 is still listed under feature request, right? So we have to wait until a cPanel update rolls out for this? Do you have an estimated date for this? Best regards, Florence.
Mykola Naugolnyi on Friday, 16 June 2017 07:09

Hi Florence,

We are going to release ea-php with HTTP/2 support to Beta repository the next week.

Hi Florence, We are going to release ea-php with HTTP/2 support to Beta repository the next week.
Guest - Florence on Monday, 19 June 2017 16:33

Hi Mykola, thank you. Is there a way to be notified when ea-php with HTTP/25 support will be released?

Hi Mykola, thank you. Is there a way to be notified when ea-php with HTTP/25 support will be released?
Mykola Naugolnyi on Monday, 19 June 2017 16:47

We post all the updates info here in our blog and on FB/Twitter immediately after the packages are in the repository.

Stay in touch.

We post all the updates info here in our blog and on FB/Twitter immediately after the packages are in the repository. Stay in touch.
Mykola Naugolnyi on Wednesday, 21 June 2017 11:31
Hi Florence, please find the update https://www.cloudlinux.com/cloudlinux-os-blog/entry/beta-easyapache-4-with-http-2-support-released
Guest - Florence on Wednesday, 21 June 2017 12:00

Hi Mykola, thank you very much!

Hi Mykola, thank you very much!
Already Registered? Login Here
Guest
Monday, 22 July 2019

Captcha Image