How to Change PHP Settings in DirectAdmin?

31 Aug, 2023

Some of your applications, plugins, and themes would need specific PHP values for them to run.

Rovity offers PHP versions from 4.4 to 8.0. So, you can take advantage of the latest and greatest performance and security enhancements while keeping your old PHP applications compatible.

At Rovity, we offer domain-level PHP settings that affect only a specific domain within your hosting account.

That means you can enable PHP 7.4 to one of your websites compatible with the latest PHP version. Other domains can keep using old versions like PHP 7.3.

These settings are independent of each other.

To change PHP versions, modify PHP values, install or uninstall any PHP extensions, you need to log in to your DirectAdmin account.

How to Change the PHP Version?

To change your current PHP versions, log in to your DirectAdmin account.

Select PHP version in DirectAdmin

Now click on the Select PHP version icon under the Extra Features section.

Select the PHP version page that would open now.

DirectAdmin Native PHP Warning

If your current PHP version is set as native, then you may see a warning.

DirectAdmin Change PHP Version

Click on the dropdown arrow, and you can see a list of available PHP versions.

Select your preferred PHP versions from this list.

DirectAdmin PHP Version Set as Current

Make sure you click on the Set as current to save the changes.

How to Install or Uninstall a PHP Extension?

From the same Select PHP version page, you can see a list of PHP extensions.

DirectAdmin PHP Extensions List

Those checked PHP Extensions are already installed PHP Extensions.

If you need to install an extension, you only need to select the extension.

You can remove any activated extension by unchecking the checkbox.

Directadmin PHP Reset to Default Button

Clicking on the Reset to default button will reset the installed extensions to the system default.

The Options tab will give you a page where you can manage PHP parameters like max_execution_time, memory_limit, post_max_size, etc.

The changes get saved instantly and reflect in your domains.

Was it easy to change PHP settings in DirectAdmin? Let us know your thoughts in the comments below.

Jafar Muhammed

Jafar Muhammed has 10+ years of experience in WordPress, web hosting, domain names, DNS, CDN, server administration, etc. He is an open web advocate. He is the CEO of Rovity, the fastest-growing premium shared hosting startup in India.

Related Posts

Check Out These

We just wanted to let you know that you might find the following related posts interesting. If so, keep reading 😉