Skip to main content

How to Configure Environment Variables for an Application

You can configure environment variables for an application within the cPanel Application Manager. This allows you to set specific configuration values, such as database credentials or API keys, for your application's runtime environment.

Important: This feature is only available on Hostek plans that include the Application Manager.

Before you begin

You will need:

  • An active cPanel account

  • A registered application within the cPanel Application Manager

Configuring Environment Variables

  1. Log in to your cPanel account.

  2. Locate the Software section and select Application Manager.

  3. Find the application you wish to modify in the list and click the Manage button (or the edit icon) next to it.

  4. Navigate to the Environment Variables section or tab.

  5. Enter the name of the variable in the Key field (e.g., DB_PASSWORD).

  6. Enter the corresponding value in the Value field (e.g., your_secure_password).

  7. Click Add or Save to include the variable in the application's configuration.

Confirm the result

  • The environment variable will appear in the list of active variables for that specific application.

  • The application will now utilize these variables during its execution.

Limitations

Environment variables are specific to the application they are assigned to. Changing a variable for one application will not affect other applications hosted on the same account.

Did this answer your question?