Zoyinc
  • Home
  • Contact
  • Categories
    • CD Archiving
    • GIMP
    • Linux
    • MythTV
    • Open Media Vault
    • Technology
    • VMware
    • WordPress
    • YouTube
  • About


This file exceeds the maximum upload size for this site

By

Tony

,

January 3, 2022

This is related to the WordPress error you may get when trying to upload a file greater than 2MB:

While you can install plugins to get around this I found this did not work for me and I then got the error:

My install of WordPress or more specifically PHP follows the instructions in CentOS 7 + PHP 7.2 + Python 3.6 + Apache 2.4 so in this case I needed to update the php.ini.

My php.ini file was at

/etc/opt/rh/rh-php73/php.ini

Change the “upload_max_filesize” to say 10MB:

; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 10M

Then, since I am using fpm, you need to restart that:

systemctl restart rh-php73-php-fpm.service
Related

Segmentation faults uploading images in WordPress
Download failed.: cURL error 2:
Backup and restore WordPress
TinyMCE Zoyinc buttons WordPress plugin
Recent

  • WordPress style name not visible

    WordPress style name not visible

  • YARPP tweaks

    YARPP tweaks

  • Low voltage LED Christmas lights extension

    Low voltage LED Christmas lights extension

  • Concatenate artist tags using Mp3tag

    Concatenate artist tags using Mp3tag

About Zoyinc

  • Contact Us
  • Zoyinc Disclaimer
  • Google Search Console
  • Privacy Policy
  • Site Statistics
  • Login

Apache Auckland Backup CD CentOS Children Configuration Debian Error ESX ESXi Fedora Firewall Image Install Josh Kids Kodi Linux MariaDB MySQL MythTV Network New Zealand OKD OMV Open Media Vault OpenShift PHP Player Python RAID Red Hat RedHat Rip School Setup SMB SonicWALL Spark tags Trains VLAN VM VMware Weaver Windows WordPress YouTube

Powered by

This site is licensed under a Creative Commons Attribution 4.0 International License.