Welcome to Centmin Mod Community
Register Now

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

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

Tags:
  1. RoldanLT

    RoldanLT Well-Known Member

    3,830
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    4:04 PM
    1.11
    10.2
    Do we need this?
    Code:
    [curl]
    curl.cainfo = "/etc/ssl/certs/cacert.pem"

     
  2. eva2000

    eva2000 Administrator Staff Member

    29,041
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    6:04 PM
    Nginx 1.13.x
    MariaDB 5.5
    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. RoldanLT

    RoldanLT Well-Known Member

    3,830
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    4:04 PM
    1.11
    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
     
    • Like Like x 1
  4. eva2000

    eva2000 Administrator Staff Member

    29,041
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    6:04 PM
    Nginx 1.13.x
    MariaDB 5.5
    yeah that's correct :)
     
    • Like Like x 1