← Back to Hosting Management

Configuring PHP Version and Settings

Double Hosting lets you choose which PHP version your account uses and customise PHP settings like memory limit, upload size, and execution time β€” all without editing server config files.

Selecting a PHP Version

In cPanel, go to Software > Select PHP Version (or MultiPHP Manager). Choose the PHP version you need from the dropdown. WordPress 6+ works best with PHP 8.1 or 8.2.

Changing PHP Settings

After selecting a version, click Switch to PHP Options to modify common settings:

  • memory_limit β€” default 256M; increase for memory-intensive plugins
  • upload_max_filesize β€” default 64M; increase to allow larger uploads
  • max_execution_time β€” default 30 seconds; increase for long-running imports
  • post_max_size β€” should be equal to or larger than upload_max_filesize

Setting PHP Version Per Directory

To use a different PHP version in a specific folder, add a .htaccess file to that directory:

AddHandler application/x-httpd-php81 .php

Replace php81 with your desired version (e.g., php82).

Was this article helpful?

On This Page