OJS within Docker - Post Size

Describe the issue or problem
I am running OJS inside docker, using the official images.

When I upload a PDF of 3MB, I get a “wrong file size” message. Accordingly with google, this is an issue regarding max post size, and max upload size.

Steps I took leading up to the issue

I executed bash inside the docker image, and searched for php.ini.

Found this one ONLY: /var/www/html/lib/pkp/lib/vendor/league/commonmark/docker/config/php.ini

Tried to change its contents, adding:

upload_max_filesize = 64M
post_max_size = 64M

But nothing changed.

I also suspect this php.ini is not the right one, but not sure.

What application are you using?
For example, OJS 3.5 latest docker image

Mounted my php.ini in this folder:

     - ./ojs-docker-backend/php.ini:/usr/local/etc/php/conf.d/php.ini

And it works.

It would be nice to have suitable defaults for XXII century :smile:

1 Like

it’s nothing to do with docker.just modify the public_user_dir_size parameter in config.inc.php is ok.

Its not related to that. Mine was: public_user_dir_size = 5000

It’s not related to docker, but to php configuration. But if the docker image is official, it could have a better php.ini for nowadays standards.

This topic was automatically closed after 3 days. New replies are no longer allowed.