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.

Note: This template uses a modern systemd initialization daemon.

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.

New Environment

Step 2. On the PHP engine tab, select NGINX as your application server and adjust other settings, such as cloudlets or region, as needed.

Select Application Server

Click “Create” to continue.

Step 3. Once created, click “Open in Browser” next to the NGINX server.

Open in Browser

Step 4. By default, you’ll see the server’s phpinfo data.

PHP Version Info

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.”

Config file

Step 2. In the config file manager, find and edit /etc/nginx/nginx.conf by adding:

client_max_body_size 50m;

You can use any size you need, not just the example 50MB.

Nginx Settings

Note: When using the built-in file manager, the upload limit is 100MB (might vary). For larger files, use a public IP and your own manager like FTP.

Step 3. Save and apply changes by clicking “Restart Nodes.”

Restart Node