Maximum upload file size, set by your hosting provider: 2MB

New to the forum? Introduce yourself, chit chat and chew the fat.

Moderator: Lillian.W@AST

Tinarm
Posts: 2
youtube meble na wymiar Warszawa
Joined: Thu Aug 19, 2021 10:25 pm

Maximum upload file size, set by your hosting provider: 2MB

Post by Tinarm »

I am running Wordpress on my nas and it doesn't allow me to add media larger that 2 MB.
I downloaded "Increase Maximum Upload File Size" plugin, and it says

"Important: if you want to upload files larger than 2MB (which is the limit set by your hosting provider) you have to contact your hosting provider. It's NOT POSSIBLE to increase that hosting defined upload limit from a plugin.

Maximum upload file size, set by your hosting provider: 2MB
Maximum upload file size, set by WordPress: 64MB"

And I gúess the hosting service is my Asustor in some way?

What should I do?

Thanks in advance.

ADM version: 3.5.7.RJR1
BIOS version: 1.10
Modell: AS1002T v2
Processor: ARMv7 Processor rev 1 (v7l)
User avatar
Nazar78
Posts: 2002
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore
Contact:

Re: Maximum upload file size, set by your hosting provider: 2MB

Post by Nazar78 »

You'll need to change the limit here: /volume1/.@plugins/AppCentral/php7/etc/php.ini

upload_max_filesize = 2M

Also look at the post_max_size change it to suit your needs.

Then restart php by turning it off then on.
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response
Tinarm
Posts: 2
Joined: Thu Aug 19, 2021 10:25 pm

Re: Maximum upload file size, set by your hosting provider: 2MB

Post by Tinarm »

Thanks Nazar78, you solved my issue.

It was a bit tricky (for me) to find the folder (it is slightly hidden),
but using ssh (shell in a box app) I managed to find the file and edit it using vi.
ov2rey
Posts: 26
Joined: Fri Aug 05, 2016 11:13 am

Re: Maximum upload file size, set by your hosting provider: 2MB

Post by ov2rey »

i am using as6604T and i couldn't find /volume1/.@plugins/AppCentral/php7/etc/php.ini

i am using shell in a box as well.
User avatar
Nazar78
Posts: 2002
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore
Contact:

Re: Maximum upload file size, set by your hosting provider: 2MB

Post by Nazar78 »

ov2rey wrote:i am using as6604T and i couldn't find /volume1/.@plugins/AppCentral/php7/etc/php.ini

i am using shell in a box as well.

Code: Select all

find /volume1/.@plugins/AppCentral -type f -name php.ini
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response
ov2rey
Posts: 26
Joined: Fri Aug 05, 2016 11:13 am

Re: Maximum upload file size, set by your hosting provider: 2MB

Post by ov2rey »

Thank you Nazar78,

I am completely idiot on sh.
i already login user name and password, but i keep getting this problem.

-sh: /volume1/.@plugins/AppCentral: Permission denied

ADM 4.0
User avatar
Nazar78
Posts: 2002
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore
Contact:

Re: Maximum upload file size, set by your hosting provider: 2MB

Post by Nazar78 »

Are you using non admin login? Try login with the admin account which also you can use sudo command for root privileges.
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response
ov2rey
Posts: 26
Joined: Fri Aug 05, 2016 11:13 am

Re: Maximum upload file size, set by your hosting provider: 2MB

Post by ov2rey »

Dear Nazar78,

i did login admin account, but still getting the error.
a.jpg
a.jpg (67.39 KiB) Viewed 4696 times
b.jpg
b.jpg (74.34 KiB) Viewed 4696 times
User avatar
Nazar78
Posts: 2002
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore
Contact:

Re: Maximum upload file size, set by your hosting provider: 2MB

Post by Nazar78 »

ov2rey wrote:
a.jpg
You're missing the beginning "find" command in your screenshot, instead you're trying to execute the path which of course is not possible.

I'm using a different model, also I'm using php-fpm running in chroot but I believe it is the same default path location for Asustor: /volume1/.@plugins/AppCentral/php7/etc/php.ini

Usually directly editing using the absolute path should work provided you know its full path and filename. E.g.

Code: Select all

vi /volume1/.@plugins/AppCentral/php7/etc/php.ini
Take note of the "vi" at the beginning of the command. Do some Googling on how to use the vi editor. There's simpler editor like nano but you'll need to install them.

Or if you're not comfortable editing/navigating in linux, assuming you're using Windows, install WinSCP then "SFTP" into your NAS edit using its internal editor or you can set it to use your favorite editor but take note of the cr/lf between windows/linux. Also take note of the permission/ownership (chmod/chown) when dealing with the folders/files. Finally WinSCP IIRC doesn't show hidden folders/files, those names starting with a period. You can enable them in the settings.
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response
ov2rey
Posts: 26
Joined: Fri Aug 05, 2016 11:13 am

Re: Maximum upload file size, set by your hosting provider: 2MB

Post by ov2rey »

Dear Nazar78,

Great and i will try it tonight!

thank you for your help.
Post Reply

Return to “Meet and Greet”