Question

The PHP cURL Extension is required for HTTPS...

Posted January 15, 2020 421 views
ApachePHP

I have a Ubuntu 18.4 LAMP with a simple site to input leads via a form to WSDL.

I have been using nuSOAP for the data.

On this server, I am stuck in a loop.

If cURL is disabled I have a working site, but this WSDL error…

wsdl error: Getting https://xxxxxxx.xxxxxxxxxxxxxx.xxx/services/dataservice.asmx?WSDL - HTTP ERROR: The PHP cURL Extension is required for HTTPS or NLTM. You will need to re-build or update your PHP to include cURL or change php.ini to load the PHP cURL extension.

With cURL enabled the server gives a 500 error.

Any thoughts on this?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello,

What I could suggest here is:

  • First check if you have the PHP cURL module installed:
php -m | grep -i curl

Another way to check that would be to add a PHP info file in your web root directory with the following content:

<?php

phpinfo();

?>

And access that file via your browser and look for the cURL module.

  • If you don’t see the module installed, then you could install it with the following command:
sudo apt install php-curl

After that restart Apache:

systemctl restart apache2

If you are still getting the 500 error, I would recommend checking your error log for more information. Feel free to share the error here so that I could try to advise you further.

Hope that this helps!
Regards,
Bobby

  • Thanks for the reply.

    So as stated, I can install and enable/disable curl.

    Checked with your php -m | grep -i curl and echo ‘Curl: ’, functionexists('curlversion’) ? 'Enabled’ . “\xA” : 'Disabled’ . “\xA”;

    If I have curl enabled and I try to open the wsdl script page I get a 500 error. All other page work.

    If curl is disabled the wsdl script page opens and posts to the wsdl but I get the error.

    I will try to find the logs and check those.

Submit an Answer