System Status (Max PHP)

Posted in: Newsmag
Post count: 104

the system status says: WP Memory Limit 40 MB/request – but I double checked and it was at 64 – i increased it again to 256MB … but the system status still says 40.

Advice?

Post count: 6535

Hi

Try to make a php.ini file in root folder of your wordpress and add there the line which increase memory limit. Also you can try to run a phpinfo() command in footer http://php.net/manual/ro/function.phpinfo.php This function will display many details about your server and among theme will be the memory limit set.

Thanks!

Post count: 9544

You need to ALSO add a line to your wp-config.php file to tell WP to use more than 40M … see the helpful WordPress Codex (Docs) on how to edit your wp-config.php file here:
https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

define( 'WP_MEMORY_LIMIT', '64M' );

This over-rides WordPress’ built-in 40M limit which is there for folks also using multi-site and other cases.

Admin – likely need to add this to the theme docs!

Post count: 104

define(‘WP_MEMORY_LIMIT’, ‘256M’); is already in my wp-config. and the php.ini file is done.

Post count: 9544

I find I have to put my limit at top of the wp-config file after initial comments. Might not impact you, but had that issue on our old server.

Post count: 104

ohhhh … i’ll try that.

Post count: 9544

also make sure the single quotes are foot marks, and not curly apostrophes.

' vs

Post count: 104

this isn’t working for me. I’ve tried everything.

Post count: 9544

Well
a) if your hosting panel does show you have 256M allocated to php
b) if your wp-config has the line to spec 256M
c) your site works
d) get on with your life 😉

Make sure your wp-config.php file is utf-8 — should not have any curly quotes in there, same with php.ini and similar.

Post count: 33

Your hosting company can stop any changes you make to the memory available so first check what’s available to you from the server. Create a file called phpinfo.php and place in your /public_html directory.
Edit the file and type the following:
<?php phpinfo(); ?>
Then visit the file you just created to show PHP server info, example http://www.example.com/phpinfo.php
Search for ‘memory_limit’ if it shows less than you need ask your hosting company to increase it.

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newsmag’ is closed to new topics and replies.