A
A
argenit2016-01-09 11:47:16
linux
argenit, 2016-01-09 11:47:16

How to properly set up php on ubuntu on VPS?

Tell me, I've hosted my site on a regular shared hosting, but I had to install a wider option and bought the simplest VPS.

Operating System : Ubuntu 12.04 LTS
Memory RAM : 256 MB
SSD : 10000 MB
CPU : 1x2.8 Ghz
Control Panel : ISP Manager

But on a new VPS , although the hoster claims that more resources have been allocated. It takes 4-5 seconds for a response from the server to load a typical Wordpress home page.
And so, in order to at least somehow test, I created two identical php files
on a regular hosting and on a VPS of the same provider.
I used the article from habr
habrahabr.ru/post/124346

One placed on an account with shared hosting.
Completed in
7.4780459403992 9592 94494 seconds
The other one is vps. processor, 256 MB of RAM. and completed in 14.345504999161 9592 94494 seconds
And I went through ssh and tried to run it directly. And I launched two files under root via ssh,
one on python, the other on php
[email protected]:/# python test.py
time: 8.368581
[email protected]:/# php5 test.php
time: 14.113265991211

short code on python 8 sec and on php 14 sec
Why does it work faster on Wirth hosting? The hoster said that my php.ini and Ubuntu were configured incorrectly . But is it? or just the hoster allocated a weak processor.
Who than can) Advise how to set up this php on Ubuntu? And is the hoster deceiving me in resources?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
OnYourLips, 2016-01-09
@argenit

Apache eats memory like crazy. I suggest leaving apache in the 20th century where it belongs and start using nginx.

P
Puma Thailand, 2016-01-09
@opium

You don’t have the most cheap vpska for a hundred rubles, of course, it will be weaker even than shared hosting

V
Vlad Zhivotnev, 2016-01-10
@inkvizitor68sl

There are many more resources allocated per user on shared. Another question is that shared is for that and shared, that resources may not be available at a certain point in time.
running a lamp stack on 256 megabytes is useless. Moreover, with ispmanager - they probably launched everything necessary and unnecessary there. 4ka started working at 768mb ram, 5ka barely moves if it's less than a gigabyte.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question