PHP and Server Settings
WordPress uses PHP to generate pages and process requests. The installed PHP version, extensions and resource limits can affect whether themes, plugins, uploads, imports and scheduled tasks work correctly.
Settings you may see
- PHP version: determines language features, security support and software compatibility.
- memory_limit: limits how much memory one PHP process can use.
- max_execution_time: limits how long a request may run.
- upload_max_filesize: limits the size of one uploaded file.
- post_max_size: limits the total size of submitted form or upload data.
Choose a PHP version
Use a version currently supported by your host, WordPress and the site’s active themes and plugins. Check the official WordPress requirements for its current recommendation. A newer version can improve security and performance, but compatibility should be checked before changing a live site.
Prepare for a change
- Create a current backup and check whether the host allows you to return to the earlier PHP version.
- Update supported themes and plugins, then review their PHP requirements.
- Test the change on staging when possible.
- After switching, check the public site, WordPress admin, forms and scheduled or payment features.
- Review error logs for new warnings or failures.
Hosts apply PHP settings in different places, so use the hosting panel or its documentation rather than adding configuration files that the server may not support. If a change causes an error, see White Screen of Death or submit a Fix Request.
Common questions
Frequently Asked Questions
Where can I find my site's PHP version?
You can usually find it in your hosting control panel. In WordPress admin, open Tools > Site Health, then select Info.
Will increasing the PHP memory limit make the site faster?
Not by itself. It can prevent operations from failing when they genuinely need more memory, but slow performance may have a different cause.
Why does WordPress show a different upload limit from the hosting panel?
Several settings can affect the final limit, including upload_max_filesize and post_max_size. The web server or hosting plan may impose another limit as well.
What should I do if changing PHP breaks the site?
Return to the earlier supported version if the host allows it, save the error details and investigate the incompatible theme, plugin or custom code before trying again.