Installing Virtualmin On Centos 7 with Iptables/Ip6tables Disabled
Finally figured it out.
Still haven’t a clue how the ports are opening etc… with iptables/ip6tables disabled (masked) in Centos 7, but I got it working.
I wasn’t having any luck with opening the Webmin port 10000, so gave up.
Switched Webmin to use another port, first downloaded the “/etc/services” file to find an unused port. The services file lists all named ports, picked one not in the file.
Downloaded the “/etc/webmin/miniserv.conf” file and changed to two instances of
To use the selected port (changed 10000 to another port number), uploaded it back to the server, rebooted and found Webmin wasn’t running: wasn’t running before this, but I get caught up with opening port 10000 so didn’t investigate.
Both of these commands said Webmin had stopped
service webmin status
Took a look at the error file and tracked down the issue to another setting in the “/etc/webmin/miniserv.conf” file.
Changed “ipv6=1” to “ipv6=0” and reuploaded, rebooted…
Also modified the “/etc/sysyconfig/iptables/” file to include the new port number. Basically added a new rule under the port 10000 rule (third line below replacing NEWPORTHERE with the port number 12345):
-A INPUT -p tcp -m tcp --dport 10001 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT
-A INPUT -p tcp -m tcp --dport NEWPORTHERE -j ACCEPT
-A INPUT -p tcp -m tcp --dport 2222 -j ACCEPT
-A INPUT -p tcp -m tcp --dport https -j ACCEPT
Don’t know if the above is important, since iptables/ip6tablesis disabled the file shouldn’t do anything (unless there’s another service managing the firewall).
Uploaded the iptables file, rebooted and Webmin now worked on the new port.
May well be a case I could have skipped pretty much all the above except the “ipv6=1” to “ipv6=0” change. I’d have to change it all back to be sure, think I’ll pass on that one :-) It’s also more secure to put Webmin on a port other than 10000.
Had some issues with the Virtualmin post setup, got this error when setting up the database:
An error occurred starting MySQL :
Redirecting to /bin/systemctl start mariadb.service
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details
Checked the log file and tracked it down to a folder permission problem, this command fixed it:
chown mysql:mysql /var/run/mariadb/
Looks like it’s finally working, not added a domain yet, so won’t be 100% certain until I install a Virtualserver.
Can not believe how long this took to fix, though on the plus side I’m around 100X more experienced at managing servers via a SHH program now :-)
More Comments on Godaddy VPS by SEO Gold Coast Services
How to Open Ports on a Godaddy VPS Server Running Centos 7 OpenVZ
I think the new Godaddy VPS hates me.
Figured out why iptables was throwing out an error on line …
I’m having this issue with a new Centos 7 VPS and looks like it’s to do with the OpenVZ container.
The server starts with all ports except 22 and 80 closed …
More Comments by SEO Gold Coast Services
In my experience there’s very little if any risk in mass unfollowing.
I have Twitter accounts with tens of thousands of followers and tend to mass unfollow on an irregular basis …
I’m glad you asked this question, I’d not realised there was an error in my VPS server setup!
I recently moved to a new VPS server and there was a new …
Most likely Google alone.
Google trusts what they are told via the defamation reports, there doesn’t appear to be any detailed checking on Google’s part!
So if someone makes a credible defamation …
SEO tools like SEOptimer are generally not very good, they are built by programmers who are human and they make mistakes, so I’d take the SEOptimer Usability Device Rendering F …
When you said “I apply most of the tricks talked about in this article” does that mean you are following at least 400 Twitter accounts everyday and unfollowing them all …
This is a Camping World Biloxi SEO test.
The Camping World Biloxi Google search phrase sees around 1,900 searches a month, a number 1 Google listing for Camping World Biloxi would …
Regarding GTmetrix speed testing you have to take into account hosting location when comparing 2 websites targeting different countries.
My SEO Gold site which mostly targets the UK market is hosted …