How to Install WordPress in DirectAdmin With WordPress Manager

Install WordPress from DirectAdmin's built-in WordPress Manager, get SSL and PHP right first, then use it for updates, password resets, staging and clones.

Published
Reading time
4 min

DirectAdmin ships its own WordPress installer, so you do not need Installatron or Softaculous to put a site up. WordPress Manager creates the database, downloads the current release, writes wp-config.php and gives you an admin login in under a minute. This post walks through a clean install on a DirectAdmin 1.709 server and the two things worth doing before you click Install.

Before you install: SSL and PHP

Do the certificate first. WordPress stores its own URL in the database, and a site installed over http:// and switched to https:// later needs a search-and-replace. Open User Level → Account Manager → SSL Certificates for the domain, issue a free Let's Encrypt certificate, and tick the option that forces HTTPS. If the domain's DNS is not pointing at the server yet, issuance fails; the details are in free Let's Encrypt SSL in DirectAdmin.

Then check the PHP version. Account Manager → Domain Setup → the domain shows a PHP version selector when the server has more than one CustomBuild slot. WordPress today runs best on 8.3 or 8.4; 8.5 is available in CustomBuild but some plugins have not caught up, so leave it for staging. How the slots are set up is covered in changing the PHP version in DirectAdmin.

Install

Go to User Level → Advanced Features → WordPress Manager (the Evolution sidebar also shows it as WordPress). Click Install and fill in the form:

  • Domain and path. Pick the domain and leave the path empty for the site root, or enter blog to install in /home/<user>/domains/example.com/public_html/blog.
  • Site title, admin username, password, email. Do not use admin as the username; brute-force scripts try it first.
  • Database. WordPress Manager creates one for you, named <user>_<something> with a matching database user. You can pick an existing empty database instead.

Press Install. The manager downloads the current WordPress release, creates the database and the config file, and lists the site with a Login button that opens wp-admin without you typing the password. Log in once, set permalinks under Settings → Permalinks, and delete the sample post.

Where the files are

The site lives under the domain's public_html, owned by the DirectAdmin user, and wp-config.php holds the database name and password the manager generated. If you later need the credentials, open the file through the File Manager rather than resetting the database password: resetting it in MySQL Management breaks the site until you edit the config to match.

What the manager does after install

The list of installed sites on the WordPress Manager page is the ongoing tool. Each site has a row of actions:

Update applies core updates. Plugin and theme updates still happen inside wp-admin, so treat this as a safety net, not a replacement for logging in.

Change password resets the admin user's password directly in the database. This is the fix when a customer has locked themselves out and the password-reset email never arrives.

Staging copies the site to a subdomain or subdirectory, database included, so you can test a theme update or a PHP version change without touching the live site. The copy is a separate WordPress install with its own URL written correctly, which is the part people get wrong when they copy files by hand.

Clone does the same copy but to another domain on the account, for spinning up a second site from a configured base.

Nothing here touches the live site's files until you tell it to, so a staging copy you abandon costs only disk space. Delete it from the same list when you are done.

WordPress pretty permalinks depend on a rewrite rule. On the default Apache setup and on nginx_apache (nginx in front of Apache), the .htaccess file WordPress writes is honoured and permalinks just work.

On a server switched to pure nginx or OpenLiteSpeed, .htaccess is ignored. OpenLiteSpeed reads most Apache rewrite rules on its own, so WordPress usually works unchanged. Pure nginx depends on DirectAdmin's virtual host template; if pages other than the front page return 404, the administrator adds the rewrite for that domain under Admin Level → Server Manager → Custom HTTPD Configurations. Which stack you are on, and why, is in switching DirectAdmin to Nginx or OpenLiteSpeed.

WordPress Manager or Installatron?

The built-in manager covers install, update, password, staging and clone, which is what most sites need. Installatron and Softaculous add scheduled backups of the WordPress install, one-click restore to a previous version, and hundreds of other applications. If the server already runs one of them, use it consistently rather than mixing: a site installed through Installatron is not listed in WordPress Manager and vice versa. If you only need WordPress, the built-in tool has one fewer licence and one fewer thing to update.

If the WordPress Manager menu is missing at User Level, the server administrator has disabled it; ask them, or install through Installatron if that is what they provide instead.

After the install

Two things before you hand the site over. Run through the WordPress security hardening checklist, and if the site will have any traffic, set up a Redis object cache as in setting up a Redis object cache. Both take ten minutes and save a support ticket later. On a VPSPioneer managed VPS running DirectAdmin we keep WordPress Manager and CustomBuild updated as part of the service.

#directadmin#wordpress#wordpress-manager#installation

Keep reading

More from DirectAdmin

All guides

DirectAdmin

One Panel for Every Client Site: Managing 50 Websites with DirectAdmin

A working structure for 50 client sites on a DirectAdmin reseller account: one user per client, packages, login-as, PHP, SSL, backups and heavy accounts.

6 min read →

DirectAdmin

How to Install DirectAdmin 1.709 on AlmaLinux 9

Install DirectAdmin on a clean AlmaLinux 9 server: hostname and IP requirements, the setup.sh command with your licence key, and the first login on port 2222.

4 min read →

DirectAdmin

How to Create a MySQL Database in DirectAdmin and Use phpMyAdmin

Create a database and user in DirectAdmin's MySQL Management, allow remote hosts, open phpMyAdmin, import and export dumps, and find the root credentials.

4 min read →