Curl error: Protocol " https" not supported or disabled in libcurl

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

Marko Westerveld

Marko Westerveld

20/02/2017 13:41:59
Quote Anchor link
Goede dag,

Ik stoei al een tijdje met de melding: Curl error: Protocol " https" not supported or disabled in libcurl

Mijn VPS draait op CentOS 7, met direct admin. PHP 7

Gegevens uit PHP info:

cURL support enabled
cURL Information 7.52.1
Age 3
Features
AsynchDNS No
CharConv No
Debug No
GSS-Negotiate No
IDN No
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, pop3, pop3s, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp
Host x86_64-pc-linux-gnu
SSL Version OpenSSL/1.0.1e
ZLib Version 1.2.7
libSSH Version libssh2/1.8.0


Kan iemand me op weg helpen? In het rijtje protocols staat toch echt https
 
PHP hulp

PHP hulp

26/04/2024 17:01:52
 
- Ariën  -
Beheerder

- Ariën -

20/02/2017 14:49:32
Quote Anchor link
Ervaring met de Custombuild?
Dan kan je curl compileren met --with-ssl.
 
Marko Westerveld

Marko Westerveld

20/02/2017 14:59:31
Quote Anchor link
Nee geen ervaring, maar volgens mij zit dat wel op mijn VPS, (met direct admin). Want die map moet ik openen bij het updaten

Kun je me een aanzet geven hoe ik te werk moet gaan?
 
Aad B

Aad B

20/02/2017 15:07:56
Quote Anchor link
Als je zelf gaat compileren dan moet je daarna je systeem op dat punt zorgvuldig bijhouden en wellicht na een update (https://www.centos.org/docs/5/html/yum/sn-updating-your-system.html) van packages opnieuw compileren. Ik zou het toch zoeken in een aanvulling/update/upgrade van het bewuste package via yum. Zelf compileren is leuk maar dan bij voorkeur voor heel speciale programma's die niet in de yum structuur zitten. Verder weet je ook nog niet zeker of dat het probleem is. Hou je uberhaupt je systeem up to date met yum of niet?

Wil je toch zelf aan de slag met compileren dan is dit een handige link:
how to install curl and libcurl
https://curl.haxx.se/docs/install.html
Gewijzigd op 20/02/2017 15:20:19 door Aad B
 
Marko Westerveld

Marko Westerveld

20/02/2017 15:30:15
Quote Anchor link
Ik update mijn systeem regelmatig. Afgelopen weekend nog gedaan.

Ik wil zelf zo min mogelijk zelf maken.

Wat ik probeer is een SOAP request te doen via CURL, ik dacht dat dat niet zo moeilijk zou zijn en daar wel standaarden voor zijn. Is er eventueel een andere goede oplossing om een SOAP request/post te doen?
 
- Ariën  -
Beheerder

- Ariën -

20/02/2017 16:00:35
Quote Anchor link
Extenties voor PHP dien je bij DirectAdmin uitsluitend via CustomBuild te doen. Ik zal vanavond eens wat opzoeken.
 
Aad B

Aad B

20/02/2017 16:30:52
Quote Anchor link
Gezien de foutmelding: Protocol " https" not supported or disabled in libcurl duidt op een standaard linux/unix lib en ik vraag mij af in hoeverre een php extensie custombuilden het probleem oplost. Ik vond dit ergens: In your PHP program you can instead of phpinfo run curl_version() and see what it says regarding SSL support and versions etc.
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
<?php
if (!curl_version()['features'] & CURL_VERSION_SSL) {
    echo "SSL is not supported with this cURL installation.";
}

?>

en meer:
http://php.net/manual/en/function.curl-version.php
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
// Get curl version array
$version = curl_version();
// These are the bitfields that can be used
// to check for features in the curl build

$bitfields = Array(
            'CURL_VERSION_IPV6',
            'CURL_VERSION_KERBEROS4',
            'CURL_VERSION_SSL',
            'CURL_VERSION_LIBZ'
            );
foreach($bitfields as $feature)
{

    echo $feature . ($version['features'] & constant($feature) ? ' matches<br>' : ' does not match<br>');
    echo PHP_EOL;
}

?>
Gewijzigd op 20/02/2017 20:18:56 door Aad B
 
- Ariën  -
Beheerder

- Ariën -

21/02/2017 11:42:34
Quote Anchor link
En welke melding krijg je van dat PHP-script? Dat SSL niet supported is?
Curl is een onderdeel van de CustomBuild, dus je zult daarin in /usr/local/directadmin/custombuild/configure/ap2/configure.php56 (of een andere cijfers als extentie, ligt aan je PHP-versie) --with-ssl moeten toevoegen aan je CURL-regel. En dan PHP opnieuw proberen te builden.
 
Thomas van den Heuvel

Thomas van den Heuvel

21/02/2017 14:16:12
Quote Anchor link
Kleine aanvulling op script @AadB hierboven: waarschijnlijk moeten de constanten in het $bitfields array zonder quotes gedefinieerd worden.
 
John D

John D

21/02/2017 15:52:31
Quote Anchor link
@Thomas
Ik zag het script en was benieuwd naar mijn resultaat, het werkt bij mij goed met de quotes.
Dit was het resultaat:
CURL_VERSION_IPV6 matches
CURL_VERSION_KERBEROS4 does not match
CURL_VERSION_SSL matches
CURL_VERSION_LIBZ matches
Gewijzigd op 21/02/2017 15:53:04 door John D
 



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.