There is a virtual server at Scaleway (4 x86 64bit Cores, 4GB Memory, 100GB SSD Disk), where on Ubuntu 14.04 there is an Apache + PHP + MySQL bundle, which has about a dozen sites with a total attendance of about 1000 hosts per day (MaxSite CMS and WordPress engines ).

Recently I started learning Ruby on Rails and it became necessary to switch from a local machine to a server in order to post something online. Attendance, of course, will be almost zero - I and a few others.

However, I am not sure that RoR and Apache + PHP + MySQL can be installed in parallel, both in terms of performance and in terms of security.

Is it possible to install all this on one virtual server, or is it better to take a new one under RoR?

Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants sanmai , Alexey Shimansky , D-side , cheops , Cheg 9 Sep '17 at 11:15 .

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • A lot of variables. Formally, the answer is “yes, they can be made to live together without problems”, but there are issues of server load, common resources for applications (MySQL server?), Trust for all parties in terms of security and, finally, your experience with server administration. As a result, the full answer will be released ... a little kilometer. - D-side
  • I already realized that a separate server for RoR is better, since I do not have serious skills in the field of administration. - Vitaliy Tretyakov

1 answer 1

Under another language, in any case, it would be better to take another virtual server, but this is a conditional “better”, it does not mean that it is impossible to keep several languages ​​at once on one virtual server. If your server is coping with this load, then there will be no problems from the new module as a language interpreter and its framework, especially since you only have one site on this technology and it will not have attendance. But in any case, it is difficult for us to assess the situation, it is better to add data on the virtual server load , in the most peak period, in your opinion

PS for my practice, I had to combine 3 languages ​​on one server, PHP, JS (Node), and C ++.