Build PHP 7.3

Discussion in 'ISPConfig 3 Priority Support' started by Ark74, Dec 7, 2018.

Tags:
  1. Ark74

    Ark74 Member

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Probably yet, but have not tested it yet. So just try it, then you know it.
     
  3. florian030

    florian030 Well-Known Member HowtoForge Supporter

    you can follow the steps from 7.2 - just adjust the path to 7.3
    i need some changes:
    apt-get -y install libzip-dev libmemcached-dev
    and for memcached:
    Code:
    cd /tmp
    wget https://github.com/php-memcached-dev/php-memcached/archive/master.zip -O php7.zip
    unzip php7.zip
    cd php-memcached-master
    /opt/php-${php_base}/bin/phpize
    ./configure --with-php-config=/opt/php-${php_base}/bin/php-config
    make
    make install
    
    add extension=memcached.so to php.ini
     
    EX-Mats, Ark74 and till like this.
  4. Ark74

    Ark74 Member

    Looking into some history,
    Is there some difference between building and installing using pecl?
    Thanks!
     
  5. florian030

    florian030 Well-Known Member HowtoForge Supporter

    post #2 ?
     
  6. Ark74

    Ark74 Member

    Nm. Thanks.
     
  7. Ark74

    Ark74 Member

    Just to confirm, it is working o/!
     
  8. Ark74

    Ark74 Member

    Today I was scripting the compilation process to keep updated versions of PHP, and I just noticed this weird behavior.
    On my testing environment I was able to successfully compile using the package libcurl4-openssl-dev, this package as for today already fixes the issue where you need to link the curl library on include:
    Code:
        cd /usr/include
        ln -s x86_64-linux-gnu/curl
    
    Once I run on production I spent several hours failing the compilation, after a break and several coffee cups, I realized that instead of using libcurl4-openssl-dev I needed to replace it for
    Code:
    libcurl4-gnutls-dev
    , that allowed me to compile on production.

    The weird behavior is that configure will just break any time I used the openssl curl, when production and test environment are almost identical, anyhow, I'm still investigating the reason, but in the meantime I think sharing it could help someone from spending hours trying to figure this out in case they ran into it.

    BTW, I'm on a Xenial based server.
    Cheers!
     
  9. Ark74

    Ark74 Member

    After a closer lookup.
    I've concluded that the behavior described is result of upgrading openssl along with apache2 in order to introduce http2 into our production server.
    That messed up our PHP build process, once we downgrade and remove the packages, our build process is just fine with libcurl4-openssl-dev as described on the tutorial.
    As for this topic is concluded.
    Thanks.
     
    till likes this.

Share This Page