Can't change the upload limit on WordPress WordPress

I installed the latest version of WordPress (6.2) on my webserver running AlmaLinux 8.7.

I have updated my php.ini and tried the htaccess method. It is stuck at an upload limit of 2MB.

Any idea what I'm doing wrong?

3 Replies

Did you restart PHP (if using FPM) and/or Apache?

I've restarted apache and rebooted… I haven't specifically restarted PHP… Not sure how to do that.

Are you using phpinfo() in a PHP script to see all the settings? Is that how you know the memory limit is not changed?

What command are you using in php.ini or .htaccess?

Are you sure you are using the right php.ini file. Often there are several of them. (phpinfo() will tell you which is being used.)

Is it possible that Apache virtual host is not set up to read the .htaccess file if using one?

Have you maybe tried a .user.ini file?
https://www.gearhost.com/documentation/how-to-configure-user-ini

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct