I
I
Ilyas Galiev2016-03-01 16:21:32
PHP
Ilyas Galiev, 2016-03-01 16:21:32

How to host two sites with one database without crashes?

There are two sites that use one database and one location folder, because the engine is one for two.
One is the main one, the other is for importing.
The second site is placed on a subdomain and on a separate php socket.
However, all the same, when there is a heavy load on the second site, the main one does not load / crashes.
How to make sure that when loading from the second site, it mostly loads in normal mode?
I can connect to the database through the console, but the sites are not loaded.
When importing hung on Gearman, the sites did not lie.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kaxuc, 2016-03-01
@kaxuc

Well, then look, you need to connect php scripts to mysql database. But your regular hosting may not be able to handle such a load, so I highly recommend starting such a project with a vds server. I personally post here and everything is ok.

S
Sergey, 2016-03-01
@hamnsk

Let's start with what engine are you using?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question