php file upload limit in virtualmin

virtualmin settins for php

upload_max_filesize exceeded in php.ini

I can never find this setting. Everytime I create a wordpress development server I end up having trouble finding it.

There use to be a setting in WordPress itself, and if that is there, you’ll have to update that.

I use Apache and PHP on a linux server which I usually administer via virtualmin/webmin (highly recommended). But it can often take me a moment or two to find exactly where I need to be for some features.

Maximum file upload size is one of those and the setting lies as follows:

Go to virtualmin and select the virtual server you wish to edit.

Scroll down to Services abd select PHP Configuration and then Resource Limits and change as appropriate.

Save and you’re done! There is no need to reload anything.

Windows Update in Virtual Machines


virtualbox
I use virtual box to run a number of virtual machines. Tonight when trying to update a recent install of windows I found the update stalled and kept searching aimlessly doing nothing.

It turns out you need to enable “promiscuous mode (always allow)” on the network adaptor of the virtual device for the update to go through. Enabling a second network adaptor in that mode for the purpose of the update worked. Reverting to the previous setting once updates (and reboots) were complete.

I did make the mistake of turning the initial adaptor back on before doing a reboot and it was in a constant state of “rebooting” but sitting there looking stupid at me. Going back to the virtual machine manager and unplugging the network card allowed the reboot and completion of the update process to continue (obviously Microsoft are still accessing the internet at that stage and without internet direct access this step would not continue).