With RunCloud you have the freedom and flexibility to experiment with editing the configuration files on your server.

A number of configuration files on RunCloud such as NGINX, Apache, OpenLiteSpeed, and PHP settings have been optimized for best performance. However, you can modify these settings or files through the RunCloud dashboard should you wish, but you should be careful not to break them.

If you modify your configuration files, and decide that you’d rather undo those changes, then you can use the Rebuild Web App Config to restore the original system configuration files that are essential for your web application to run.

How Rebuild Web App Config Works

Rebuild Nginx Stack

When used on an Nginx stack, the “Rebuild Web App Config” feature:

  1. Regenerates the Nginx server block configuration file for your web application.
  2. Overwrites the existing configuration file in /etc/nginx/sites-available/.
  3. Restores RunCloud’s default settings for the web application.
  4. Reloads the Nginx service to apply the new configuration.

Note: Any custom configurations or modifications made to the Nginx server block will be lost.

Rebuild OpenLiteSpeed (OLS) Stack

When used on an OLS stack, the “Rebuild Web App Config” feature:

  1. Regenerates the OLS virtual host configuration for your web application.
  2. Updates the virtual host settings in the OLS WebAdmin interface.
  3. Restores RunCloud’s default settings for the web application.
  4. Restarts the OLS service to apply the new configuration.

How to Reset Web Application Config

To use the Rebuild Web App Config feature in RunCloud, follow these steps:

  1. Log in to your RunCloud dashboard and select the server that has the web application that you want to restore.
  2. Click on “Web Application” from the main navigation menu, and then click on the web application that you want to restore.
  1. Click on the “More” button from the sub-navigation menu, and then click on “Rebuild Web App Config“.
  2. Confirm that you want to restore the configuration files for your web application, and then wait for RunCloud to apply the changes.

This will fix or restore any NGINX, Apache, OpenLiteSpeed, or PHP configuration files that were modified or corrupted within your web application.

However, you should note that this feature is not available for all web applications at once, but only for individual ones.

You may find this feature useful if you have experimented or changed some code in your configuration files and encountered an error that prevents your web application from running properly.

Note: You should only change your configuration files through the RunCloud dashboard, not through the SSH terminal, as this may cause unexpected errors or conflicts. You should also back up your configuration files before making any changes, as RunCloud support may be limited if you alter them yourself.