Discover Centmin Mod today
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 rdan, Oct 8, 2014.

Tags:
  1. rdan

    rdan Premium Member Premium Member

    4,256
    1,035
    113
    May 25, 2014
    Ratings:
    +1,487
    Local Time:
    10:41 AM
    Mainline
    10.2
    Do we need this?
    Code:
    [curl]
    curl.cainfo = "/etc/ssl/certs/cacert.pem"

     
  2. eva2000

    eva2000 Administrator Staff Member

    36,084
    7,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,198
    Local Time:
    12:41 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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 Premium Member Premium Member

    4,256
    1,035
    113
    May 25, 2014
    Ratings:
    +1,487
    Local Time:
    10:41 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
     
    • Like Like x 1
  4. eva2000

    eva2000 Administrator Staff Member

    36,084
    7,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,198
    Local Time:
    12:41 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    yeah that's correct :)
     
    • Like Like x 1
..