Changing your upload limits

From XMission Wiki
Jump to: navigation, search

Changing your upload limits

By default, PHP limits uploads to 2MB. In practical usage, you probably want more than this.

Plesk

Once logged into the Plesk hosting panel, you will want to click on PHP Settings in the control area for your domain.

PleskPHPsettings-1.png


Once here, under Performance Settings, you want to update post_max_size and upload_max_filesize

PleskPHPsettings-4.png


Once the settings are configured to your needs, scroll down and click OK.

Cloud Hosting

On managed cloud servers, PHP settings are configured in the Control Panel. Log into the control pane, and click on the Services tab.

Control-panel-services.png


Expand the Servers section, then click on Edit on the server you would like to configure PHP on.

Control-edit-button.png


On this screen, under Server Settings is a section labelled PHP Settings. Here, click on Add.

Control-php-add-button.png


In the window that appears, first we want to put post_max_size under Key, and the size limit we want to implement under Value. In this example, I'm setting it to 256M.

Control-php-values.png


Click Submit when you're done.

We want to do this one more time, this time putting upload_max_filesize as the Key, but keeping the same value.

Once that is done, PHP should be configured on your server.