If you cannot upload a large file, image, or plugin because it exceeds the maximum size, you can raise the PHP upload limit in DirectAdmin. This guide explains which settings control it and how to change them.
As configurações envolvidas #
Two PHP settings work together to control uploads, and both need to be large enough:
- upload_max_filesize: o maior arquivo individual que você pode enviar.
- post_max_size: the total size of a form submission, which must be at least as large as the upload.
It is also worth checking max_execution_time so big uploads have time to finish.
Alteração do limite #
- Faça login no DirectAdmin.
- Abra o Selecione a versão do PHP ou na área de configurações do PHP.
- Increase upload_max_filesize and post_max_size to your desired value.
- Salvar.
If the settings are not shown in the panel, add them to a custom php.ini in your site folder.
Verificação da alteração #
Create a PHP info page, or in WordPress check Mídia > Adicionar novo, which shows the current maximum upload size. Try your upload again once the new limit is active.
Solução de problemas #
- Limite inalterado: confirm you edited the correct PHP version and cleared caching.
- Upload still fails: raise post_max_size and max_execution_time as well.
Precisa de ajuda? #
If a large upload keeps failing, our support team can adjust the limits for you over live chat.