@ianhyzy said in running many WP installs on one cloudron:
@d19dotca thanks! mind sharing any of your php tweaks? I'm curious what other people are doing here
Certainly! The values change periodically for me based on various circumstances, however here's the current values I'm using in the php.ini file for WordPress...
default_socket_timeout = 300
max_execution_time = 300
max_input_time = 60
max_input_vars = 3000
memory_limit = 256M
post_max_size = 128M
upload_max_filesize = 128M
The top are the values needed usually for best performance from certain page builders and important plugins in WordPress, plus I have a few sites that host videos / other large files so I keep the sizes somewhat large too and tweak as needed for each customer website.
Also, on the wp-config.php file, I also set the following property which allows the WordPress memory limit to match that of the php.ini file, rather than keeping them separate. But in some cases it may be wise to keep them separate too, it's really a case-by-case basis, I just find I often keep them the same so doing it this way means I only have to set it in one spot and removes the risk of keeping them separate unintentionally...
define( 'WP_MEMORY_LIMIT', ini_get( 'memory_limit' ) ); // sets memory limit to match php.ini
Then for the actual application itself, I currently set a 1 GB memory limit on each one.