Virtualmin subservers not respecting PHP upload_max_filesize limit

3 posts / 0 new
Last post
#1 Tue, 10/09/2018 - 07:39
richpig

Virtualmin subservers not respecting PHP upload_max_filesize limit

I can't find a specific example of this in the forums so I hope it hasn't been covered before but since using Subservers I'm finding the PHP upload_max_filesize limits set against the global PHP configuration are not working, sites always show the default 2M limit.

To answer a couple of quick questions: - PHP configurations all set to 10M (see below) - Apache has been restarted on multiple occasions - PHP script in use is FCGid - Websites have no overriding php.ini files or .htaccess file size restrictions

To explain the scenario a little better...

I have a virtual server e.g. toplevel.com

Then sub-servers (not alias servers) for customer sites for demo and upgrade purposes, e.g. toplevel.com > customersite1.com toplevel.com > customersite2.com

Using Wordpress or Joomla when I want to upload a plugin or file to upgrade there is always a 2M file size limit. Yet on the PHP settings its set to 10M.

This is where I have 10M set:

webmin > others > php configuration Maximum file upload size = 10M Maximum HTTP POST size =10M

Checking the /etc/php.ini file it clearly shows upload_max_filesize = 10M.

Going into the server (toplevel.com) > Services > PHP 7.2 Configuration > Resources Maximum file upload size = 10M Maximum HTTP POST size =10M

Again checking /home/toplevel.com/etc/php7.2/php.ini shows upload_max_filesize = 10M.

To the subserver > Services > PHP 7.2 configuration > Resources Maximum file upload size = 10M Maximum HTTP POST size =10M

And again checking /home/toplevel.com/domains/customersite1.com/etc/php7.2/php.ini shows upload_max_filesize = 10M.

When I go to a different top level site on the same server (not a sub-server) and check the upload file limit, its correctly set at 10M and a file can be uploaded to Wordpress or Joomla correctly, so I can be sure the global setting of 10M is set correctly and working.

But when I open one of the sub-server sites, either Wordpress or Joomla, the upload file limit is always 2M.

Using Joomla as an example, I can check the System Information > PHP settings, it shows its reading the php.ini file from the sub-server domains area e.g. /home/toplevel.com/domains/customersite1.com/etc/php7.2/php.ini

But it shows upload_max_filesize = 2M, not the 10M it states when looking directly at the php.ini file?!

I'm stumped, no clue why its doing this but hopefully its just something stupid I've missed on sub-servers, any help would be greatly appreciated.

Thanks

Fri, 01/11/2019 - 12:42
arretx

October and nobody has answered this problem, which I too am having.

Sat, 11/02/2019 - 05:29
sharifkiberu

I was having this issue. I solved it by accessing the PHP configurations inside Services->PHP 7.2 configuration inside the subserver VirtualMin menu

Topic locked