-1

I have a web server with the following software installed:

Ubuntu 22.04 LTS
cPanel 118.0.4
Apache 2.4 with the mod_suphp module
PHP 8.2

One of the cPanel accounts runs a Laravel application which interacts with PalPal using curl. This was transferred from a CentOS 7 server where everything worked.

When I run the PHP equivalent of "curl -X POST https://api-3t.sandbox.paypal.com/nvp -d <...>" from a bash shell, it returns the expected result. However, when run in a web page it returns nothing and no errors are logged.

The suggestions in these queries don't help:

curl is not working on Ubuntu 18.04 LTS

PHP returning blank pages

Any others would be welcome!

  • In desperation, I substituted AmpHttpClient for curl but got exactly the same behavior. It's as if the problem is with the firewall, except that it works from a bash shell, so it can't be that. – Keith M Mar 27 '24 at 20:28

0 Answers0