For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /directadmin/php_configuration/how_to_change_php_memory_limit_cloudlinux_directadmin.md.

How to Change Max Post Size and Max Upload Size in DirectAdmin

Info

If you are using the Standard theme on DirectAdmin, switch to the Refreshed theme as shown in How to change theme or layout on DirectAdmin.

In the Refreshed Theme

Log in to DirectAdmin

Log in to the DirectAdmin Web Control Panel.

Open the Menu

Select Menu in the left sidebar.

Menu in the left sidebar

Open Select PHP Version

Select Extra Features, then Select PHP Version.

Select PHP Version under Extra Features

Open the PHP options

Select the PHP options and scroll down to find the settings.

PHP options

Change the limits

Find upload_max_filesize and post_max_size and set them to the values you need, according to your usage.

upload_max_filesize and post_max_size settings

Updated values

In the Standard Theme

Click here to show the steps

Log in to DirectAdmin

Log in to the DirectAdmin Web Control Panel.

DirectAdmin login

Connect as a user

Connect to your DirectAdmin account as a user.

User level view

Open Select PHP Version

In the User area, navigate to Extra Features, then Select PHP Version.

Select PHP Version under Extra Features

Open the PHP options

Select the PHP options and scroll down to find the settings.

PHP options

Change the limits

Find upload_max_filesize and post_max_size and set them to the values you need.

upload_max_filesize and post_max_size settings

Updated values