DirectAdmin VPS Setup Guide

Install, Configure, and Run a DirectAdmin VPS
directadmin php user defaults account domain

Apply PHP Settings for a Domain in DirectAdmin

Written by
Jeffrey Thomas Baygents
documenting DirectAdmin VPS and self‑managed hosting systems.

Purpose

These are required PHP settings that must be applied individually to each domain added to this server and repeated for each PHP version in use.

They are to be applied before DNS, SSL, and mail configuration.


Scope and Applicability

  • Applies to any domain individually

Prerequisites

  • The domain has already been created in DirectAdmin
  • DirectAdmin is accessible at the Admin level
  • No DNS, SSL, or mail configuration has been started yet on the domain

If system updates are pending, complete them before continuing:


Apply PHP Settings to the Domain

With the desired domain now created, PHP settings can safely be applied.

Follow the canonical procedure here:

These settings define:

  • PHP version selection
  • Resource limits
  • Handlers and execution mode

Do not customize PHP on a per‑domain basis at this stage. Remain focused only on this domain.


Verification

Confirm the following before continuing:

  • PHP settings are applied to the desired domain
  • The settings have been applied to each PHP version for the same domain
  • PHP version and limits are visible and correct
  • No DNS records have been modified
  • No SSL certificates have been issued

If any setting was missed, correct it now before moving forward.


Stop Point

Do not perform any of the following yet:

  • Add or modify DNS records
  • Issue or assign SSL certificates
  • Configure mail services or authentication

Those above listed items, covered elsewhere on this site, depend on these PHP settings as required defaults to be in place first.

Next step:
• For the Account Domain, go to DNS and nameserver prerequisites for the Account Domain.
• For an Additional Domain, go to Configure DNS & Nameservers for an Additional Domain.

Leave the first comment

This site is protected by reCAPTCHA and the Google Google Privacy Policy and Google Terms of Service apply.

© 1996-2026 Jeffrey Thomas Baygents. All rights reserved.