LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 06-25-2017, 11:02 AM   #1
mds1256
LQ Newbie
 
Registered: Jun 2017
Posts: 2

Rep: Reputation: Disabled
Best flavour of Linux for web server (php and MySQL/MariaDB


Hi

Looking to get a server for a website that will have in the near future many visitors/transactions carried out on it.

I will be using apache, php and MySQL/MariaDB.

What flavour of Linux should I use for stability etc for a web server. I have been recommended CentOS?

I have other questions regarding running a high available server but I will ask these in a different thread.

Thanks in advance
 
Old 06-25-2017, 11:11 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,598

Rep: Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691
Quote:
Originally Posted by mds1256 View Post
Hi

Looking to get a server for a website that will have in the near future many visitors/transactions carried out on it.

I will be using apache, php and MySQL/MariaDB.

What flavour of Linux should I use for stability etc for a web server. I have been recommended CentOS?

I have other questions regarding running a high available server but I will ask these in a different thread.

Thanks in advance
I have used CentOS, RHEL, and Debian (stable) for this. Debian is very different than the other two in many ways, but they all served very well. My co-workers at another site used SUSE and claimed it was just as good. Just go for a long-term-support version of about anything that is a SERVER without all of the DESKTOP/WORKSTATION cruft! You do not need X-Windows chewing up CPU cycles when the point is to serve data and web, nor do you need the vulnerabilities implied by all of those extra packages. Keep it trim, simple, and fast.

If you are running a cluster with load-balancing and rapid fail-over, running thin and fast is even MORE important!
Consider running in containers. Failover at the kernel based container level is faster than at the OS level, and harder to break than at the application level.
 
Old 06-25-2017, 03:05 PM   #3
mds1256
LQ Newbie
 
Registered: Jun 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
I have used CentOS, RHEL, and Debian (stable) for this. Debian is very different than the other two in many ways, but they all served very well. My co-workers at another site used SUSE and claimed it was just as good. Just go for a long-term-support version of about anything that is a SERVER without all of the DESKTOP/WORKSTATION cruft! You do not need X-Windows chewing up CPU cycles when the point is to serve data and web, nor do you need the vulnerabilities implied by all of those extra packages. Keep it trim, simple, and fast.

If you are running a cluster with load-balancing and rapid fail-over, running thin and fast is even MORE important!
Consider running in containers. Failover at the kernel based container level is faster than at the OS level, and harder to break than at the application level.
Thanks, I am just learning Linux and how to create a highly available setup, I have a bit of understanding with Debian/ubuntu so was tempted with using Ubuntu Server, is there anything to watch out for when using Ubuntu over say CentOS?

Also quick question - what method would you recommend on installing apache etc; using the install files from the software websites or to always use the built in repos?
 
Old 06-25-2017, 04:39 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
it shouldn't really matter because you are using Apache; php and MySQL/MariaDB. which works in all Linux/GNU - so I'd just pick one distro I like to use then add all of that to it then off to the races.
 
Old 06-25-2017, 10:34 PM   #5
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,140

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
to not get flamed i'm required to say debian or centos. i personally however would have zero fear of using ubuntu myself. if it's good enough for companies like walmart and tmobile it's good enough for me. also lxd containers is tough to beat. my personal experience with ubuntu over the last couple years has been near perfect, only real problems i've had have been my fault from excessive tinkering.
 
  


Reply



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
LXer: Ubuntu 16.04 LAMP server tutorial with Apache 2.4, PHP 7 and MariaDB (instead of MySQL) LXer Syndicated Linux News 0 05-02-2016 12:00 PM
LXer: Ubuntu 15.04 LAMP server tutorial with Apache 2, PHP 5 and MariaDB (instead of MySQL) LXer Syndicated Linux News 0 08-28-2015 03:53 PM
LXer: Install LEMP Server (nginx, MySQL or MariaDB, PHP) On Ubuntu 13.10 Server LXer Syndicated Linux News 0 10-24-2013 05:40 AM
LXer: Install LAMP Server (Apache, MySQL or MariaDB, PHP) On Ubuntu 13.10 Server LXer Syndicated Linux News 0 10-22-2013 03:50 AM

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

All times are GMT -5. The time now is 10:11 PM.

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