Page 3 of 3 FirstFirst 123
Results 41 to 44 of 44

Thread: Apache 2.4.17 released

  1. #41
    Join Date
    Oct 2003
    Location
    Switzerland
    Posts
    2,099
    Quote Originally Posted by smtalk View Post
    interfasys, what if you try version 1.6.0?
    Same error, but I got the port to compile and it's version 1.6, so maybe that's another one to add to the exclude list on FreeBSD
    Olivier
    interfaCentre - We design custom hosting solutions

    Custom apps, scripts and configurations for easy and secure access to all hosting services
    Full Personal Information Management suite with mobile synchronisation
    PHP, Ruby, Node.js and Python hosting with 1-click app install

  2. #42
    Join Date
    Oct 2003
    Location
    Switzerland
    Posts
    2,099
    And thanks for the guide Martynas. Everything is working as expected.

    One suggestion, maybe make a separate thread in the CB2 forums so that everybody can see it?
    Last edited by interfasys; 01-24-2016 at 11:48 AM.
    Olivier
    interfaCentre - We design custom hosting solutions

    Custom apps, scripts and configurations for easy and secure access to all hosting services
    Full Personal Information Management suite with mobile synchronisation
    PHP, Ruby, Node.js and Python hosting with 1-click app install

  3. #43
    Join Date
    Aug 2006
    Location
    LT, EU
    Posts
    8,060
    Added a new how-to thread per request: http://forum.directadmin.com/showthr...958#post269958
    Martynas Bendorius
    MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners.

  4. #44
    Join Date
    Apr 2014
    Location
    Tel Aviv, IL
    Posts
    7

    Getting http/2 and php in mod_php to work

    Here is how I got the mod_php to work with http/2:

    Following scrupul0us's experience, (php compilation errors, versions indiscrepancies in phpinfo() and instability), I tried to compile the new version of openssl as a shared library (and to use that shared library only in apache and mod_php)

    Here are the changes from the original procedure:

    Building the openssl 1.0.2, and creating a shared library:
    Using the command

    Code:
    ./config --openssldir=/usr/local/lib_http2 zlib-dynamic shared
    Note that this command is different, then the suggested config command.
    It includes the "shared"" argument and it does not have the flags -no-ssl2 and -no-ssl3.
    (see openssl documentation https://wiki.openssl.org/index.php/C...d_Installation),

    These protocols (sslv2 and 3) should be removed, but it seems that mod_ssl requires at least sslv3 and I did have the instability issue as scrupul0us described without these flags (but it requires further testing, I haven't tested it it with -no-ssl2 only).

    Once the compilation of openssl 1.0.2 completed, the created shared libraries has been copied to /usr/local/lib
    Code:
    cp /usr/local/lib_http2/lib/libcrypto.so.1.0.0 /usr/local/lib
    cp /usr/local/lib_http2/lib/libssl.so.1.0.0    /usr/local/lib
    Now the custom configuration files for compiling apache at the locations, should be created (or modified)

    custom/ap/configure.apache
    and
    custom/ap/configure.php55 (your version might vary)

    Replace in custom/ap/configure.apache the phrase

    Code:
     "--with-ssl=/usr" \
    with:

    Code:
     "--enable-http2" \
      "--with-ssl=/usr/local/lib_http2" \
    (The flag --enable-ssl-staticlib-deps as used in the original guide has been removed, since we are using the shared libraries and not static libraries)

    and in the php custom configuration:
    replace the original

    Code:
    --with-openssl \
    with the following:
    Code:
            --with-openssl=/usr/local/lib_http2 \
            --with-openssl-dir=/usr/local/lib_http2 \
    (I am not sure whether the second line is required --with-openssl-dir=/usr/local/lib_http2, a line --with-open-ssl-dir does not exist in the original confiure.apache in custombuild)

    now used custombuild to build php and apache

    ./build php
    ./build apache

    (and doing all the other steps in the original guide, except with the changes described here)

    Now there is no discrepancy in phpinfo() output:

    openssl

    OpenSSL support enabled
    OpenSSL Library Version OpenSSL 1.0.2f 28 Jan 2016
    OpenSSL Header Version OpenSSL 1.0.2f 28 Jan 2016

    Without copying the .so.1.0.0 files to /usr/local/lib, an error would appear that says that libssl.so.1.0.1 cannot be found (this can be resolved using other ways such as executing setting the environment variable PHP_RPATHS to include the new library path /usr/local/lib_http2/lib before executing custombuild's./build php).

    (it seems that copying these shared library files to /usr/local/lib does not affect the system's openssl e.g. some other package will use this new openssl instead of the old but stable operaing system openssl)

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •