[SOLVED] certain loopback processes not visible to sites

Issues related to configuring your network
Post Reply
CFergus
Posts: 2
Joined: 2013/11/19 14:20:39

[SOLVED] certain loopback processes not visible to sites

Post by CFergus » 2013/11/19 14:29:03

hi guys.

i have so far set up 2 different servers using centos 5.9, and 5.10. both of which have similar issues.

the first was set up at my office. it is an hp proliant micro server, with 8GB ram and a dual core amd turion 2 neo.

the second is a very basic "muck around" server that was set up, in part, to investigate the issues with the first. it has 2.5GB of ram, and a 3.2GHZ p4 with HT.

both of them have the same basic issues, in that with drupal installed (they are intended as development servers), memcached and varnish are not visible to the sites installed on them. we have tried disabling iptables, we have checked just about every config file and option that we can find, to no avail. these services are accessible through telnet however when using the 127.0.0.1 or localhost address, and varnish can be accessed by its own content and admin ports, but it doesnt host pages from apache (again, connected by 127.0.0.1 or localhost), and mysql is also visible to the localhost, in both cases.

any help would be greatly appreciated.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: certain loopback processes not visible to sites

Post by TrevorH » 2013/11/19 14:59:56

Is selinux enabled? You can check by running `getenforce`. If so, then put it into permissive mode by running `setenforce 0` and retry your tests. If they work then your requests are being blocked by selinux and you may need to look at the various selinux booleans - try `getsebool -a | grep http` for a list and look especially at httpd_can_network_connect_db and httpd_can_network_connect. To turn those on you need to run e.g. `setsebool -P htpd_can_network_connect_db 1`
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

CFergus
Posts: 2
Joined: 2013/11/19 14:20:39

Re: certain loopback processes not visible to sites

Post by CFergus » 2013/11/20 10:14:45

TrevorH wrote:Is selinux enabled? You can check by running `getenforce`. If so, then put it into permissive mode by running `setenforce 0` and retry your tests. If they work then your requests are being blocked by selinux and you may need to look at the various selinux booleans - try `getsebool -a | grep http` for a list and look especially at httpd_can_network_connect_db and httpd_can_network_connect. To turn those on you need to run e.g. `setsebool -P htpd_can_network_connect_db 1`
thank you so much. problems solved :)

i wish there was a thanks button.

Post Reply