In my website, users upload files to the server for it to mix audio and redownload it to their device. For any file under 2MB it works just fine, but trying to do anything above 2M causes php error uploading file:1, meaning the file is too large. I looked at the configuration with the phpinfo() function and it says the limit is 2M, the standard even though I changed it multiple ways with no success. I am using Linux RHEL9.
I changed upload_max_filesize to 100M, post_max_size to 100M and when I ran the php -i | grep -i "upload_max_filesize|post_max_size|max_file_uploads" command, those new values were displayed, but after restarting httpd and checking phpinfo, it was still at 2M.
Aside from this, I also modified the .htaccess file with php_value upload_max_filesize 100M and restarted httpd, once again still at 2M.
I also added ini_set("upload_max_filesize" "100M"); and the equivalent for post_max_size but still get 2M.
If it helps, for some reason I also get an "unidentified array key 0" error only when uploading larger files - but that is for a line that connects to my stripe API, but don't have the issue otherwise.