Support » Plugin: WP Server Health Stats » WP Server Stats vs phpinfo.php

  • Resolved elonreynolds

    (@elonreynolds)


    Disclaimer: I am making an attempt to understand the results I am seeing. I know just enough to ask the following questions. thnx!

    I am running WP 5.1.1 with the default Twenty Nineteen theme along with your WP Server Stats plugin (love it!). I have successfully modified the max_execution_time = 180, max_input_time = 600, max_input_vars = 5000, post_max_size = 128M and upload_max_filesize = 256M variables in the php.ini file in both my host public_html root and in the php.ini file in the root of my WP website install. I get the following results from WP Server Stats:

    Screenshot 1.): https://snag.gy/kwj0N1.jpg

    However, when I run the <?php phpinfo(); ?> phpinfo.php script in both my host root and my WP install root, I get the following results:

    Screenshot 2.): https://snag.gy/pzEOsk.jpg

    Are the two different results from two different views of my PHP environment?
    Is it possible my host server is somehow not successfully passing the updated variables in the php.ini file(s) to WordPress?

    Any guidance or insight you can provide would be very helpful.

    Thanks in advance.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Saumya Majumder

    (@isaumya)

    Try clicking on “Purge Cache – WP Server Stats” button and then retry.
    Let me know if it changes.

    Thread Starter elonreynolds

    (@elonreynolds)

    I am unable to locate the “Purge Cache – WP Server Stats” button???

    Thread Starter elonreynolds

    (@elonreynolds)

    Thread is marked RESOLVED, but I have an unanswered question still outstanding.

    Please advise me on where to locate the “Purge Cache – WP Server Stats” BUTTON???

    Thanks in advance.

    Plugin Author Saumya Majumder

    (@isaumya)

    The button is in the top Black bar of your wp admin. In fact the screenshot you have sent open that and look at the top Black bar on wp admin page.
    If you still don’t see it, do a ctrl+f and type purge. You will see.

    Thread Starter elonreynolds

    (@elonreynolds)

    Thanks for the response. My apologies for not immediately seeing the obvious.

    I successfully purged the WP Server Stats cache and re-ran both WP Server Stats and the phpinfo.php query (twice).

    Same results as the previous comparison.

    WP Server Stats appears to reflect my host server’s default values, while the phpinfo.php query appears to directly reference the updated values I made to the php.ini file in my root folder.

    Because the phpinfo.php query is processed directly from within my root folder, does that not reflect privileges that perhaps WP Server Stats does not have???

    • This reply was modified 3 years, 4 months ago by elonreynolds.
    Plugin Author Saumya Majumder

    (@isaumya)

    Hi,
    WP Server Stats also runs phpinfo() to get the details and then show it to you. Can you please try putting the phpinfo.php file you created inside the WordPress root and try checking the details? If it still doesn’t work, try uninstalling and delete the plugin and then fresh install again.

    Inside your WordPress site’s whatever phpinfo data you are getting the plugin is also getting the same thing. So, if you have some other configuration for the root, it won’t show up in the plugin as your WordPress site is not getting those values.

    Debra

    (@notebookingpages)

    I am having same problem here. Checked with host to confirm settings … they made sure php.ini, user.ini, and some file related to php-fpm, etc. all have same reported values. I uninstalled/deleted/reinstalled/purged cache of the plugin. The odd thing is the percentages reported in the footer are based off the true memory_limit. Example says I’m using 108.6 out of 1024 (43%) which is not 43%. However the true limit is 256 and 108.6/256 is 43%.

    Plugin Author Saumya Majumder

    (@isaumya)

    Can you please make a test PHP file inside your WordPress root and put <?php phpinfo(); ?> in that let me know what you see there. Is it same as what it is showing in WP Server Stats?
    Regarding the wrong memory limit thing, make sure what memory limit is set inside WP admin. Also if possible please share a screenshot.

    Thread Starter elonreynolds

    (@elonreynolds)

    Thanks for the response.

    I followed your suggestions and, unfortunately, there is no change from my original inquiry details sent to you (see below).

    I contacted my host again and they validated that PHP 7.0.33 with the PHP values that I see in WP Server Stats are, in fact, the default values in their (host) PHP file. Those default values are successfully passed to both the public_html root and the wordpress root files.

    I can then add the PHP.ini file with the updated values (see below) to the public_html root and then query with the phpinfo.php script and get the UPDATED VALUES in that root ONLY. WP Server Stats still reports the default host values.

    I can then also add the PHP.ini file with the updated values (see below) to the wordpress root and then query the phpinfo.php script and now get the UPDATED VALUES in BOTH the public_html root AND the wordpress root. WP Server Stats still reports the default host values.

    I have cleared the WP Server Stats cache, deactivated the plugin, deleted the plugin, reinstalled WP Server Stats and then reactivated it multiple times, but with no change from the above results.

    My host has assured me that with the PHP.ini files I am using, their sever is successfully passing the UPDATED VALUES to WordPress, And I can validate the same using the phpinfo.php script.

    Based also on the performance I can anecdotally see WITHOUT and then WITH the PHP.ini file, I am comfortable that the UPDATED VARIABLES are successfully being passed to WordPress, but that WP Server Stats is incorrectly reporting the host server default values.

    Please advise.

    Plugin Author Saumya Majumder

    (@isaumya)

    Well, trust me this has never happened before and after your reporting, I’ve checked the code of that part of the plugin again and confirmed there is no way to fail. As the plugin also run phpinfo() inside wp server stats and then takes the data and show in a nice way. That’s all it does. It doesn’t gather the data in any special way.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘WP Server Stats vs phpinfo.php’ is closed to new replies.