NGINX PHP
NGINX is a quick and light web server used worldwide by developers. Its modular structure lets you customize it easily, using only what you need, which saves resources.
The platform tailors NGINX to work well as a PHP application server that is fully compatible with the platform’s features. It’s better suited for static content websites than Apache PHP, but it can handle complex scripts too, thanks to FastCGI support.
Follow the steps below to create an NGINX server for hosting PHP applications.
Step 1. Sign in to the AccuWeb.Cloud dashboard and click the “New Environment” button to open the setup wizard.
Step 2. On the PHP engine tab, select NGINX as your application server and adjust other settings, such as cloudlets or region, as needed.
Click “Create” to continue.
Step 3. Once created, click “Open in Browser” next to the NGINX server.
Step 4. By default, you’ll see the server’s phpinfo data.
The next move is to deploy your PHP application.
NGINX Settings
When using NGINX as your app server, there are limits on uploaded file sizes. You can adjust this:
Step 1. Hover over the NGINX app server and click “Config.”
Step 2. In the config file manager, find and edit /etc/nginx/nginx.conf by adding:
You can use any size you need, not just the example 50MB.
Step 3. Save and apply changes by clicking “Restart Nodes.”