Help changing upload size for WordPress app in TrueNAS Scale

Hello!

So I am currently looking to change the upload limit from 2mb to a higher limit. I am self hosting WordPress in an App, and wanted to know where php.ini is located so I may edit it. There doesn’t seem to be any information about this around, and I am completely lost.

I am VERY new to all of this, and using this mostly as a learning project, so please if you can, explain it like I am 5. I appreciate the help in advance! Thank you!

There is a php.ini setting that limits uploads. Wordpress may have its own setting.

I have seen people mention this file, but when viewing the file structure in shell, I cannot find this file at all. People say that I need to create this file, but I don’t know how to create it inside of Shell, and I can’t explore the applications folder that TrueNAS creates because it locks it down. I think that’s the part I’m stuck on the most right now.

I’ve just done this earlier today"

Sudo mc:

navigate to where the install is - for me I installed it on a drive I called docker containers - and created a subfolder just for wordpress:

then in wordpress find the .htacces

shift select it (changes it to yellow)

then at the top menu you can see file - click it and select the edit option
Screenshot from 2025-01-05 18-58-43

Copy and paste these 2 lines into the .htaccess file

php_value upload_max_filesize 500M
php_value post_max_size 500M

press Ctrl + x, then press y to save, you are good to go, increases WP limit to 500mb

Words can not describe to you, how much you just helped me. THANK YOU SO MUCH!

Very easy to understand, even for a noobie like me. You’re super awesome!!! <3 <3

No problem! I am a complete noobie at this myself, I only discovered the “mc” command yesterday, has been a game changer for me and as chance would have it tried to install wordpress today and encountered that same file size limit as yourself so the steps were pretty fresh for me,

Glad I could he of help.