Best flavour of Linux for web server (php and MySQL/MariaDB
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.