S
S
Sergey2014-10-06 17:53:49
PHP
Sergey, 2014-10-06 17:53:49

What should be the server configuration for small website hosting?

Good afternoon.

Consider a situation in which a VPS from DigitalOcean [2gb, 2cpu, 40gb ssd, 3 tb] acts as a server, VestaCP, the Debian operating system, will be used as a web server. Let's say there are 4 sites with sites that use php and mysql. And here is the actual question: how many simultaneous connections will this configuration withstand (i.e. there will be no problems loading the site)? If there are examples from practice, then please share your experience.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Valentine, 2014-10-06
@vvpoloskin

The most common non-promoted business card site with some kind of wordpress has on average up to 500 (what can we say, if not promoted at all, then up to 100), evenly distributed during the working day (12 hours), visitors per day. This site has 10 pages. Let each page generate up to 30 more requests to statics.
We don’t worry about static at all, for scripts we get a maximum of 500 visitors * 10 pages (they subtracted everything from you) / (12 hours * 60 minutes * 60 seconds) = 0.12 requests per second. This is from the same site. Roughly speaking, from 4 there will be 0.5. Even my old desktop computer from 2010 can cope with such a load) And here is also an SSD)
Well, in general terms, you need to test it, of course.

O
Oleg Burca, 2014-10-08
@Cram

If there are no settings dependent on Apache and if VestaCP can - then use nginx as a web server.
Otherwise, file nginx as a frontend web server (it will serve static and pass processing of php scripts to the apache server). It can also cache php/mysql results.
As an alternative, consider using varnish as a cache server.
I am using Debian7, Virtualmin panel, nginx frontend and apache backend.
On my server, after I added nginx frontend and APC (Alternative PHP Cache) for PHP, memory consumption was halved and the load on the percentage too.

A
Alexander Kubintsev, 2014-10-06
@akubintsev

It is difficult to say, of course, without data on site traffic and their resource intensity. But if we are dealing with popular CMS that are optimally configured (cache + no crooked plugins) and traffic up to 10k uniks per day per site, then I think the mentioned vps can easily cope.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question