Uploaded file exceeds upload_max_filesize directive in php.ini

> Troubleshooting, WordPress

This is a common and easy to fix error, it usually occurs when we try to upload a plugin or a multimedia file (image, pdf, audio, video, …) from the WordPress administration panel and the file exceeds the maximum file upload size directive which by default is 2 Megabytes. If the file you are trying to upload is larger than 2MB, WordPress will display this error:

  • When uploading a plugin: The uploaded file exceeds the upload_max_filesize directive in php.ini.
  • When uploading a file to the media library: The size of the document.ext file exceeds the size allowed on this site.
upload_max_filesize WordPress

This limit has the function of preventing us from overloading our project with heavy files.

As you know WordPress is programmed with the PHP language (Hypertext Preprocessor – Hypertext Preprocessor), which at startup loads a series of directives through a file called php.ini.

What is php.ini?

The php.ini file is a special file, where we can declare changes in PHP configuration through its directives. It is one of the essential configuration files, since when PHP starts it is the first file to be executed, so any functionality changes will be read into it.

Some of the most important settings implemented in this file are: upload directory, show errors, log errors, maximumupload size (upload_max_filesize), maximum execution time, etc. This allows for easy administration in the way you manage the Apache web server.

How to solve the problem?

To solve this problem, simply increase the value of the upload_max_filesize directive, which by default is set to 2M (2 Megabytes). You can increase it to 4M, 8M, 10M, 16M, … I recommend that you increase it to 128M, so you won’t have any problems.

There are several ways to change this policy, the easiest is to contact your hosting provider’s technical support service and ask them to do so: “Please I need you to increase the capacity of the upload_max_filesize variable to 128M for the domain aqui-tu-dominio.com, thank you.“Now all you have to do is wait for someone from the support team to make the change.

But you can also do it yourself via your web hosting administrator’s control panel. Let’s see how to do it in the two most popular web hosting administrators Plesk and cPanel.

How to change upload_max_filesize in Plesk

Steps to change upload_max_filesize in Plesk.

Plesk - Websites and Domains
upload-max-filesize in Plesk
  1. Click on Websites and domains
  2. Click on PHP Configuration
  3. We change upload-max-filesize to 128M
  4. Scroll to the bottom of the page and click the OK button.

How to change upload_max_filesize in cPanel

Steps to change upload_max_filesize in cPanel.

upload-max-filesize in cPanel-1
upload-max-filesize in cPanel-2
upload-max-filesize in cPanel-2
  1. In the SOFTWARE section, click on Select PHP Version.
  2. In the next screen click the Options tab
  3. We scroll to the bottom of the page and change the value of the upload_max_filesize directive via the selector

Once the change has been made you will be able to upload files larger than 2 Megabytes and we will have solved the problem.

Suscríbete a Elementor Academy

Subscribe and receive notices of new content

Related topics

Qué tema elegir Astra o Hello Elementor
Which theme to choose Astra or Hello Elementor?
 true
11:02
0.0/5
Introduction to Elementor, WordPress
{{ reviewsTotal }}{{ options.labels.singularReviewCountLabel }}
{{ reviewsTotal }}{{ options.labels.pluralReviewCountLabel }}
{{ options.labels.newReviewButton }}
{{ userData.canReview.message }}
Scroll to Top

Generate effective SEO texts with AI to rank your website on Google

Generating effective SEO texts is essential to position our website in Google. It is important to follow the rules and create original and interesting content, both in text and video, and to have branded profiles on social networks. We must also pay attention to the structure of the content and links, as well as the spelling quality. With keyword research, copywriting and optimization of the URL, title and meta description we can create a good SEO text. The generation of internal and external links and the analysis of results are also key to improve our strategy.

Importance of SEO positioning in Google

Positioning in Google is fundamental in any digital strategy. It is important to note that there are two different types of results: SEM results and SEO results, the latter generating an ROI of 20%.

SEM vs SEO Results

SEM results are those achieved through advertising on Google, while SEO results are those achieved by optimizing the website to appear in Google’s top search results.

20% ROI

The fact of achieving a 20% ROI thanks to SEO actions is an indicator that this strategy is very efficient compared to others.

Google standards and creativity in content creation

It is important to follow Google’s rules when creating content, however, we must not neglect creativity and originality in the creation of interesting and valuable content to improve our SEO.

Content creation for SEO

The creation of interesting and original content is key to improve the positioning of our website in Google. Here are some keys to creating effective content on different platforms.

Video content on YouTube and Instagram

Video content is becoming more and more relevant in SEO content strategy. YouTube and Instagram are two of the most widely used platforms for sharing branded videos, although each has its own particularities. It is important to take these differences into account and adapt the content according to our needs. On YouTube, for example, videos should be longer and more detailed, while on Instagram, shorter and more eye-catching videos can be used.

Brand profiles in social networks

Having a presence in social networks is essential to maintain a good SEO positioning strategy. These brand profiles must be consistent with the content of our website and be active with regular publications. In addition, it is important to use keywords in the biography and use attractive content to invite users to visit our website.

Content structure, internal links and spelling

Content structure is one of the most important elements when creating content for SEO. The title hierarchy from H1 to H4 must be taken into account and follow a logical order in the content structure. It is also essential to include both internal and external links to improve the navigation and authority of our website. Finally, we must not neglect the spelling and grammar of the content, as they can negatively affect the quality of our website and therefore harm the positioning in search engines.

Keys to good SEO copywriting

To achieve a good SEO positioning in Google and improve the traffic to our website, we must take into account certain keys in the writing of our contents. These include:

Keyword research

Before writing SEO copy it is important to do keyword research. We must choose those words that are related to our content and that have a high search volume but at the same time have low competition. This will help us to better position our content in search results.

Text structure and linkbuilding

The structure of the text is key in writing a good SEO text. We must structure it with H2, H3 and H4 subtitles and use internal links that redirect to other contents of our website and external links to other sources of information related to our sector. This will contribute to increase the authority of our website and improve our positioning.

URL, title and meta description writing and optimization

The wording of the URL, the title and the meta description of our content are also important factors in SEO positioning. We must create a simple and descriptive URL, a catchy title and a meta description that summarizes the content clearly and concisely. In addition, we must include in them our keywords in a natural and coherent way.

We should not be overly obsessed with optimization per se, but focus on creating valuable, interesting and compelling content for our audience. All this will help us to improve our SEO positioning in Google and to generate quality visits to our website.

Internal and external link generation and results analysis

The generation of internal and external links is essential to improve the SEO of our website. Internal links help to distribute the value of the pages of our website, which improves the SEO of all of them, while quality external links bring authority and relevance to our website, which helps it to rank better.

Analysis through tools such as Google Analytics and Search Console

To measure the success of our SEO strategy we must analyze the data obtained through tools such as Google Analytics and Search Console. These tools allow us to know the traffic of our website, its origin, the keywords used by users, the average duration of the visit, among other aspects. In this way, we can detect and correct possible errors that are affecting our position in Google. In addition to these tools, there are other advanced options that allow us to improve the efficiency of our SEO strategy. Some of them are Ahrefs, Moz or SEMrush, which offer detailed statistics on the performance of our page and allow us to know in depth the competition.

SEO content writing services

If you don’t have enough time or resources to create quality SEO content, there are SEO content writing services that can help. These services have teams of professionals who are responsible for creating SEO-optimized content that meets all standards and is attractive to users. In addition, these services can help you research keywords, generate links and optimize your URLs, titles and meta descriptions, among other things. With the help of these services, you can significantly improve the position of your website in Google and increase traffic and quality visits.

Tips to improve the SEO positioning of our website

To improve the SEO positioning of our website, it is important to follow certain tips to achieve greater success in Google:

Think SEO when writing texts

It is essential to keep keywords and SEO optimization techniques in mind when writing any type of content, never forget this.

Knowing our target audience

It is important to know our target audience in depth, to know their needs, their interests and their behavior, so we can create content that is attractive to them.

Image optimization

Images are an important factor in SEO positioning, as they can attract users and improve the duration of their visit on our website. It is necessary to optimize the images in terms of size and weight and choose appropriate file names with the keywords of our niche.

Quality design and content

We must take care of the design of our website so that it is attractive and easy to use for the user, so that they spend more time on it. In addition, the content must be interesting and relevant to have a chance of being shared on social networks.

This is a pop-up message

Elementor has a popup message builder that you can find in the Templates menu.

Plantillas > Mensajes emergentes

hello!

Enter your access data