How do I set the PHP version of my web hosting package?
Every web hosting package has a PHP Selector, which you use to choose the PHP version and adjust the PHP extensions and settings. You need it when your website or a plugin requires a different PHP version or setting. You find the PHP Selector in DirectAdmin under the name Select PHP version. The version you choose applies to your whole package.
Before you start
- You need the login details of the website's DirectAdmin account.
- DirectAdmin is in English by default, so the menus and buttons in this article are named as you see them on screen. If your DirectAdmin is set to Dutch, DirectAdmin may show the Dutch names, such as Extra Programma's instead of Extra Features, Accountbeheer instead of Account Manager and PHP Instellingen instead of PHP Settings. Select PHP version and everything in it have the same names in both languages.
Choose the PHP version
Log in to DirectAdmin
Open Select PHP version
Under Extra Features, click Select PHP version. The PHP Selector page opens.
Choose the PHP version
Under PHP version, click the current version, marked (current), and choose the version you want.
Save your choice
Click Set as current.
Turn extensions on or off if needed
On the Extensions tab, you turn PHP extensions on or off. Reset PHP Extensions to default sets them back to the default.
Change PHP settings
Log in to DirectAdmin
Open Select PHP version
Under Extra Features, click Select PHP version.
Open the Options tab
This shows the PHP settings, such as
memory_limitandupload_max_filesize.Change the value
Click the setting's value and choose the new value. It is saved straight away.
Not working?
- Under Account Manager there is also PHP Settings. You do not choose a PHP version there; it is only a list of your own settings that take precedence. So choose the version in Select PHP version.
- Not sure which version or settings suit your website best? Contact us (in Dutch).
Related articles
Thank you for your feedback.

