1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

fsockopen

Discussion in 'Plesk for Linux - 8.x and Older' started by Beto, Oct 18, 2006.

  1. Beto

    Beto Guest

    0
     
    I just installed a new server, php , plesk 8.0.1 but I can't use fsockopen in my php scripts...
     
  2. Beto

    Beto Guest

    0
     
    I fixed it :)

    If you google on "fsockopen and selinux" you'll see that it's a known problem...

    When using Red Hat Fedora, beware of Security Enhanced Linux, SELinux.

    Quoted from Red Hat: "The security goal is to make sure that Apache HTTP is only reading the static Web content, and not doing anything else such as writing to the content, connecting to database sockets, reading user home directories, etc."

    I fixed it by doing following:

    [root@cypres init.d]# setsebool -P httpd_can_network_connect 1
    [root@cypres init.d]# ./httpd restart
     
Loading...