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:

getsebool httpd_can_network_connect

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *