Learn about Centmin Mod LEMP Stack today
Register Now

PHP-FPM PHP-CURL

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Tracy Perry, Jun 29, 2015.

  1. Tracy Perry

    Tracy Perry Active Member

    188
    81
    28
    Aug 24, 2014
    Texas
    Ratings:
    +130
    Local Time:
    4:47 PM
    1.11.5
    MariaDB 10.0.28
    OK, I recently got a copy of IPS 4 (IP.Board) and am running a forum on it (Forums - The Bent Bike Forum

    One of the things that IPS 4 likes is having the PHP CURL PECL installed. I check my php info page and it does show that I have curl installed but according to IPS 4 I don't.
    I read that recently that the curl interface to PHP is done at compile time and that there is no curl.so generated. Is that correct? I'm running PHP 5.6.10 on the system (using the stable CentMin Mod on CentOS 6.6).

    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,546
    6,849
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,262
    Local Time:
    8:47 AM
    Nginx 1.13.x
    MariaDB 5.5
    yeah it's included at compile time so should exist PHP: Installation - Manual

    Code:
    php --ri curl
    
    curl
    
    cURL support => enabled
    cURL Information => 7.29.0
    Age => 3
    Features
    AsynchDNS => Yes
    CharConv => No
    Debug => No
    GSS-Negotiate => Yes
    IDN => Yes
    IPv6 => Yes
    krb4 => No
    Largefile => Yes
    libz => Yes
    NTLM => Yes
    NTLMWB => Yes
    SPNEGO => No
    SSL => Yes
    SSPI => No
    TLS-SRP => No
    Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtsp, scp, sftp, smtp, smtps, telnet, tftp
    Host => x86_64-redhat-linux-gnu
    SSL Version => NSS/3.15.4
    ZLib Version => 1.2.7
    libSSH Version => libssh2/1.4.3
    so you'd need to check with IP.Board folks how they are detecting php curl support
     
    • Like Like x 1
  3. Tracy Perry

    Tracy Perry Active Member

    188
    81
    28
    Aug 24, 2014
    Texas
    Ratings:
    +130
    Local Time:
    4:47 PM
    1.11.5
    MariaDB 10.0.28
    OK, think I figured out my answer... apparently the curl installed is an OLDER version on CentOS 6.6.
    It reports as 7.19.7 and you need at least >= 7.37.
    As simple as adding a new repository for the newer, or will that interfere with CentOS/CentMin (I'm mainly a Debian guy but moved all my sites over to a CentOS/CentMin box).
     
    • Informative Informative x 1
  4. eva2000

    eva2000 Administrator Staff Member

    30,546
    6,849
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,262
    Local Time:
    8:47 AM
    Nginx 1.13.x
    MariaDB 5.5
    yeah just checked myself with ip4 check script
    Code:
    lynx -dump localhost/ip4check.php
       IPS Community Suite 4.0
    
       [1]phpinfo
    
    PHP Requirements
    
         * PHP version 5.6.10.
         * You do not have the cURL PHP extension loaded or it is running a
           version less than 7.36. While this is not required, it is recommend
           to make calls to external API services faster. You may wish to
           contact your hosting provider or system administrator to ask for it
           to be installed.
         * DOM extension loaded.
         * GD extension loaded.
         * Multibyte String extension loaded.
         * MySQLi extension loaded.
         * OpenSSL extension loaded.
         * Session extension loaded.
         * SimpleXML extension loaded.
         * XML Parser extension loaded.
         * XMLReader extension loaded.
         * XMLWriter extension loaded.
         * Zip extension loaded.
         * 160M memory limit.
         * No Suhosin restrictions.
    
    MySQL Requirements
    
         * MySQL connection could not be established to perform version check.
           Make sure your MySQL Server version is 5.0.3 or above (5.6.0 or
           above recommended).
    
    Additional Requirements
         __________________________________________________________________
    
    Summary
    
       You are ready to install IPS Community Suite 4.0!
    
       To check if you can upgrade an existing installation of IP.Board 3.x,
       upload this script to the directory where your community is installed.
    
    References
    
       1. http://localhost/ip4check.php?phpinfo
    Unfortunately, updating curl on CentOS isn't that easy as there isn't a common repository for higher versions other that some folks custom standalone RPMs for such. My reply at How to upgrade libcurl package in centos 6 | Centmin Mod Community explains it too.

    IP.Board works fine with curl 7.19 on CentOS anyway, so it's just a note nothing more.
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,546
    6,849
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,262
    Local Time:
    8:47 AM
    Nginx 1.13.x
    MariaDB 5.5
    FYI, the standalone curl RPMs are listed at cURL - Download CentOS/RHEL 5-7 instructions and files are at Index of /ftp/contrib/sysutils/Mirroring

    Use at your own risk. I have them on some servers just for testing fine though.
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,546
    6,849
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,262
    Local Time:
    8:47 AM
    Nginx 1.13.x
    MariaDB 5.5
    hmm might add an optional routine in centmin mod to use these standalone curl RPM if folks choose to do so in centmin.sh :)
     
    • Agree Agree x 1
  7. Tracy Perry

    Tracy Perry Active Member

    188
    81
    28
    Aug 24, 2014
    Texas
    Ratings:
    +130
    Local Time:
    4:47 PM
    1.11.5
    MariaDB 10.0.28
    Yeah, the main issue is that if curl isn't available it uses sockets.. which is slower apparently.
    I think it's used to pull in the new versions and updates for the add-ons. They are not very "responsive" over on the IPS support site for questions. Guess I have gotten used to the XF support site.
     
  8. eva2000

    eva2000 Administrator Staff Member

    30,546
    6,849
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,262
    Local Time:
    8:47 AM
    Nginx 1.13.x
    MariaDB 5.5
    working on optional custom curl rpm routine for centmin mod .08 beta03 right now :D
     
    • Winner Winner x 1
  9. Tracy Perry

    Tracy Perry Active Member

    188
    81
    28
    Aug 24, 2014
    Texas
    Ratings:
    +130
    Local Time:
    4:47 PM
    1.11.5
    MariaDB 10.0.28
    Only problem... I'm not running the BETA!
    Hard to upgrade from the stable to the BETA on a CentOS 6.6 box?
     
  10. eva2000

    eva2000 Administrator Staff Member

    30,546
    6,849
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,262
    Local Time:
    8:47 AM
    Nginx 1.13.x
    MariaDB 5.5
    basically same upgrade process for .07 stable to .08 beta 03 outlined at CentOS 7.x - How to help test .08 CentOS 7 Betas with Github code ? | Centmin Mod Community and/or via git cmd Upgrade - Working with git command line for updating Centmin Mod local copies | Centmin Mod Community

    I'll see about making it a standalone addons/curlupdate.sh or something too
     
  11. Tracy Perry

    Tracy Perry Active Member

    188
    81
    28
    Aug 24, 2014
    Texas
    Ratings:
    +130
    Local Time:
    4:47 PM
    1.11.5
    MariaDB 10.0.28
    It installs cyrus-imapd? I've already got dovecot installed and running!
     
  12. eva2000

    eva2000 Administrator Staff Member

    30,546
    6,849
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,262
    Local Time:
    8:47 AM
    Nginx 1.13.x
    MariaDB 5.5
    yeah
    Code:
    rpm -qa cyrus-imapd
    cyrus-imapd-2.4.17-8.el7_1.x86_64
    guess it can be removed - it's disabled by default, it's some part of dependencies for for stuff i've installed myself

    Code:
    service cyrus-imapd status
    Redirecting to /bin/systemctl status  cyrus-imapd.service
    cyrus-imapd.service - Cyrus-imapd IMAP/POP3 email server
       Loaded: loaded (/usr/lib/systemd/system/cyrus-imapd.service; disabled)
       Active: inactive (dead)
     
  13. eva2000

    eva2000 Administrator Staff Member

    30,546
    6,849
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,262
    Local Time:
    8:47 AM
    Nginx 1.13.x
    MariaDB 5.5
  14. eva2000

    eva2000 Administrator Staff Member

    30,546
    6,849
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,262
    Local Time:
    8:47 AM
    Nginx 1.13.x
    MariaDB 5.5
    Just did a fresh test install on CentOS 7.1 with this 123.08beta03curl743 branch and seems to work. You will see that PHP also picks up curl 7.43 on compilation :)

    Code:
    curl --version
    curl 7.43.0 (x86_64-redhat-linux-gnu) libcurl/7.43.0 NSS/3.18 Basic ECC zlib/1.2.7 libidn/1.28 libssh2/1.6.0
    Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
    Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz UnixSockets Metalink
    
    Code:
    php --ri curl
    
    curl
    
    cURL support => enabled
    cURL Information => 7.43.0
    Age => 3
    Features
    AsynchDNS => Yes
    Debug => No
    GSS-Negotiate => No
    IDN => Yes
    IPv6 => Yes
    Largefile => Yes
    NTLM => Yes
    SPNEGO => Yes
    SSL => Yes
    SSPI => No
    krb4 => No
    libz => Yes
    CharConv => No
    Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp
    Host => x86_64-redhat-linux-gnu
    SSL Version => NSS/3.18 Basic ECC
    ZLib Version => 1.2.7
    libSSH Version => libssh2/1.6.0
    For @Tracy Perry IP.Board 4 check script reports fine for curl now being >7.36
    Code:
    lynx -dump localhost/ip4.php
       IPS Community Suite 4.0
    
       [1]phpinfo
    
    PHP Requirements
    
         * PHP version 5.4.42.
         * cURL extension loaded
         * DOM extension loaded.
         * GD extension loaded.
         * Multibyte String extension loaded.
         * MySQLi extension loaded.
         * OpenSSL extension loaded.
         * Session extension loaded.
         * SimpleXML extension loaded.
         * XML Parser extension loaded.
         * XMLReader extension loaded.
         * XMLWriter extension loaded.
         * Zip extension loaded.
         * 256M memory limit.
         * No Suhosin restrictions.
    
    MySQL Requirements
    
         * MySQL connection could not be established to perform version check.
           Make sure your MySQL Server version is 5.0.3 or above (5.6.0 or
           above recommended).
    
    Additional Requirements
         __________________________________________________________________
    
    Summary
    
       You are ready to install IPS Community Suite 4.0!
    
       To check if you can upgrade an existing installation of IP.Board 3.x,
       upload this script to the directory where your community is installed.
    
    References
    
       1. http://localhost/ip4.php?phpinfo
     
    • Like Like x 1
  15. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    2:17 AM
    1.9.x
    5.5
    when i remove ; before php-curl.dll php-fpm get down . and gives error something not found in some directory
     
  16. eva2000

    eva2000 Administrator Staff Member

    30,546
    6,849
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,262
    Local Time:
    8:47 AM
    Nginx 1.13.x
    MariaDB 5.5
    php-curl.dll is a windows file not related to linux php curl
     
  17. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    2:17 AM
    1.9.x
    5.5
    so what should i do for enable that option ? i want to install IPS 4 Forum
     
  18. eva2000

    eva2000 Administrator Staff Member

    30,546
    6,849
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,262
    Local Time:
    8:47 AM
    Nginx 1.13.x
    MariaDB 5.5
    see post 4 and 5 and 13 above for my replies and solutions - either use default php curl and ignore warning or upgrade manually curl/libcurl yum packages yourself at your own risk + recompile php afterwards via centmin.sh menu option 5
     
  19. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    2:17 AM
    1.9.x
    5.5
    Code:
    php --ri curl
    
    curl
    
    cURL support => enabled
    cURL Information => 7.19.7
    Age => 3
    Features
    AsynchDNS => No
    Debug => No
    GSS-Negotiate => Yes
    IDN => Yes
    IPv6 => Yes
    Largefile => Yes
    NTLM => Yes
    SPNEGO => No
    SSL => Yes
    SSPI => No
    krb4 => No
    libz => Yes
    CharConv => No
    Protocols => tftp, ftp, telnet, dict, ldap, ldaps, http, file, https, ftps, scp, sftp
    Host => x86_64-redhat-linux-gnu
    SSL Version => NSS/3.16.2.3 Basic ECC
    ZLib Version => 1.2.3
    libSSH Version => libssh2/1.4.2
    
    cURL Information => 7.19.7 ?

    Should be 7.43 ?

    ITS IPS 4.0 Forum Script
     
  20. eva2000

    eva2000 Administrator Staff Member

    30,546
    6,849
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,262
    Local Time:
    8:47 AM
    Nginx 1.13.x
    MariaDB 5.5
     
    • Like Like x 1