What is the best apache stack to install on CentOs 6

Support for webhosts that use CentOS
Greenerpastures
Posts: 11
Joined: 2014/03/25 10:26:59

Re: What is the best apache stack to install on CentOs 6

Postby Greenerpastures » 2014/03/27 13:48:03

Hi, and thank you for your input, Trevor_H, that is indeed iptables-config, which I renamed to iptables, as there was two of them in the etc/sysconfig folder, and strangely absolutely no file named iptables was present there at all, Does this have something to do with my hosts setup, or is iptables created during apache install,was installing httpd with the -y the reason for this missing file, is iptables a file I can create and poulate with the correct info for the ports I need to use.

Thank you gerald_clark, I will have al look at that file, I did hope that the iptables was there, as there are a lot of examples that explain what needs altering or added in it to allow various access.

Strange thing is, just before my net connection failed last night, apache did throw up it default page.

Please comment on why i seem to have no iptables file, if it is not there and should have been created during install, and if everyone else has one, then something surely is not right with my httpd install.

User avatar
TrevorH
Forum Moderator
Posts: 22590
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: What is the best apache stack to install on CentOs 6

Postby TrevorH » 2014/03/27 15:06:41

No, /etc/sysconfig/iptables is created by firstboot or by system-config-firewall{-tui} when those are run. I can only assume you didn't install firstboot so it didn't run.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

Greenerpastures
Posts: 11
Joined: 2014/03/25 10:26:59

Re: What is the best apache stack to install on CentOs 6

Postby Greenerpastures » 2014/03/27 17:59:15

Still no luck, iptables does not exist on my server, I could not find it, so I logged in via ssh and tried to start it, I got no confirmation, so I asked about
iptables status, and got the following response, which states firewall is not running.

[root@v01 ~]# service iptables start
[root@v01 ~]# service iptables status
iptables: Firewall is not running.
[root@v01 ~]#

I tried to update iptable as below, and it seems everything is up to date, so I guess iptables is installed, problem is, why wont it start,
and also, why do I not see this file in etc/sysconfig

[root@v01 ~]# ^C
[root@v01 ~]# yum update iptables
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirror.de.leaseweb.net
* extras: mirror.de.leaseweb.net
* updates: mirror.de.leaseweb.net
Setting up Update Process
No Packages marked for Update
[root@v01 ~]#

Please let me know how to overcome this problem.

User avatar
TrevorH
Forum Moderator
Posts: 22590
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: What is the best apache stack to install on CentOs 6

Postby TrevorH » 2014/03/27 19:20:56

yum install system-config-firewall-tui
system-config-firewall-tui

Pick rules, save.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

Greenerpastures
Posts: 11
Joined: 2014/03/25 10:26:59

Re: What is the best apache stack to install on CentOs 6

Postby Greenerpastures » 2014/03/29 00:16:09

Hi, and thanks Trevor_H.

What is the tui at the end of these two instruction signify,
yum install system-config-firewall-tui
system-config-firewall-tui

Ok, I have got iptables to work, the only problem I have is, I can not get phpinfo() to display while iptables is running.
It pops up fine when I stop iptables, Is this normal, is it an iptables related problem at all, I suspect it is, because the page
tries to load for a significant time, before I get the can not connect to remote server.
I really need help with this, and thank all those who have commented so far.
Below is my current firewall settings, maybe someone with experience could spot a problem here, Do I need some outgoing connections set up
and what syntax should I use for them.

Thanks.

Accept If protocol is TCP and destination port is 22
Accept If protocol is TCP and destination port is 10000
Accept If state of connection is ESTABLISHED
Accept If state of connection is RELATED
Accept If protocol is TCP and destination port is 10000
Accept If source is 130.255.72.120/32
Accept If state of connection is RELATED,ESTABLISHED