Increase File Upload Size in PHP using .htaccess

Sometime you may require to upload larger files on the server and you will notice that you are not allowed to upload files that are more than 2MB. This limitation is placed to conserve the server resources, however you can easily modify this setting to allow upload of larger files.

To make the change, locate the .htaccess file on the server and add the following line to it:

php_value upload_max_filesize 20M
php_value post_max_size 20M

The above lines should allow you to upload files up to 20Mb. You can edit the settings to suit your needs.

As always you can always contact us in case you are facing any issues.

Need php hosting for your wordpress blog? You can see our packages here.

How to activate PHP 5.3

We now support php 5.3 on all of our linux servers. You should be able to add php 5.3 support to your site using any of the following three methods:

• 1. Rename the extensions of your .php files to .php53

• 2. Login to cPanel then click “Apache Handlers” near the bottom of the screen and put the following in the top two boxes:

Handler: application/x-httpd-php53
Extension(s): php

• 3. The easiest way is just to add the following line anywhere in your .htaccess file:

AddHandler application/x-httpd-php53 .php

If you are facing any issues do not hesitate to contact us.