---
updatedAt: 2026-09-23T12:07:34.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/quick-deploy-apps/llms.txt
---

# WordPress

Deploy WordPress, a free and open source content management system (CMS), to build a customized website.

## 1. Deploy WordPress

<div class="aligned">
   <img src="https://techdocs.akamai.com/terraform-images/img/clock.png" alt="" height="25" width="25" />
   <span class="span-header">&nbsp;Estimated deployment time:</span><span>&nbsp;2–5 minutes</span>
</div>

<div><p></p></div>

Configure the required options to deploy your instance. For additional customization, add advanced options.

The table maps the Cloud Manager UI fields to their corresponding API/CLI keys (`stackscript_data`) required for automated deployments.

### Base distribution and plan

* **Supported distribution:** Ubuntu 24.04 LTS
* **Recommended plan:** You can use all plan types and sizes. However, for production websites, use at least a 4GB Dedicated CPU Compute Instance.

### Configuration options

Configure the required options to deploy your instance. For additional customization, add advanced options.

The table maps the Cloud Manager UI fields to their corresponding API/CLI keys (`stackscript_data`) required for automated deployments.

**StackScript ID:** `401697`

<table>
    <thead>
        <tr>
            <th>UI field</th>
            <th>API/CLI key</th>
            <th>Description</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td colspan="3">Required options</td>
        </tr>
        <tr>
            <td><b>Email address (for the Let's Encrypt SSL certificate)</b></td>
            <td><code>soa_email_address</code></td>
            <td>Your email address to use when configuring the WordPress admin user, generating SSL certificates, and optionally creating DNS records for a custom domain.</td>
        </tr>
        <tr>
            <td><b>Webserver stack</b></td>
            <td><code>webserver_stack</code></td>
            <td>A webserver to use for the WordPress deployment, Apache2, or NGINX. Possible values are: <i>LAMP</i> or <i>LEMP</i>.</td>
        </tr>
        <tr>
            <td><b>Website title</b></td>
            <td><code>site_title</code></td>
            <td>A title for your WordPress site.</td>
        </tr>
        <tr>
            <td><b>Wordpress admin username</b></td>
            <td><code>wp_admin_user</code></td>
            <td>A username for your WordPress admin user account.</td>
        </tr>
        <tr>
            <td><b>Wordpress database user</b></td>
            <td><code>wp_db_user</code></td>
            <td>A MariaDB username for the WordPress database user.</td>
        </tr>
        <tr>
            <td><b>Wordpress database name</b></td>
            <td><code>wp_db_name</code></td>
            <td>A name for the WordPress MariaDB database.</td>
        </tr>
        <tr>
            <td><b>Limited sudo user</b></td>
            <td><code>user_name</code></td>
            <td>Your preferred username for the limited sudo user entered without any capital letters, spaces, or special characters.<br /> When adding a limited sudo user, the user is created with a strong generated password for your new Linode instance, and the account is assigned to the <code>sudo</code> group, which provides elevated permissions when running commands with the <code>sudo</code> prefix.
                <blockquote>
                    <b>Note:</b> For easier and more secure access with the sudo user, add an <a href="https://techdocs.akamai.com/cloud-computing/docs/manage-ssh-keys">account SSH key</a> for the Cloud Manager user during deployment and select that user as an <code>authorized_user</code>. Their SSH pubkey will be assigned to both the root and limited user.
                </blockquote>
            </td>
        </tr>
        <tr>
            <td colspan="3">Advanced options</td>
        </tr>
        <tr>
            <td><b>Disable root access over SSH</b></td>
            <td><code>disable_root</code></td>
            <td><i>Applies to a limited sudo user.</i> To block the root user from logging in over SSH, select <i>Yes</i>. Defaults to <i>No</i>. <br />
                <blockquote>
                    <b>Note:</b> When you disable the root user from logging in over SSH and don't provide a valid Account SSH Key assigned to the <code>authorized_user</code>, you can still switch to the root user. To do that, log in as root via the <a href="https://techdocs.akamai.com/cloud-computing/docs/access-your-system-console-using-lish">Lish console</a> and run <code>cat /home/$USERNAME/.credentials</code> to view the generated password for the limited sudo user.
                </blockquote>
            </td>
        </tr>
        <tr>
            <td><b>Linode API token</b></td>
            <td><code>token_password</code></td>
            <td><i>Applies to a custom domain.</i> The Linode API token if you want to use Linode’s <a href="https://techdocs.akamai.com/cloud-computing/docs/dns-manager">DNS Manager</a> to manage DNS records for your custom domain. Follow <a href="https://techdocs.akamai.com/cloud-computing/docs/manage-personal-access-tokens">Manage personal access tokens</a> to get your token on your account with <code>Read/Write</code> access to <code>Domains</code>.
                <ul>
                    <li>If you provide the token along with the subdomain and domain, the installation attempts to create DNS records via the Linode API.</li>
                    <li>If you don't provide the token, you need to manually configure your DNS records through your DNS provider and point them to the IP address of the new instance.</li>
                </ul>
            </td>
        </tr>
        <tr>
            <td><b>Subdomain</b></td>
            <td><code>subdomain</code></td>
            <td><i>Applies to a custom domain.</i> The subdomain you want to use, like <code>blog</code> for <code>blog.example.com</code>. Use it only if you specify a <i>Domain</i>.</td>
        </tr>
        <tr>
            <td><b>Domain</b></td>
            <td><code>domain</code></td>
            <td><i>Applies to a custom domain.</i> The domain name you want to use, like <code>example.com</code>. Use it only if you specify a <i>Linode API token</i>.</td>
        </tr>
        <tr>
            <td><b>Prometheus data exporter</b></td>
            <td><code>prometheus_exporter</code></td>
            <td>An option to include built-in Prometheus endpoints for Node Exporter and MySQL/MariaDB Exporter. See <a href="https://prometheus.io/docs/instrumenting/exporters/">Prometheus exporters</a> for details. Possible values are:
                <ul>
                    <li><i>none</i> (default)</li>
                    <li><i>node_exporter</i></li>
                    <li><i>mysqld_exporter</i></li>
                </ul>
            </td>
        </tr>
    </tbody>
</table>

> **Notes:**
>
> * After the app deployment completes, the passwords for your WordPress admin user, WordPress database user, MariaDB root user, and limited sudo user are generated and stored in the `/home/$USERNAME/.credentials` file. Log in to your instance as `root` through the [Lish console](https://techdocs.akamai.com/cloud-computing/docs/access-your-system-console-using-lish) or [SSH](https://techdocs.akamai.com/cloud-computing/docs/set-up-and-secure-a-compute-instance#connect-to-the-linode), then run `cat /home/$USERNAME/.credentials` to view the password.
> * You can automatically configure a **custom domain** (optional) during deployment. To do that:
>   1. Configure your domain to use Linode’s name servers via your registrar. See [Configure your domain's authoritative name servers](https://techdocs.akamai.com/cloud-computing/docs/configure-your-domains-authoritative-name-servers) for details.
>   2. Once you complete that, specify the Linode API token, subdomain, and domain for the app in Cloud Manager or via API/CLI/Terraform.

### Use API, CLI, or Terraform

In addition to deploying the app to a new Linode instance via Cloud Manager, you can also use the Linode API, CLI, or Terraform. When running the operation, you need to provide the StackScript ID, supported Linux distribution, and [app-specific fields](#configuration-options) along with the standard Linode deployment configurations.

> **Note:** [Generate a personal access token](https://techdocs.akamai.com/linode-api/reference/get-started#personal-access-tokens) to authenticate your [API](https://techdocs.akamai.com/linode-api/reference/api), [CLI](https://techdocs.akamai.com/cloud-computing/docs/cli-1), or [Terraform](https://registry.terraform.io/providers/linode/linode/latest/docs) requests.

```bash API
curl --location 'https://api.linode.com/v4/linode/instances' \
    --header 'Content-Type: application/json' \
    --header 'Accept: application/json' \
    --header 'Authorization: Bearer abc123def456hij789klm' \
    --data-raw '{
        "region": "us-east",
        "type": "g6-standard-2",
        "image": "linode/ubuntu24.04",
        "label": "my-wordpress-one-click-app",
        "root_pass": "@C0mpl3x#P@ssw0rd",
        "stackscript_id": 401697,
        "stackscript_data": {
            "soa_email_address":"jsmith@example.com",
            "webserver_stack":"LAMP",
            "site_title":"My Site",
            "wp_admin_user":"jsmith-admin",
            "wp_db_user":"jsmith-database",
            "wp_db_name":"My Database",
            "user_name":"jsmith"
        }
    }'
```
```bash CLI
linode-cli linodes create \
    --region us-east \
    --type g6-standard-2 \
    --label my-wordpress-one-click-app \
    --image linode/ubuntu24.04 \
    --root_pass @C0mpl3x#P@ssw0rd \
    --stackscript_id 401697 \
    --stackscript_data '{"soa_email_address":"jsmith@example.com", "webserver_stack":"LAMP", "site_title":"My Site", "wp_admin_user":"jsmith-admin", "wp_db_user":"jsmith-database", "wp_db_name":"My Database", "user_name":"jsmith"}'
```
```json Terraform
resource "linode_instance" "my-linode" {
    region         = "us-east"
    type           = "g6-standard-2"
    label          = "my-wordpress-one-click-app"
    image          = "linode/ubuntu24.04"
    root_pass      = "@C0mpl3x#P@ssw0rd"
    stackscript_id = 401697
    stackscript_data = {
        "soa_email_address" = "jsmith@example.com"
        "webserver_stack"   = "LAMP"
        "site_title"        = "My Site"
        "wp_admin_user"     = "jsmith-admin"
        "wp_db_user"        = "jsmith-database"
        "wp_db_name"        = "My Database"
        "user_name"         = "jsmith"
    }
}
```

## 2. Access WordPress

Once you've deployed your app in Cloud Manager and fully installed it, get credentials to access the WordPress Admin Dashboard and start using it.

### Get credentials

1. Log in to your new Linode instance using one of these methods:

   * **Lish console.** Within Cloud Manager, navigate to **Linodes** from the left menu, select the Linode instance you just deployed, and click the **Launch LISH Console** button. Log in as the `root` user. See [Accessing your system console using Lish](https://techdocs.akamai.com/cloud-computing/docs/access-your-system-console-using-lish).
   * **SSH.** Log in to your Linode instance over SSH using the `root` user. See [Connecting to a remote server over SSH](https://www.akamai.com/cloud/guides/connect-to-server-over-ssh/) for details.
2. Once logged in, access the credentials file by running `cat /home/$USERNAME/.credentials`.

   The command displays the file contents, including the passwords generated when the instance was deployed. Once you save these, you can safely delete the file.

### Access dashboard

1. Open your web browser and navigate to `https://[domain]/wp-admin/`, where you can replace *\[domain]* with the custom domain entered during deployment or your Linode instance’s rDNS domain, like  `192-0-2-1.ip.linodeusercontent.com`.

   You can also use your IPv4 address. However, the connection won't be secure. See the [Manage IP addresses on a Linode](https://techdocs.akamai.com/cloud-computing/docs/managing-ip-addresses-on-a-compute-instance) guide for information on viewing IP addresses and rDNS.

   > **Note:** A TLS/SSL certificate is automatically generated for your custom domain, enabling you to connect to the site over the `https` protocol. If you don't enter a custom domain, a TLS/SSL certificate is configured on the rDNS domain instead. Connections using your IP address aren't secured and will use the `http` protocol.

2. Within the WordPress login page, enter the username (*admin username*) created during your instance deployment and the password automatically generated for this username. Then click **Log In**.

3. Once you're logged in to the WordPress Admin Dashboard, create new posts, add users, modify the theme, and adjust any other settings.

### View your website

Open a web browser and navigate to `https://[domain]`, replacing *\[domain]* with the custom domain you entered during deployment or your Linode instance’s IPv4 address or rDNS domain. You should be able to view your WordPress site.

### Manually configure a domain

If you didn't set up a domain during the deployment process, you can add it manually in WordPress. Make sure you have a registered domain.

1. Within the name servers for your domain name, create an [A record](https://www.akamai.com/cloud/guides/dns-overview#a-and-aaaa).

   The *hostname/name* field should be *@* for a bare domain (`example.com`) or should specify the subdomain you want to use, such as *app* for `app.example.com`.

   It’s common to create two A records, one using *@* and one using *www*. The IP address should be the IPv4 address of your new Linode instance. If you don't have a name server, use Linode’s [DNS Manager](https://techdocs.akamai.com/cloud-computing/docs/dns-manager).

2. Update WordPress so that it uses your new domain name. You can do this directly in the WordPress Admin Dashboard.

   1. Log in to the [WordPress Admin Dashboard](#access-dashboard).

   2. Select **Settings** in the sidebar and then select the **General** option from the dropdown menu.

   3. Within the **General Settings** form, update the **WordPress Address (URL)** and **Site Address (URL)** fields with the full domain you assigned to your site, like `http://example.com` or `http://www.example.com`.

   4. Click **Save Changes**.

   > **Note:** You can also add your new domain through the command line. See [Changing The Site URL](https://wordpress.org/support/article/changing-the-site-url/) to learn more.

### Reset your admin password or email

If you need to reset your admin user’s password and you aren’t receiving the password reset request email, you can update the password from the command line.

You can also use this method to update the email address for your admin account without needing an email confirmation.

1. Log in to the Linode instance using [SSH](https://www.akamai.com/cloud/guides/connect-to-server-over-ssh/) or [Lish](https://techdocs.akamai.com/cloud-computing/docs/access-your-system-console-using-lish).
2. Navigate to the `public_html` directory of your WordPress installation with `cd /var/www/example.com/public_html`.
3. Using WP-CLI, update the password or email address, or any other values as needed. See the [WP-CLI wp user update](https://developer.wordpress.org/cli/commands/user/update/) command for details.

   * Update password.

     ```bash
     wp user update jsmith --user_pass="p@ssw0rd" --allow-root
     ```

   * Update email.

     ```bash
     wp user update jsmith --user_email="jsmith@example.com" --allow-root
     ```

## Additional resources

For more information about adding and modifying content in WordPress, see their official documentation.

* [WordPress Documentation:](https://wordpress.org/documentation/) Learn the basic workflows for using WordPress.
* [WordPress Themes:](https://wordpress.org/themes/) A collection of WordPress themes.
* [Migrating WordPress](https://developer.wordpress.org/advanced-administration/upgrade/migrating/): Change the site URL.

> 📘
>
> Note that we can't vouch for the accuracy or timeliness of externally hosted resources.

For more information about the WordPress deployment, see our official documentation.

* [Securing WordPress:](https://www.linode.com/docs/guides/how-to-secure-wordpress/) Advice on securing WordPress through HTTPS, using a secure password, changing the admin username, and more.

# Sibling pages

* [Cloudron](https://techdocs.akamai.com/quick-deploy-apps/docs/cloudron.md)
* [Drupal](https://techdocs.akamai.com/quick-deploy-apps/docs/drupal.md)
* [Grav](https://techdocs.akamai.com/quick-deploy-apps/docs/grav.md)
* [Joomla](https://techdocs.akamai.com/quick-deploy-apps/docs/joomla.md)
* [Joplin](https://techdocs.akamai.com/quick-deploy-apps/docs/joplin.md)
* [LiteSpeed cPanel](https://techdocs.akamai.com/quick-deploy-apps/docs/litespeed-cpanel.md)
* [Moodle](https://techdocs.akamai.com/quick-deploy-apps/docs/moodle.md)
* [OpenLiteSpeed WordPress](https://techdocs.akamai.com/quick-deploy-apps/docs/openlitespeed-wordpress.md)
* [WooCommerce](https://techdocs.akamai.com/quick-deploy-apps/docs/woocommerce.md)