System Admins: Here is How to Determine How Many PHP Workers You Need

In this article: 

Businessmen are watching the company’s shares in the office.

In many ways, a PHP worker plays a significant role in how fast your website is for your visitors. Simply put, the role of PHP workers is to process the PHP code developed in any WordPress website and they only work on uncached requests. The type of website you have makes a big difference in the number of PHP workers you need. This article explains the differences in the different types of websites, what happens if you don’t have enough PHP workers and how to help you determine the right number for your website.

If you are in search of a new home for your WordPress site, look no further than InMotion Hosting! Our WordPress Hosting solutions provide secure, optimized environments for your website!

The Type of Website Makes A Difference

If you aren’t sure what type of website you have to help you determine your PHP worker limit, here are the two basic types to help you out:

  • Static Websites. Examples of this type of website include informational websites or small business websites. The content on these websites doesn’t change much and most responses are cached.
  • Dynamic Websites. Examples of this type of website include eCommerce websites or forum-based websites. These websites typically have a much higher volume of traffic and will be much more demanding with uncached responses. The PHP worker limit for dynamic websites needs to be much higher to ensure speed and performance.

What Happens if You Don’t Have Enough PHP Workers?

Determining the right amount of PHP workers is important to prevent performance issues. When you reach your PHP worker limit, they will start building up in a queue and eventually begin moving out the oldest requests. The result for users could be the dreaded 504 errors, 502 bad gateway errors or other incomplete requests. Often times there will be slow uncached requests that delay processing, but this problem is solved easily by increasing the number of PHP workers.

WordPress Hosting Plans Help Determine The Right Number of PHP Workers

One of the most important factors to consider when determining how many PHP workers you need is how much dynamic content you have. Also consider estimating how many simultaneous visits you expect at any given time, as well as how many websites you need to operate. WordPress hosting plans typically have different tiers that include various numbers of PHP workers. When you work with a hosting company, they can help you determine the appropriate number needed based on your website and needs.
Responsive websites are much more attractive and will give you a better chance of retaining customers. Now that you’re a PHP expert, you know how important it is to choose the correct number of PHP workers and how it relates to your website’s performance. If you have any specific questions or would like to discuss our WordPress hosting plans, contact InMotion Hosting today.

Was this article helpful? Let us know!