Want more timely Centmin Mod News Updates?
Become a Member

PHP-FPM For Centminmod user's on PHP 5.6, DO we need curl.cainfo value stated?

Discussion in 'Centmin Mod Insights' started by rdan, Oct 8, 2014.

Tags:
  1. rdan

    rdan Well-Known Member

    5,439
    1,399
    113
    May 25, 2014
    Ratings:
    +2,188
    Local Time:
    1:34 AM
    Mainline
    10.2
    Do we need this?
    Code:
    [curl]
    curl.cainfo = "/etc/ssl/certs/cacert.pem"


     
  2. eva2000

    eva2000 Administrator Staff Member

    53,818
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    3:34 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    not needed unless your php scripts need it for curl and https web sites. I added it anyway via commit at CentOS 7 Beta Branch - update inc/phpsededit.inc move to custom_php.ini | Centmin Mod Community

    For .08 beta centos7 beta01 only update inc/phpsededit.inc move to custom_php.ini · f8c5a0c · centminmod/centminmod · GitHub

    Code:
        if [ ! -f /etc/ssl/certs/cacert.pem ]; then
            wget -q -O /etc/ssl/certs/cacert.pem http://curl.haxx.se/ca/cacert.pem
            echo "curl.cainfo = '/etc/ssl/certs/cacert.pem'" > ${CONFIGSCANDIR}/curlcainfo.ini
        else
            wget -q -O /etc/ssl/certs/cacert.pem http://curl.haxx.se/ca/cacert.pem
            echo "curl.cainfo = '/etc/ssl/certs/cacert.pem'" > ${CONFIGSCANDIR}/curlcainfo.ini
        fi
    will trigger whenever, you run PHP upgrade via centmin.sh menu option 5 and be loaded via dedicated ini file at /etc/centminmod/php.d/curlcainfo.ini
     
  3. rdan

    rdan Well-Known Member

    5,439
    1,399
    113
    May 25, 2014
    Ratings:
    +2,188
    Local Time:
    1:34 AM
    Mainline
    10.2
    I manually create the file with this content:
    Code:
    [curl]
    curl.cainfo = "/etc/ssl/certs/cacert.pem"
    Then run this on ssh:
    Code:
    wget -q -O /etc/ssl/certs/cacert.pem http://curl.haxx.se/ca/cacert.pem
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,818
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    3:34 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah that's correct :)