Support 24/7 Service status
Hosting
Email
Discounts
Help
Company
Sign in Support 24/7
Get started

Changing your PHP version and settings

Choose which PHP version your website runs on, switch PHP extensions on or off, and raise limits like upload size and memory, all from DirectAdmin.

Updated 16 November 2026

Most websites, including WordPress, run on PHP. Each new PHP version is faster and more secure, and older ones stop getting security fixes after a few years. You can choose your version yourself, and change it back at any time.

Change the PHP version

  1. Open DirectAdmin from your service page (one-click login).
  2. Go to Extra Features → Select PHP Version.
  3. Choose a version from the list and Set as current.

The change applies straight away to every site on your account. Open your website afterwards and click through a few pages to check it works.

Which version? The newest version your website supports. For WordPress, check Tools → Site Health, which warns you if your PHP is out of date, and update WordPress, your theme and your plugins first, so they're ready for the newer version.

Turn extensions on or off

On the same page, under Extensions, tick the ones your app needs. Most apps list what they need in their installation guide; common ones like mysqli, curl, gd, intl, mbstring and zip are usually on already. Changes save as you tick.

Raise limits (upload size, memory, time)

Choose Options on the same page to change PHP's settings. The ones people change most:

Setting What it does Change it when
upload_max_filesize The largest file you can upload You can't upload a big image, video or plugin
post_max_size The largest form submission Set it a bit larger than upload_max_filesize
memory_limit Memory a single page can use You see "Allowed memory size exhausted"
max_execution_time Seconds a page can run for Imports or backups stop part-way
max_input_vars Fields a form can send Large menus or theme options don't fully save

Your plan's limits still apply, so raising a setting beyond what the plan allows won't help. If your site keeps hitting the limits, see Upgrading, downgrading and changing billing.

Something broke after changing version?

Set the previous version again: it takes effect immediately. Then look for updates to your app, theme or plugins that support the newer version, and try again.

You can also see the exact error. In WordPress, add define('WP_DEBUG', true); to wp-config.php for a moment (and remove it when you're done), or check the error log for your domain in DirectAdmin under System Info & Files → Site Summary / Statistics / Logs.

Not sure which version your app needs? Open a ticket and we'll check for you.

Still stuck?

Open a ticket and a real person will help you, any time of day.

Open a ticket Other ways to reach us

Ready to go live?

Pick a plan in a minute and your site's ready shortly after.

Get started