logo
  • About us
  • What we do
  • Our product
  • Recent work
  • Contact

Feedback

In Focus

  • Flash XML slideshow
  • Database training

SELinux will mess with your cURL

Fedora Core 5 ships with SELinux. Even having installed all the requisite Apache, PHP and Libcurl packages, cURL may not work correctly. It's not a package dependency conflict, or a bug - just an overprotective security manager keeping things safe.

I encountered this behaviour when trying to send a post request from my server to another. It manifested itself as a 'Failed to connect to XXX.XXX.XXX.XXX (ip): Permission denied'.

By default 'Allow HTTPD scripts and modules to connect to the network' is unticked in 'system-config-securitylevel' ('SELinux' tab). Relaxing this security restriction solved the problem.

  • Tech report
 

 

 

Copyright 2007 Lightenna Limited

  • About us
  • What we do
  • Our product
  • Recent work
  • Contact