The steps to follow to adjust the basic parameters of a Hosting service that belongs to a Cloud are the following:
Type in the SW Panel search engine the name of the service in which you want to modify the basic parameters and click on it.
In the Dashboard of the hosting service, click on the icon settings of the basic parameters of the service, among the icons of specific functions and configuration of the Hosting.
You will then be able to modify the Nginx Web Server settings and other advanced settings corresponding to the version of the PHP programming engine for your website.
3.1. In the basic Nginx settings, you will find the following settings:
expires ---> Indicates the amount of time that the static data (jpg/cms/doc/pdf,...) of your website will be kept in the browser's cache.
limit_req ---> It establishes the shared memory zone ("zone" parameter) and the maximum size of the requests ("burst" parameter) that arrive at the Hosting service.
limit_req_zone ---> Parameters are defined for a shared memory zone. The zone saves the number of excessive requests. The "rate" variable sets the number of requests that Nginx can handle per second. By default, this is 150 requests per second.
proxy_cache_path ---> Indicates where the cache file is located and other parameters about it. The value of "max_size" defines the maximum size of the cache in bytes.
Once you have defined the values you want, you must click on "Save settings", to confirm the changes.
3.2. In the basic settings of your Hosting service, you can modify settings on the configuration of the PHP programming engine used by the web. To change these parameters, you must click on "Advanced Settings" y "Edit".
Next, you will have access to different PHP variables and values that can influence the behavior of your website.
It should be noted that, in this file, there is the value of pm.max_children, which indicates the maximum number of simultaneous requests that will be served by PHP for each of the connections of the different users connected to your website . By default, this parameter is assigned the number 10, which indicates that each connection of the same user with your website can create a maximum of 10 simultaneous requests to deliver content through the PHP engine of that website.
Once you have configured the value you want to modify among the different advanced settings, you must check the validation box to overwrite the existing configuration file and, finally, save the changes.
It is important to note that there is a modification historys, where are all the configurations that have been saved from the PHP configuration engine. To access it, you must be located in the advanced settings of the basic parameters of the Hosting service and click on Show Modification History, on the right of the PHP file.
You will see that all the different configurations that have been modified on the file are shown. If you hover over the three dots [...], to the right of one of the settings, you will see the following options:
In the first option, "See configuration file", you will be able to review the PHP file, without being able to modify it.
In the second option, "Restore this configuration", you will be able to restore the configuration you are selecting.
To restore it, you just have to write the random word that is requested to confirm the restoration of the configuration file and, finally, click on "Yes, restore now".
In the third and last option, "Comments on configuration", you can add comments on each of the configurations you have. These comments can be very useful if they are used as reminders, since they will not affect the PHP file.