NGINX PHP

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.

CloudJiffy 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 CloudJiffy dashboard and click the New Environment button to access the topology wizard.

 

<img_01>

 

2. On the PHP engine tab, choose NGINX as your application server and configure other parameters as per your requirements and click on create to proceed.

 

<img_02>

 

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

 

<img_04>

 

 

4. You will see the server’s phpinfo data by default.

 

<img_05>

 

The next step will be to deploy your PHP application.

NGINX Configuration

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. Drag your cursor to the NGINX application server and click the appeared Config button.

 

<img_06>

 

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;

 

<img_07>

 

You can set any required value instead of the 50MB used in the example above.

 

Note: Regardless of the setting above, if working via CloudJiffy 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.

 

<img_08>



  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

MongoDB > PHP Connection

PHP Connection to MongoDB MongoDB is a widely used NoSQL database, implemented based on the...

PostgreSQL > PHP Connection

Connection to PostgreSQL for PHP Applications Follow the instruction below to learn how to...

MySQL > PHP Connection

Connection to MySQL/MariaDB for PHP MySQL and MariaDB are highly popular open source...

PHP App Server Configuration

PHP Application Server Configuration To perform the necessary configurations, press the...

PHP Session Clustering

The high availability of your PHP application can be achieved by implementing PHP sessions...

Powered by WHMCompleteSolution