> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.ex2.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to change the upload limit of a Wordpress Website ?

By default, the WordPress [CMS](https://help.ex2.com/en/article/what-is-a-content-management-system-or-cms-1c48kdh/?bust=1784052067814) sets a limit to the file size that can be uploaded to a site. This limit applies to media files, themes, plugins and everything else. In many cases, this limit is lower than your accommodation plan. You can therefore increase it to take full advantage of your Ex2 accommodation.

## Steps to change the upload limit for a WordPress site via cPanel

1. [Log in to your cPanel](https://help.ex2.com/en/article/comment-me-connecter-a-mon-compte-cpanel-pqz10p/?bust=1676032517306).

2. In the Files section, click the **File Manager** icon.

![](https://storage.crisp.chat/users/helpdesk/website/52421894134f0400/functionedit1_1xbvw6m.jpg)

3. Go to public_html/wp-content/themes/thename/ . Of course, you must replace the _Theme_Name with the name of your current WordPress theme.

4. In this directory, find the file named **functions.php**.

![](https://storage.crisp.chat/users/helpdesk/website/52421894134f0400/functionedit2_oepw18.jpg)

5. Right-click the file name to open a drop-down menu. From there, select the **Edit** option. 

![](https://storage.crisp.chat/users/helpdesk/website/52421894134f0400/functionedit3_epiql.jpg)
 
6. A warning window will pop up for you to save. Click the **Edit** button to proceed to the next step. 

![](https://storage.crisp.chat/users/helpdesk/website/52421894134f0400/functionedit5_119yz8r.jpg)

7. Add the following lines of code at the bottom of the file and save the changes:

```
@ini_set( 'upload_max_size' , '128M');
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300');
```

8. Click the **Save Changes** button at the top right of your screen to save the changes to the file.


![](https://storage.crisp.chat/users/helpdesk/website/52421894134f0400/functionedit4_s78bc1.jpg)

### Remarks:

You can also increase the upload limit by using the .htaccess file instead.  

Moreover, if you set a value higher than that defined by your hosting plan, you will not benefit from it. The limit of your accommodation will then be applied. If you need to increase your upload limit, you may need to move to a higher hosting plan.