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
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?
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?
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.
<?php
if (!curl_version()['features'] & CURL_VERSION_SSL) {
echo "SSL is not supported with this cURL installation.";
}
?>
<?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;
}
?>
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
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