Reduce server response time

January 8, 2016 2.4k views
WordPress VPN Ubuntu

How do I reduce my server response time, its about 1.2 seconds on average. Im using digital ocean with server pilot.

2 Answers


Slow responses for an individual request mean your PHP scripts are slow. You can check how long each script takes to execute by looking at your app's PHP access log located at:


For example, the lines will look like this: - [09/Jan/2016:20:10:58 +0300] "GET /index.php" 200 0 - 15073 32042 0.017 4194304 0.00% 0.00% "/"

In that example, the value 0.017 is the number of seconds PHP spent processing the request. On your server, you'll like see larger times.

If you're using WordPress, the most common cause of slowness is slow plugins. If you're on WordPress, try disabling all plugins, customizations, and using the default theme to see how fast your app is without any 3rd party code.

Also, if the 1.2 seconds isn't the time for the response of a single script but rather how long your browser takes to load all resources from the page, then it may have nothing to do with slow PHP scripts and instead the problem is your site is loading large numbers of large resources (stylesheets, images, etc.) and it's taking the browser a while to load all of these. This can generally be solved by cleaning up the site's HTML and getting rid of unnecessary things included in the page.

I hope that helps.

I was going to post this question. Glad that it is already answered.

Have another answer? Share your knowledge.