While working on your WordPress website, you might encounter one of the following warnings:
- Warning post content-length of bytes exceeds the limit…
- The uploaded file exceeds the upload_max_filesize directive in php.ini… exceeds the maximum upload size for this site…
- Fatal error: Allowed memory size of 12345678 bytes exhausted (tried to allocate 2345678 bytes) in /home/your-username/public_html/wp-includes/plugin.php on line 1000…
- 413 Error: Request Entity Too Large
Since we will be importing some templates, we recommend your host meets the following requirements to avoid such errors/warnings:
- PHP version 7.4 or greater.
- MySQL version 5.7 or greater OR MariaDB version 10.3 or greater.
- HTTPS support
These are the minimum requirements to run WordPress on your server. On top of these base requirements, we recommend setting higher PHP limits as below:
memory_limit = 256M
upload_max_size = 64M
post_max_size = 64M
upload_max_filesize = 64M
max_execution_time = 300
max_input_time = 1000
Please follow this guide to learn how to increase your PHP limits on your hosting. Yo can also see help from your hosting provider.
Other requirements to watch for are:
- Always make sure you are running the latest version of WordPress
- You can download the newest release of WordPress from the official WordPress website
- Always create secure passwords for FTP and Database