Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

312
Views
Wordpress Docker Image, PHP Fatal error: Out of memory

I m getting above error while i upload the image in the form which is more than 2MB.

My Docker file

FROM amd64/wordpress:latest

COPY . /var/www/html
COPY /config-staging /var/www/html
COPY php.ini /usr/local/etc/php
COPY php.ini /usr/local/etc/php/conf.d
COPY uploads.ini /usr/local/etc/php/conf.d
COPY wordpress.ini /usr/local/etc/php/conf.d
COPY custom-php.ini /usr/local/etc/php/conf.d
COPY custom.ini /usr/local/etc/php/conf.d
COPY .user.ini /usr/local/etc/php/conf.d
RUN chown -R nobody:nogroup /tmp
RUN chown -R www-data:www-data /var/www/html
ENV PORT 80

EXPOSE 80

My INI file for all experiments

file_uploads = On
display_errors = Off
max_execution_time = 30
max_input_time = 60
max_input_vars = 1000
memory_limit = 512M
post_max_size = 512M
session.gc_maxlifetime = 1440
session.save_path = "/tmp"
upload_max_filesize = 512M
zlib.output_compression = Off

enter image description here

Solutions already tried

  • Added in .htaccess -> php_value upload_max_filesize 512M and php_value memory_limit 512M
  • Added in wp.config.php -> define('WP_MEMORY_LIMIT', '512M');
over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!