How to Change the PHP Version and Settings in DirectAdmin
Newer PHP versions are faster and more secure. Some older apps may need an earlier version until they are updated.
Good to know Menu names in this guide follow DirectAdmin’s default Evolution skin. If your dashboard uses a different layout (Grid, Sidebar or Refreshed), the same tools exist under the same names — use the search box at the top of DirectAdmin to jump straight to them.
Change the PHP version
Where the option appears depends on how your server is set up:
- Most servers: go to Account Manager › Domain Setup, click your domain, and choose a version from the PHP version selector.
- CloudLinux servers: use Select PHP Version under Extra or Advanced Features.
Save, then reload your website to check it works.
Change PHP settings
Common settings such as memory_limit, upload_max_filesize, post_max_size and max_execution_time can be changed under Account Manager › PHP Settings or the PHP selector’s Options tab, if your plan allows it.
⚠ Test after changing If your site shows errors after a version change, switch back and update your themes, plugins or scripts before trying again.
Frequently asked questions
Which PHP version should I use for WordPress?
Use the newest PHP version that WordPress and all your plugins officially support. Check WordPress.org’s requirements page, as the recommended version changes over time.