• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

fsockopen

B

Beto

Guest
I just installed a new server, php , plesk 8.0.1 but I can't use fsockopen in my php scripts...
 
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
 
Back
Top