How to Increase the Maximum Php

PHP is a server-side scripting language that is the backbone of WordPress websites. WordPress core, themes, and plugins contain PHP files that help you get the content from the database and put the layout together. However, the whole process of running a PHP script must be completed UK Business Fax List within a limited time (usually seconds). In order to control script execution time, PHP has a variable called max_execution_time. It is essential to configure this parameter to the desired value to protect your server and allocate server resources to real users visiting the site instead of running a poorly written script in the background. WordPress SEO: Optimize WordPress site with free WordPress SEO guide. Why is the execution time limited? On most hosting servers, the default execution time is 30 seconds.

Why Do You Need to Increase?

While there are good reasons to limit PHP execution time on WordPress sites, there are also reasons why you should increase the limit. Sometimes updating WordPress core, theme or plugins requires downloading a large amount of data. You can configure the maximum file upload size with the post_max_size parameter. However, the PHP script must also run for a long time for the upload to complete on your server. Otherwise, you will get an update failed error due to timeout. Theme update error with PHP timeout Theme update error with PHP timeout Many commercial WordPress themes offer a custom demo import with heavy content. You may need to increase the values ​​of the max_input_vars and max_execution_time parameters in order to complete the demo import process. Additionally, you may also need to increase the maximum PHP memory size for heavy plugins and themes to work properly.

The Maximum Execution

UK Business Fax List
UK Business Fax List

How to display the maximum execution time? Some hosting companies like Bluehost and SiteGround offer the PHP Manager application in your account. You can use this app to find the max_execution_time configuration for your site. For example, follow the instructions below in SiteGround hosting. Log in to your hosting account and go to the “Websites” section. Click the “Site Tools” link next to the site whose value you want to check. Look for the PHP Manager application in the “Devs” section or use the search option to find the application. Go to the “PHP Variables” section and scroll down. Locate the max_execution_time variable to find the default value assigned to it. SiteGround hosting allows 120 seconds by default, which should be enough in most cases. Also, you cannot change this value from this application.

Leave a comment

Your email address will not be published.