{"id":29845,"date":"2021-01-17T17:26:21","date_gmt":"2021-01-17T09:26:21","guid":{"rendered":"https:\/\/web.mwwsb.com.my\/pjci\/?post_type=kb&p=29845"},"modified":"2022-09-08T21:26:01","modified_gmt":"2022-09-08T13:26:01","slug":"php-version-nginx-in-wordpress-hosting","status":"publish","type":"kb","link":"https:\/\/www.casbay.com\/guide\/kb\/php-version-nginx-in-wordpress-hosting","title":{"rendered":"PHP Version + NGINX in WordPress Hosting"},"content":{"rendered":"\t\t
You MUST remember to choose NGINX as the web server instead of Apache whenever you change the Apache version to support your website. Please select FPM application served by nginx.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\tNGINX, pronounced as \u201cengine-ex,\u201d is a famous open-source web server software. In its initial release, it functioned for HTTP web serving. Today, however, it also serves as a reverse proxy, HTTP load balancer, and email proxy for IMAP, POP3, and SMTP.<\/p>
It got its official release in October 2004. The creator of the software, Igor Sysoev, started his project in 2002 as an attempt to answer the C10k problem<\/a>. C10k is the challenge of managing ten thousand connections at the same time. Today, there are even more connections that web servers have to handle. For that reason, it offers an event-driven and asynchronous architecture. This feature makes NGINX one of the most reliable servers for speed and scalability.<\/p> Due to its superb ability to handle a lot of connections and speed, many high-traffic websites have been using its service. Some of these online giants are Google, Netflix, Adobe, Cloudflare, WordPress.com, and many more.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t First of all, let\u2019s take a look at how a web server works. When someone makes a request to open a webpage, the browser contacts the server of that website. Then, the server looks for the requested files for the page and sends them to the browser. This is only the simplest kind of request.<\/p> The example above is also considered as a single thread. Traditional web servers create a single thread for every request, but NGINX does not work that way. As stated before, it performs with an asynchronous, event-driven architecture. It means that similar threads are managed under one worker process, and each worker process contains smaller units called worker connections. This whole unit is then responsible for handling request threads. Worker connections deliver the requests to a worker process, which will also send it to the master process. Finally, the master process provides the result of those requests.<\/p> That may sound simple, but one worker connection can take care of up to 1024 similar requests. Because of that, it can process thousands of requests without any difficulties. This is also the reason why it became excellent for busy websites like e-commerce, search engines, and cloud storage.<\/p> Before reading further think about the most innovative hosting structure that you might need for your website. Casbay is offering shared hosting<\/a>, VPS<\/a>, and dedicated server hosting<\/a> for small and ready-to-grow big websites.<\/p><\/div>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\tHow does NGINX work?<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t