The NGINX PHP stack is HTTP/3 ready with the feature support enabled by default since the 1.16.1 release for PHP 7.2.26, 7.3.13, 7.4.1 versions and above. Herewith, a public IP address is required to bypass the Shared Load Balancer and work directly with the server over HTTP/3.
NGINX is a fast and lightweight HTTP server, which is widely used by developers across the world. It is highly customizable due to the modular structure, which simultaneously allows utilizing just the required functionality, ensuring efficient resource usage.
CirrusGrid PaaS customizes and optimizes NGINX to provide it as a PHP application server fully compatible with the platform functionality. Compared to the Apache PHP, it is more suitable for handling websites with static content, but due to the FastCGI support can process complex scripts as well.
To create NGINX server for PHP application hosting, follow the steps in the detailed instruction below.
1. Log into the CirrusGrid dashboard and click the New Environment button to access the topology wizard.
2. On the PHP engine tab, choose NGINX as your application server and configure other parameters (like cloudlets or environment region) up to your needs.
Click Create to proceed.
3. After creation, click Open in Browser next to the NGINX server:
4. You will see the server’s phpinfo data by default.The next step will be to deploy your PHP application.
While using NGINX as an application server, there are some restrictions on the size of uploaded files to the application. You can make the next configurations to adjust it:
1. Hover over the NGINX application server and click the appeared Config button.
2. Within the opened configuration file manager, locate and adjust the /etc/nginx/nginx.conf file by adding the following string to the http section:client_max_body_size 50m;You can set any required value instead of the 50MB used in the example above.
Note: Regardless of the setting above, if working via CirrusGrid inbuilt file manager, you are limited to the upload size of 150MB (may vary based on the hosting provider settings). To operate larger files, you need to attach public IP and use own manager (for example, you can utilize the FTP add-on).
3. Save the made changes and apply them by clicking the Restart Nodes button.
Learn more about the PHP servers configuration via the appropriate guides:
Powered by BetterDocs
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.