PHP configuration limits

Estimated reading: 3 minutes 25 views

When working with WordPress themes and plugins like those from Themepul, it’s important that your server meets certain PHP configuration limits. Insufficient PHP limits can cause issues such as failed demo imports, incomplete uploads, or plugin errors. Below are the recommended PHP settings to ensure smooth installation and operation of Themepul themes and the Topper Pack plugin.

Recommended PHP Settings

PHP SettingRecommended ValueNotes
memory_limit256M or higherEnsures that WordPress and plugins have enough memory to run processes smoothly.
upload_max_filesize64M or higherRequired to upload theme .zip files, demo content, and media.
post_max_size64M or higherShould be equal to or larger than upload_max_filesize.
max_execution_time300 seconds or higherPrevents timeouts during theme installation or demo import.
max_input_vars5000 or higherNeeded for large menus, customizer settings, and importing demo content.
max_input_time300 secondsEnsures large imports or form submissions are not interrupted.
file_uploadsOnMust be enabled to upload theme files and media.
allow_url_fopenOnRequired for WordPress to fetch external resources such as demo content.

How to Check PHP Limits

  1. WordPress Site Health
    Go to Dashboard → Tools → Site Health → Info → Server to see current PHP settings.
  2. phpinfo() File
    Create a phpinfo.php file in your server root with the following content: <?php phpinfo(); ?> Access it via your browser (e.g., https://yourdomain.com/phpinfo.php) to view all PHP configuration limits.

How to Increase PHP Limits

Depending on your hosting environment, you can increase PHP limits using one of these methods:

  1. php.ini File
    Edit your php.ini file (or create one in your root folder) and add/update: memory_limit = 256M upload_max_filesize = 64M post_max_size = 64M max_execution_time = 300 max_input_vars = 5000 max_input_time = 300
  2. .htaccess File
    Add the following lines to your .htaccess in the WordPress root: php_value memory_limit 256M php_value upload_max_filesize 64M php_value post_max_size 64M php_value max_execution_time 300 php_value max_input_vars 5000
  3. wp-config.php File
    Add the following line at the top of wp-config.php: @ini_set( 'memory_limit', '256M' ); @ini_set( 'max_execution_time', '300' );
  4. Contact Hosting Provider
    Some shared hosting environments do not allow manual changes. Contact your hosting provider and request the recommended PHP limits.

Why PHP Limits Matter

  • Demo Import Failures: Large demo files require sufficient memory and execution time.
  • Plugin Errors: Features like the Topper Pack plugin’s advanced widgets rely on proper max_input_vars and execution time.
  • Upload Issues: Themes and media may fail to upload if upload_max_filesize and post_max_size are too low.

Share this Doc

PHP configuration limits

Or copy link

CONTENTS

All Rights Reserved by Themepul Team