LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-24-2012, 04:25 AM   #1
alvinwong
LQ Newbie
 
Registered: Jul 2009
Location: Hong Kong
Distribution: Ubuntu?
Posts: 15

Rep: Reputation: 0
Looking for suggestions for server distro


Hi, I am actually running a server on Fedora 7 (don't laugh at me... I just don't have ANY time to manage it for 4~5 years as I'm only 17). Due to the long usage time of it I am planning to replace the server and I would like some suggestions on choosing a distro.

My server is currently running:

Apache (http web server with php and MySQL)
vsftpd (ftp for managing web server)
sendmail (for outgoing main)
dovecot (providing POP3 and IMAP service)
It also has a Roundcube webmail.

As the last time I set up the server, I had a very difficult time setting up dovecot and sendmail, so perhaps I will give up POP3/IMAP/webmail and just let sendmail to forward mails to corresponding Gmail accounts, unless setting up mail servers is easier today.


As I had been using Fedora as the server, I am thinking of Fedora (again?)/CentOS/openSUSE.
But for my desktop I am using Ubuntu, is it a good idea to use Debian?

Also I don't want to make big changes to the server too frequently. Shall I choose CentOS because of its long lifetime?

Additional questions:

I would also want to ensure that no emails will be missed during the switchover (lets say if I am really going to change the server). What shall I do?

For the hardware, perhaps I would just find a P4 with 1GB ram to run it (given that the web server has low visits), or do I really need to find a new server with higher spec? My current server is also running like that and it had been quite smooth (except there had been a few crashes recently).

There is also another server running Tomcat on Windows (I don't know why, don't ask me). Will it be a good idea to change it into Linux and is it difficult? How about if I also set up a sendmail server on this machine so in case the other one fails no emails will be lost?

Thanks for helping!
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-24-2012, 04:54 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by alvinwong View Post
I am actually running a server on Fedora 7
You were warned back in 2009 in this thread of yours against doing that.


Quote:
Originally Posted by alvinwong View Post
I just don't have ANY time to manage it for 4~5 years as I'm only 17
That is not a valid excuse: by running deprecated and vulnerable software versions you do us all a disservice if your machine is abused for sending spam or worse.
Linux may be free to use but using it is not free of responsibilities.


Quote:
Originally Posted by alvinwong View Post
Due to the long usage time of it I am planning to replace the server and I would like some suggestions on choosing a distro.
The thread I mentioned also contains (still valid) answers to that question.
 
3 members found this post helpful.
Old 05-24-2012, 05:12 AM   #3
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
I am going to start by saying I agree with unSpawn. If you aren't going to be responsible in running your public server, don't do it at all. Crap like this is why the rest of us have to deal with zombie boxes and get daily activity like this:
Code:
Postfix log summaries for May 23:
   34   rejected (39%)
  RCPT
    Client host rejected: Access denied (total: 2)
           1   1.245.40.134
           1   220.166.97.66
    Helo command rejected: need fully-qualified hostname (total: 7)
           1   27.70.36.148
           1   31.163.98.53
           1   39.45.106.231
           1   95.67.199.217
           1   113.172.178.176
           1   113.172.187.227
           1   190.4.19.197
    Recipient address rejected: Greylisted (total: 2)
           2   <my 'register for this site' email>
    Sender address rejected: Access denied (total: 1)
           1   YBI67KC-X2BUQ-9R0JA-R1C6W8-GYVPW-H-M2-20120523-8b16d5d00993eb641@techtarget.bounce.ed10.net
    blocked using zen.spamhaus.org (total: 22)
           1   1.53.55.120
           1   14.96.194.124
           1   31.169.3.61
           1   58.186.60.198
           1   85.26.241.191
           1   95.105.121.115
           1   mtnl.net.in
           1   109.252.76.23
           1   comcast.net
           1   rima-tde.net
           1   110.139.154.209
           1   112.134.249.132
           1   113.167.229.31
           1   178-45-23-84.saransk.ru
           1   115.78.227.242
           1   117.211.2.72
           1   123.19.166.150
           1   123.22.240.177
           1   182.185.125.243
           1   197.226.222.217
           1   217.113.69.65
           1   223.232.98.248
With regards to your concern about not losing mail, you have a couple of options:
1 - most simply, don't worry about it. Most standards complaint mail systems will defer and hold undeliverable mail for several days, typically up to 60.
2 - Do the following:
A - Declare an MX record in your DNS.
B - Set the TTL values low, such as 1 hour
C - Configure your new server
D - Add an MX record for it, at a higher priority than the old one
E - Configure your old server as a backup MX
F - Now test your new server.

If it receives mail, fine. If there is a problem, mail will be diverted to your old server, which will attempt to forward it to your new server where it will arrive once you get the problems resolved.
 
Old 05-24-2012, 08:01 AM   #4
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
Quote:
Originally Posted by alvinwong View Post
My server is currently running:

Apache (http web server with php and MySQL)
vsftpd (ftp for managing web server)
sendmail (for outgoing main)
dovecot (providing POP3 and IMAP service)
It also has a Roundcube webmail.

As the last time I set up the server, I had a very difficult time setting up dovecot and sendmail,
I would suggest you install postfix instead of sendmail, the configuration is much easier. Dovecot is easy, why would you have problems with it? Give it a go, it's going to be fine.

Quote:
Originally Posted by alvinwong View Post
As I had been using Fedora as the server, I am thinking of Fedora (again?)/CentOS/openSUSE. But for my desktop I am using Ubuntu, is it a good idea to use Debian? Also I don't want to make big changes to the server too frequently. Shall I choose CentOS because of its long lifetime?
If you want to run your server with very infrequent re-installs, you should pick a distro with long support period. Debian is supported for one year after the next version is released. Ubuntu LTS release is supported for 5 years. Centos 6 end of life is November 2020.

It won't be completely maintenance-free (check unSpawn's and others' reactions above). You need to at least

Install security updates - tools like cron-apt can do this automatically for you
Check disk usage - you don't want to run on 100% filled volumes
Check disk for hardware outages - install SMART monitoring software smartmontools to notify you early of dying disk drives

So you should SSH to your server at least every now and then and run

Code:
aptitude update; aptitude upgrade; df -h; smartctl -a /dev/sda
Quote:
Originally Posted by alvinwong View Post
I would also want to ensure that no emails will be missed during the switchover (lets say if I am really going to change the server). What shall I do?
SMTP servers are going to take care of this for you, no need to worry.

Quote:
Originally Posted by alvinwong View Post
For the hardware, perhaps I would just find a P4 with 1GB ram to run it (given that the web server has low visits), or do I really need to find a new server with higher spec? My current server is also running like that and it had been quite smooth (except there had been a few crashes recently).
This should by just fine.

Quote:
Originally Posted by alvinwong View Post
There is also another server running Tomcat on Windows (I don't know why, don't ask me). Will it be a good idea to change it into Linux and is it difficult?
There is no problem at all to run tomcat on linux. 1 GB of RAM will probably not be enough though.

Robert
 
Old 05-24-2012, 11:45 AM   #5
alvinwong
LQ Newbie
 
Registered: Jul 2009
Location: Hong Kong
Distribution: Ubuntu?
Posts: 15

Original Poster
Rep: Reputation: 0
I am really sorry for not upgrading my server for a long time...
I was at school... needed to do lots of homework and exams so very seldom do I have time to do such a big job.
I DO check the server logs from time to time so that I believe that it isn't a zombie yet...
Anyway I am going to upgrade it, so perhaps you can stop blaming all those zombie boxes on me.

So after a few more researches, I have two choices left now: CentOS or Debian.
Will choosing CentOS enables smoother transaction of the server (as I have been using Fedora)? Is the management in both distros quite similar? (other than yum vs apt and rpm vs dpkg)

I've searched a bit in Google, many recommend Debian over CentOS... and one of the links points out that Debian is beating CentOS. I wonder if anyone of you here have the opposite idea.

I really don't know whether to opt for longer support, or to follow the "majority" (I mean Debian).
 
Old 05-24-2012, 12:45 PM   #6
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
I have experience with Centos, Ubuntu, Debian; running a server on all but the Debian, which is a laptop. There isn't a right or wrong answer and in terms of operating a server, I doubt you will see much difference amongst them and any learning curve associated with the differences will be minimal. I personally think both RPM and DEB are adequate, comparably featured, package management systems, at least from a user's standpoint. Both Ubuntu and Centos are what I would consider Enterprise Grade being derived from commercially supported projects. This has the benefit of quickly getting security patches released to the commercial distributions. With regards to Debian, I found the stable version to be too old and outdated for everyday use, but it should be adequate for a server. For everyday use, I switched to Testing, which to me is borderline unstable in terms of the number of package updates (way too many for a server). One difference is that Centos uses SELinux while Ubuntu uses Apparmour for ACL purposes. Both are effective, SELinux is more feature rich, a bit harder to learn initially, but this is offset by good tool support. In terms of protection, I think SELinux has a slight edge.

All things considered, I would give a slight bias to your prior experience and go with Centos.
 
Old 05-25-2012, 03:04 AM   #7
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,469

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by Noway2 View Post
All things considered, I would give a slight bias to your prior experience and go with Centos.
+1, I'm a big fan of CentOS for server usage.
 
Old 05-25-2012, 05:17 AM   #8
nixblog
Member
 
Registered: May 2012
Posts: 426

Rep: Reputation: 53
Quote:
Originally Posted by Noway2 View Post
With regards to Debian, I found the stable version to be too old and outdated for everyday use, but it should be adequate for a server. For everyday use, I switched to Testing, which to me is borderline unstable in terms of the number of package updates (way too many for a server).
I would never run a Debian server on anything but stable. Servers are meant to be solid, stable and reliable so why take a chance with testing/sid. Also, Debian stable normally gets reliable and timely security updates - something that is generally lacking in testing and sid.

Although not Linux, OpenBSD would rank high in my list as would FreeBSD too. At the end of the day, a server is as good as the person configuring it.
 
Old 05-25-2012, 12:30 PM   #9
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Quote:
Originally Posted by nixblog View Post
Although not Linux, OpenBSD would rank high in my list as would FreeBSD too. At the end of the day, a server is as good as the person configuring it.
Your suggestion of BSD reminded me of something. The OP mentioned this being a mail server and OpenBSD has some advantages over Linux in this regard, such as the Spamd package that supports things like tar pits to make life expensive for the spammers.
 
Old 05-26-2012, 05:36 AM   #10
alvinwong
LQ Newbie
 
Registered: Jul 2009
Location: Hong Kong
Distribution: Ubuntu?
Posts: 15

Original Poster
Rep: Reputation: 0
Well, then I need to try both Debian and CentOS to determine...

However I don't seem to be able to find a official Debian download on http://www.debian.org
All links lead to a 404 error... strange.

EDIT: found some workable links

Last edited by alvinwong; 05-26-2012 at 05:41 AM. Reason: update status
 
Old 05-28-2012, 08:20 PM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,349

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
If you are used to Fedora, then Centos should be a snap
 
Old 06-01-2012, 05:29 AM   #12
alvinwong
LQ Newbie
 
Registered: Jul 2009
Location: Hong Kong
Distribution: Ubuntu?
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks, now running CentOS.
Actually my previous experience doesn't really matter, because the last time I did the most configure job is 4~5 years ago. I almost forgot to open the ssh port using `system-config-firewall` before detaching the monitor

I've chosen to reconfigure the mail server from scratch using postfix, and switched from single mbox to maildir. Luckily the emails can be transferred almost seamlessly.

BTW unspawn, thanks for your nice remainder. I will check the logs frequently and run `yum update` every week.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I need distro suggestions for a Moodle server and probably samba cbrei1023 Linux - Newbie 3 12-14-2009 11:55 AM
Distro suggestions for a server? backwoodsman Linux - Server 4 12-03-2008 11:48 PM
Compact NAS server - need distro suggestions boughtonp Linux - Distributions 3 02-26-2007 02:08 PM
Suggestions for a distro for a server tigerwraith Linux - Distributions 20 01-03-2007 05:26 AM
Need your opinion/suggestions on distro, mail server, etc. RiS-fantom Linux - General 2 12-29-2005 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration