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

Thread: Third PHP version

  1. #41
    I've updated the pre-release binaries with some fixes to php3_release, php4_release:
    https://www.directadmin.com/features.php?id=2276

    To clarify, this lets Users pick one of those 4 to use with their website, assuming the default is used:
    php_version_selector=1

    You can set the old method php_version_selector=2, so they get to pick any 2 live versions (for example: file.php for 5.6, and file.php72 for 7.2 live on their site), allow 2 at a time, where those 2 live versions can be chosen from any of the new 4 instances from the options.conf.

    It does not mean a User can have 4 live versions at the same time.. so they cannot have .php, .php71, .php70, .php72 all working at the same time on their website.
    There might be some confusion there


    Pre-release

    If you have a DA server and know your UID/LID, you don't need to know the UID password, you can just use the channel=beta method:
    https://help.directadmin.com/item.php?id=408


    Pre-release has other changes

    Note that this has significant changes to MySQL too:
    https://www.directadmin.com/features.php?id=2274
    so keep that in mind if you're planning on updating the binaries.


    mod_ruid2 with php-fpm
    I believe permissions were updated a while ago to allow mod_ruid2 with php-fpm.. so I believe mod_php can be used for one instance with mod_ruid2, and php-fpm for others, for example.
    I've just tested now, and CB2 didn't complain with those settings. (Martynas would be the final word on that, but I seem to recall it being allowed for a while now)

    John

  2. #42
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    12,952
    Quote Originally Posted by JohnyByk View Post
    I haven't access to pre-release :]
    You can use the updateda.sh script from here https://github.com/poralix/directadm...ee/master/core to update Directadmin using either pre-release (beta) or stable channel.

    Install script:

    Code:
    cd /root/
    wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/core/updateda.sh -O updateda.sh
    chmod 755 updateda.sh
    Run to install a pre-release version of Directadmin:


    Code:
    ./updateda.sh beta

    Run to install a stable version of Directadmin:


    Code:
    ./updateda.sh stable
    Regards, Alex G.

    - You can hire me on www.poralix.com to work on your server
    - Follow and like @Poralix on Facebook

  3. #43
    Join Date
    Mar 2012
    Posts
    211
    Thanks.

    I have one more problem with openssl. PHP older than 5.6 compile with custom ssl libraries folder OK, but something dosen't work with ssl/ tls.

    Phpinfo:
    Code:
    Registered Stream Socket Transports:
    tcp, udp, unix, udg
    
    Registered PHP Streams: 
    compress.zlib, php, file, glob, data, http, ftp, phar, zip
    In higher versions:
    Code:
    Registered Stream Socket Transports: 
    tcp, udp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2
    
    Registered PHP Streams: 
    https, ftps, compress.zlib, php, file, glob, data, http, ftp, phar, zip, rar
    You think so it's openssl compilation problem or something wrong in my custombuild settings?

    I compiled openssl in that way:
    Code:
    root@naruto:/usr/src/openssl-1.0.2l
    export CFLAGS=-fPIC
    ./config --prefix=/usr/local/openssl-1.0.2l/ shared zlib-dynamic
    make
    make install
    Code:
    cat /usr/local/directadmin/custombuild/custom/fpm/configure.php55
    #!/bin/sh
    ./configure \
            --prefix=/usr/local/php55 \
            --program-suffix=55 \
            --enable-fpm \
            --with-fpm-systemd \
            --with-config-file-scan-dir=/usr/local/php55/lib/php.conf.d \
            --with-curl \
            --with-gd \
            --enable-gd-native-ttf \
            --with-gettext \
            --with-jpeg-dir=/usr/local/lib \
            --with-freetype-dir=/usr/local/lib \
            --with-libxml-dir=/usr/local/lib \
            --with-kerberos \
            --with-openssl-dir=/usr/local/openssl-1.0.2l \
            --with-mcrypt \
            --with-mhash \
            --with-mysql=mysqlnd \
            --with-mysql-sock=/usr/local/mysql/data/mysql.sock \
            --with-mysqli=mysqlnd \
            --with-pcre-regex=/usr/local \
            --with-pdo-mysql=mysqlnd \
            --with-pear \
            --with-png-dir=/usr/local/lib \
            --with-xsl \
            --with-zlib \
            --enable-zip \
            --with-iconv=/usr/local \
            --enable-bcmath \
            --enable-calendar \
            --enable-ftp \
            --enable-sockets \
            --enable-soap \
            --enable-mbstring \
            --with-icu-dir=/usr/local/icu \
            --enable-intl
    When custombuild build php 5.5 i see some abnormal informations:
    Code:
    /usr/bin/ld: warning: libssl.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libssl.so.1.0.0
    /usr/bin/ld: warning: libssl.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libssl.so.1.0.0
    /usr/bin/ld: warning: libssl.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libssl.so.1.0.0
    /usr/bin/ld: warning: libcrypto.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libcrypto.so.1.0.0
    /usr/bin/ld: warning: libcrypto.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libcrypto.so.1.0.0
    /usr/bin/ld: warning: libcrypto.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libcrypto.so.1.0.0
    /usr/bin/ld: warning: libcrypto.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libcrypto.so.1.0.0
    /usr/bin/ld: warning: libcrypto.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libcrypto.so.1.0.0
    /usr/bin/ld: warning: libpcre.so.3, needed by //lib/x86_64-linux-gnu/libselinux.so.1, may conflict with libpcre.so.0
    /usr/bin/ld: warning: libssl.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libssl.so.1.0.0
    /usr/bin/ld: warning: libssl.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libssl.so.1.0.0
    /usr/bin/ld: warning: libssl.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libssl.so.1.0.0
    /usr/bin/ld: warning: libcrypto.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libcrypto.so.1.0.0
    /usr/bin/ld: warning: libcrypto.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libcrypto.so.1.0.0
    /usr/bin/ld: warning: libcrypto.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libcrypto.so.1.0.0
    /usr/bin/ld: warning: libcrypto.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libcrypto.so.1.0.0
    /usr/bin/ld: warning: libcrypto.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libcrypto.so.1.0.0
    /usr/bin/ld: warning: libpcre.so.3, needed by //lib/x86_64-linux-gnu/libselinux.so.1, may conflict with libpcre.so.0
    Generating phar.php
    Generating phar.phar
    PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.
    directorytreeiterator.inc
    pharcommand.inc
    directorygraphiterator.inc
    invertedregexiterator.inc
    clicommand.inc
    phar.inc
    /usr/bin/ld: warning: libssl.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libssl.so.1.0.0
    /usr/bin/ld: warning: libssl.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libssl.so.1.0.0
    /usr/bin/ld: warning: libssl.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libssl.so.1.0.0
    /usr/bin/ld: warning: libcrypto.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libcrypto.so.1.0.0
    /usr/bin/ld: warning: libcrypto.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libcrypto.so.1.0.0
    /usr/bin/ld: warning: libcrypto.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libcrypto.so.1.0.0
    /usr/bin/ld: warning: libcrypto.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libcrypto.so.1.0.0
    /usr/bin/ld: warning: libcrypto.so.1.1, needed by /usr/local/lib/libcurl.so, may conflict with libcrypto.so.1.0.0
    /usr/bin/ld: warning: libpcre.so.3, needed by //lib/x86_64-linux-gnu/libselinux.so.1, may conflict with libpcre.so.0
    How to properly build older php version on debian 9 with custombuild?

    Regards

  4. #44
    Join Date
    Mar 2013
    Posts
    182
    Quote Originally Posted by smtalk View Post
    It's possible to do this now 3rd and 4th. Requires pre-release binaries of DA (>=1.55)

    Attachment 2483
    we had some problems, for example installing IMAP trough this guide: https://help.directadmin.com/item.php?id=341

    imap installer only detects php1 and php2 config files and imap not installed on php3 and php4. I added imap support manually in 3 and 4 config and my problem solved but it is better to update these kind of installers.
    ShivaHost.com
    Official DirectAdmin WebHosting accepting PayPal , BitCoin , Ripple , WebMoney and PerfectMoney

  5. #45
    Join Date
    Aug 2006
    Location
    LT, EU
    Posts
    7,454
    Since 28th of March https://help.directadmin.com/item.php?id=341 should have no issues with 4 versions of PHP. Are you sure it has been tried after that time? Thank you.
    Martynas Bendorius
    MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners.

  6. #46
    Join Date
    Mar 2013
    Posts
    182
    Quote Originally Posted by smtalk View Post
    Since 28th of March https://help.directadmin.com/item.php?id=341 should have no issues with 4 versions of PHP. Are you sure it has been tried after that time? Thank you.
    no I am not sure I installed imap for php 3 and 4 yesterday with manual configuration for one of my customers because I didn't know it is now supported by imap installer!
    ShivaHost.com
    Official DirectAdmin WebHosting accepting PayPal , BitCoin , Ripple , WebMoney and PerfectMoney

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
  •