Troubleshooting a new Centos8 machine, I encountered a very strange problem:
my Apache+PHP setup was working fine, but every CURL script was not working. No errors, only blank pages.
Digging into the problem, I fixed it running this command:
setsebool -P httpd_can_network_connect on
The issue was generated by SELinux: the PHP-FPM was unable to exit the server, so any CURL script was not working.
You can check if your SELinux setup is allowing network access, running this command: