Skip to content

Configuring PHP directives without custom images #1493

Closed

Description

@pompushko

Hello

Is there any way to increase upload max file size (upload_max_filesize) in PHP.INI without creating own image?
Why in in 2k24 by default only 2mb?
Is it possible to use environment variables?

Thank you

Activity

  1. tianon commented on Feb 5, 2024

    @tianon
    Member
  2. pompushko commented on Feb 5, 2024

    @pompushko
    Author

    docker-library/wordpress#879 (comment)

    Thank you , but this way dont works in AWS ECS Fargate

  3. tianon commented on Feb 5, 2024

    @tianon
    Member

    You can't set a custom container command on Fargate? (without that, your only option is going to be to create your own image)

  4. pompushko commented on Feb 6, 2024

    @pompushko
    Author

    You can't set a custom container command on Fargate? (without that, your only option is going to be to create your own image)

    Well... I can login into container, add some data in to php.ini like that:

    echo "upload_max_filesize=256M" >> $PHP_INI_DIR/conf.d/upload.ini
    echo "post_max_size=256M" >> $PHP_INI_DIR/conf.d/postsize.ini
    echo "memory_limit=1024M" >> $PHP_INI_DIR/conf.d/memory.ini
    echo "max_execution_time=120" >> $PHP_INI_DIR/conf.d/execution.ini
    

    But if I will try to restart\reload apache2 - container restart automatically :D

  5. LaurentGoderre commented on Apr 11, 2024

    @LaurentGoderre
    Member

    You can use volume mount to mount those config to the container

  6. locked and limited conversation to collaborators on Sep 16, 2025
  7. converted this issue into a discussion #1618 on Sep 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions