Firewalld and phpmyadmin

Support for security such as Firewalls and securing linux
Post Reply
mrt-mt
Posts: 4
Joined: 2015/02/27 17:42:20

Firewalld and phpmyadmin

Post by mrt-mt » 2015/03/05 21:10:23

I cannot access phpmyadmin when firewalld is on, the page never loads and I do not receive an error. If I turn it off then bam it comes right up. I have tried adding mysql and port 3306 to the public zone but to no avail.

Can someone point me int the right direction. I have spent hours googleing and I still haven't found away around it having to turn it off when I need to access phpmyadmin.

I am really confused as to how to log what Firewalld blocks. It is way too complex for me to figure out but I do not want to abandon firewalld.

I am running Centos 7and Plesk 12.

]# firewall-cmd --list-ports --zone=public
8880/tcp 20/tcp 8447/tcp 21/tcp 3306/tcp 8443/tcp 6000-6100/tcp 20/udp 4558/tcp 21/udp

~]# firewall-cmd --list-service --zone=public
dhcpv6-client ftp http https mysql ssh

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Firewalld and phpmyadmin

Post by gerald_clark » 2015/03/05 23:53:01

You need to take this up with Plesk, as they have hacked up the system and installed their own
controls. Any advice we may give you here will only break it more than it already is.

mrt-mt
Posts: 4
Joined: 2015/02/27 17:42:20

Re: Firewalld and phpmyadmin

Post by mrt-mt » 2015/03/06 00:07:28

I understand your concern. As long as I am only re-configuring the firewall I should be fine. I just noticed that images from WordPress sites tend to either not load or load very slowly when firewalld is on.

Now I am desperate as I have had to turn off the firewall to make the sites happy. Any advice on what to try in regards to the firewall configuration would be appreciated.

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

Re: Firewalld and phpmyadmin

Post by TrevorH » 2015/03/06 01:03:31

You need to ask Plesk. They do things to CentOS that are not shipped by CentOS including rebuilding all the LAMP software stack from source. This replaces the CentOS supplied versions and we have no idea what they have done to 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

mrt-mt
Posts: 4
Joined: 2015/02/27 17:42:20

Re: Firewalld and phpmyadmin

Post by mrt-mt » 2015/03/06 21:12:52

Looks like if I want support with Plesk I will have to buy it. I have posted to the forums over there to see if anyone can help.


In the mean time can anyone help with logging so that I can see what the firewall may be interfering with? If nothing else I need a temporary fix so I can get the firewall back on.

Thanks

mrt-mt
Posts: 4
Joined: 2015/02/27 17:42:20

Re: Firewalld and phpmyadmin

Post by mrt-mt » 2015/03/06 21:19:50

Here is what I have tried.

/etc/sysconfig/firewalld

added

FIREWALLD_ARGS=--debug=10

It still doesn't give me any idea about what it may be blocking.

Please help.

Thanks

Post Reply