My first production server. What should i focus on?
Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My first production server. What should i focus on?
Hi.
I have a experience in administration, but I had never implemented installation of real production environment.
Now I have to install server, that will be used in production.
That is dedicated server at datacenter.
This installation has:
centos 6.3
postgresql database
tomcat server and java webapp
mediawiki (and mysql db for it)
Which settings for security, backupping and performance should I set up in these applications?
well I wouldn't have two different databases on one box for one thing, why not share?
We really can't just tell you magically how to configure *EVERYTHING*. Lots of it will be application specific, and we've no idea what this java web app is. If you use packages from the CentOS repository, then each will have reasonable defaults so just go with them outside of anything you know has special requirements.
As for things like backups, there are plenty of guides on how to achieve good backups, we can't start all this stuff from scratch.
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 5432 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
And whether a checklist exists, something like:
Centos
Turn on iptables
Turn on log rotation
turn off root account for ssh
turn on ntpd
2. As acid_kewpie suggested, if you've gone with MySQL, then you presumably don't need postgresql, so remove it.
3. The default install settings for RHEL/Centos are pretty reasonable, but you should probably start by checking (in addition to all of the above) the Security guide in that link in point 1.
The main point is that only you can say what you REALLY need; there's no real shortcut.
Sure, check logrotate is on; maybe install/setup logwatch to automatically screen the logfiles and email you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.