Table of Contents
Cloudways does not offer root access to the servers; however, several other options are provided to manage and tweak server settings as per your requirements using the Cloudways Platform.
How to Manage Your Server Settings
Log in to your Cloudways Platform using your credentials.
From the top menu bar, open Servers.
Next, choose your desired server.
Under Server Management, select Settings & Packages.
Under the Basic tab, you can control the basic settings of the server, such as the following:
Execution Limit — It allows setting the maximum time a request is allowed to run across the stack. The default execution limit is 300 seconds. The recommended value is less than 900 seconds for optimum performance.
Upload Size — Set the maximum allowed size (in MBs) of a request across the stack. The default upload size is 100MB. The recommended value is less than 500MB.
Memory Limit — Set the maximum memory (in MBs) that a PHP request can allocate. The default memory limit is 256MB. The recommended values are suggested below:
1GB RAM server: less than 512MB
2GB RAM server: less than 1024MB
4GB RAM & above server: less than 2048MB
Display Error — Choose whether to display PHP error messages or not. By default, it is set to No.
Error Reporting — Choose which level of errors PHP report.
PHP Timezone — Select a timezone for PHP.
You can update these values as per your requirements and click Save Changes.
For PHP settings per application, use the PHP settings editor.
Advanced Settings feature PHP, MySQL, Nginx, System, and Varnish settings. When you update these settings, don't forget to click Save Changes located at the bottom of the page.
Max Input Variables — Define how many input variables may be accepted (limit is applied to $_GET, $_POST, and $_COOKIE superglobal separately). The default max input variables are 10000. The recommended value is less than 15000.
Max Input Time — Set the maximum time (in seconds) a script can parse input data, like POST and GET. The default max input time is 60 seconds. The recommended value is less than 300 seconds for optimum server performance.
Opcache Memory — Select how much memory will be allocated for OPCache. The default Opcache memory is 64MB. The recommended values are suggested below:
1GB RAM server: less than 256MB
2GB RAM server: less than 512MB
4GB RAM & above server: less than 1024MB
Short Open Tag — It tells PHP whether the short form (<? ?>) of PHP's open tag should be allowed. By default, it is off.
xDebug — Enable or disable xDebug. It helps to debug your PHP applications better. By default, it is disabled.
Zend Guard Loader — Enable or disable Zend Guard support on your server. You can use Zend Guard to protect your application from unlicensed use and reverse engineering. By default, it is disabled.
Availability of xDebug and Zend Guard Loader extensions are subjected to the PHP version running on your server because not all PHP versions support these extensions. Learn more about the PHP Extensions and Modules available with your Cloudways server.
Timezone — Select a timezone for MySQL.
Encoding — Select encoding for MySQL. By default, it is US ASCII.
Max Connections Limit — Define the number of connections MySQL will support. By default, it is 150.
Buffer Pool Size — Select the amount of memory to use to cache tables, indexes, etc.
Lock Wait Timeout — Define the length of time a transaction will wait for a resource before giving up.
Wait Timeout — Define the amount of time that MySQL will wait before killing an idle connection.
Access Application via IP — Enable or disable direct access of default application via server IP address. If direct access to your default web application is enabled, your website will be accessible if the server's IP address is entered into the browser instead of the domain name. On the contrary, if direct access to your default web application is disabled, your website will be inaccessible when the server's IP address is entered instead of the domain name.
Default Application — Select or unselect the default application. If the default application is selected, it is served whenever unknown domain requests are received. If there is no default application set, an error is shown whenever unknown domain requests are received.
Static Cache Expiry — Set Expires and Cache-control response header fields (in minutes). By default, it is set to 525600 minutes which can be adjusted according to your requirement. Setting the value to '0' will disable the cache.
TLS Versions — TLS refers to Transport Layer Security. It is a cryptographic protocol that provides authentication, data integrity, privacy, and end-to-end communications between two devices connected over a network. By default, TLS 1.2 and 1.3 are enabled. You can choose to enable or disable different TLS versions as per your requirement. Disabling TLS 1.3 is not supported.
Locales — Add a new System Locale additional to the default (English_US). To add a new System Locale, select your preferred language from the given dropdown menu.
Cache Lifetime — The time period for which Varnish caches content before being refreshed is called cache lifetime or Time-To-Live (TTL). The default value is set to 4 hours. You can also change Varnish Cache Lifetime as per your requirement.
Finally, click Save Changes to save your settings.
You can also provide us with suggestions about other settings you wish to see in the Cloudways Platform.
Under the Packages tab, you can choose to update the PHP version, Database version, enable/disable Elasticsearch, and install/uninstall Redis and Supervisord. Read more about the base packages deployed on your Cloudways server.
PHP — Your new server is configured to use PHP 7.3 by default. You can upgrade or downgrade to a different version using the Cloudways Platform. You can also check available PHP extensions/modules and the application compatibility with your chosen PHP version.
MySQL — Cloudways stack includes MariaDB 10.1 as a default database of your web application; however, you can upgrade the database version to MariaDB 10.2, MariaDB 10.3, or MariaDB 10.4 as per your requirement. You can not downgrade MariaDB packages.
ElasticSearch — Elasticsearch is an open-source, highly available search engine custom-built for cloud servers, based on the distributed restful API. You can enable and disable ElasticSearch from here. The available versions are ElasticSearch 7.6 and 7.9.
Redis — Redis is used to power up object caching using the Object Cache Pro plugin on your WordPress application. You can enable and disable Redis from here. The available version is Redis 6.2. Installing Redis will also install the Object Cache Pro plugin on your WordPress applications.
Supervisord — Supervisord is a simple, fast worker manager designed to monitor and control the processes, allowing you to defer the processing of a time-consuming task to speed up the web requests to your application. You can enable and disable Supervisord from here.
That's it! We hope this article was helpful. If you need any help, then feel free to search your query on Cloudways Support Center or contact us via chat (Need a Hand > Send us a Message). Alternatively, you can also create a support ticket.