Popular just now

ad1

Showing posts with label apache. Show all posts
Showing posts with label apache. Show all posts

Webmin installation of Apache and MySQL randomly stop on CentOS

One of the things that I do rarely is creating and configuring a Linux OS and web server for a client. Especially a Virtual Private Server. In the print business most servers are Microsoft Windows machines and I typically find myself doing a lot of these. But a few weeks ago a friend wanted a tester for his new VPS hosting service and I volunteered. But many things that I never encountered before had to be fixed.

CentOS Apache installation not responding

I always forget that in a raw CentOS server install the ip table needs to be configured to allow http calls on port 80 and port 10000 if you want to use Webmin. If you don't do this then the web server will not respond to browser calls because it can't.

Rules created with the iptables command are stored in memory. If the system is restarted before saving the iptables rule set, all rules are lost. For netfilter rules to persist through system reboot, they need to be saved.

# iptables -I INPUT 5 -m tcp -p tcp --dport 80 -j ACCEPT
# iptables -I INPUT 5 -m tcp -p tcp --dport 10000 -j ACCEPT
# sudo service iptables save
# service iptables restart