Changing the PHP memory limit does not change the wp-config.php file (WordPress) #355

Closed
opened 2026-04-05 20:27:14 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @peaklabs-dev on 8/19/2023

CloudPanel version(s) affected

All

Description

When I change the PHP memory limit in the UI, it does not change the memory limit in the wp-config.php file:
I can set my memory limit in the UI to 768MB and the Wordpress config still looks like this:
image
If this is intended, or if it is not the Wordpress memory limit, then this should be made more clear, or it should be stated that this does not actually increase the PHP memory limit of Wordpress. What does it change then?

How to reproduce

Change the memory limit in the UI:
image
-> Then check the wp-config.php file.

Possible Solution

  1. Link the UI to the wp-config file -> what it should do, I think, so that any change in the UI is reflected in the wp-config.php file.
  2. If possible, add two settings, one for WP_MEMORY_LIMIT and one for WP_MAX_MEMORY_LIMIT, or rename the existing one and add the missing one.

Additional Context

No response

*Originally created by @peaklabs-dev on 8/19/2023* ### CloudPanel version(s) affected All ### Description When I change the PHP memory limit in the UI, it does not change the memory limit in the wp-config.php file: I can set my memory limit in the UI to 768MB and the Wordpress config still looks like this: ![image](https://github.com/cloudpanel-io/cloudpanel-ce/assets/122374094/dcc21660-71be-4f66-aaf6-502fd3f71a7d) If this is intended, or if it is not the Wordpress memory limit, then this should be made more clear, or it should be stated that this does not actually increase the PHP memory limit of Wordpress. What does it change then? ### How to reproduce Change the memory limit in the UI: ![image](https://github.com/cloudpanel-io/cloudpanel-ce/assets/122374094/bc783061-7a6c-4bbb-8b99-9fbfec57a9bc) -> Then check the wp-config.php file. ### Possible Solution 1. Link the UI to the wp-config file -> what it should do, I think, so that any change in the UI is reflected in the wp-config.php file. 2. If possible, add two settings, one for WP_MEMORY_LIMIT and one for WP_MAX_MEMORY_LIMIT, or rename the existing one and add the missing one. ### Additional Context _No response_
Sign in to join this conversation.