Fixed liferay config for mysql

Now liferay recognise mysql but still not able to connect.
Fixed also iptables several minor problems
Shouldn't this be gotten from the variables and passed as a variable ?