How to Update Your PHP Version in DirectAdmin

Updating your PHP version is important for security, performance, and compatibility with modern applications like WordPress, Laravel, or eCommerce platforms. DirectAdmin makes the process simple, especially when multiple PHP versions are already installed on your server.

Step 1: Log in to DirectAdmin

Use your hosting login details to access your DirectAdmin dashboard.

Step 2: Go to “Domain Setup”

  1. From the main menu, click “Account Manager.”

  2. Select “PHP Settings.”

  3. Choose the domain you want to update PHP for.

Step 3: Click on “PHP Version Selector”

Inside your selected domain settings, look for:

PHP Version Selector
(or
Select PHP Version, depending on your hosting setup)

This is where you choose the version your website runs on.

Step 4: Choose Your Preferred PHP Version

You will see a dropdown with available versions, such as:

  • PHP 7.4

  • PHP 8.0

  • PHP 8.1

  • PHP 8.2

  • PHP 8.3

Always choose a stable, supported version (e.g., PHP 8.1 or 8.2).

Select your preferred version and click:

Save or Set as Current

Step 5: Confirm the Update

Give it a few seconds.
DirectAdmin will switch your website to the new version immediately.

To confirm:

  1. Go back to your dashboard.

  2. Check PHP Info under the Extra Features section.

  3. Your new PHP version should now appear at the top.

Optional: Update PHP Extensions (for some hosts)

If your hosting provides CloudLinux PHP Selector:

  1. Go to Extra Features Select PHP Version

  2. Enable or disable modules like:

    • mbstring

    • mysqli

    • zip

    • cURL

    • intl

  3. Save changes.

This is useful for WordPress, Laravel, or CMS-based websites.

Important Notes

  • Some outdated scripts may break when you upgrade—test your website after updating.

  • Always back up your site before upgrading your PHP version.

  • If the selector is missing, your hosting provider must enable multi-PHP support.

Summary

To update your PHP version in DirectAdmin:

  1. Log in to DirectAdmin

  2. Go to Account Manager → Domain Setup

  3. Select your domain

  4. Click PHP Version Selector

  5. Choose your preferred PHP version

  6. Save and confirm

Quick, safe, and essential for a healthy website.