Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring PHP directives without custom images #1493

Open
pompushko opened this issue Feb 5, 2024 · 5 comments
Open

Configuring PHP directives without custom images #1493

pompushko opened this issue Feb 5, 2024 · 5 comments

Comments

@pompushko
Copy link

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

@tianon
Copy link
Member

tianon commented Feb 5, 2024

@pompushko
Copy link
Author

docker-library/wordpress#879 (comment)

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

@tianon
Copy link
Member

tianon commented Feb 5, 2024

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

@pompushko
Copy link
Author

pompushko commented Feb 6, 2024

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

@LaurentGoderre
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants