Ok,
I'm sure this is simple, but I can't seem to find any answers. I want Apache to Listen on a different port. I have changed the Listen in httpd.conf, and when I do a restart it fails. The journal says a configuration error. When I change back to port 80 all is well.
I want to run it on 8079, or 8181, both of them cause Apache to fail.
Any ideas?
Many thanks.
and
OK,
The problem was SELINUX. It was blocking any port except 80. Set it to permissive and changed the Listen directive in the httpd.conf to desired port and everything is OK now.
Ok, so now I can get apache running. the httpd.conf has Listen set to 8080, but I cant connect. If I do an nmap only 22, 53 are open 80 and 443 show closed.
I have opened the ports in the firewall, so I am now confused?
Listen on different port on Apache (Solved well maybe not)
Re: Listen on different port on Apache (Solved well maybe no
You can add the port to selinux's list of allowed http ports using the semanage command. Something like semanage port -a -t http_port_t -p tcp 8080 though you might have to read the output from semanage port -h to check my syntax.
How did you open the port in the firewall? CentOS 7 uses firewalld by default and you would need to run firewall-cmd or firewall-config (GUI) to add the port to the allowed list. If you use iptables to add it, then firewalld will see the rule and think it's not supposed to be there and remove it.
How did you open the port in the firewall? CentOS 7 uses firewalld by default and you would need to run firewall-cmd or firewall-config (GUI) to add the port to the allowed list. If you use iptables to add it, then firewalld will see the rule and think it's not supposed to be there and remove it.
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
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