• Resolved MarkOlbert

    (@markolbert)


    I can’t tell you how many hours I’ve wasted over the years setting upload file size limits in WordPress. Besides involving changing multiple php configuration values, it’s complicated by the fact that a typical linux install on a self-managed server will have quite a few php.ini files scattered around (e.g., several for each version of php installed, for apache, cli and fpm).

    It would be great if something in the dashboard showed which php.ini file was the one being used.

    Apologies if the information is already available someplace but I’ve never been able to find it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Wordpress itself provides some information about the server under Tools > Site Health. What is usually not found there is the path to the php.ini used.

    With the plugin https://de.www.ads-software.com/plugins/health-check/ you can extend the output under Site Health. Then you will also find the complete phpinfo() under “Info”.

    Thread Starter MarkOlbert

    (@markolbert)

    Sorry, but I don’t see where the path information is displayed. I installed and activated the plugin, but I don’t see any newly-added sections under the info tab and all the obvious ones that I checked don’t display the path to the php.ini file.

    Where exactly is the information displayed by the plugin?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    WP never sees or uses the php.ini file; it’s PHP that does. You need to walk it back. IF there’s a php.ini file in the WP root, the PHP process should read it and modify its more general settings. If not, then the php.ini is likely one of the global ones, as modified by the settings in the /etc/php-fpm.d/something.conf file for that website.

    Tools > Site Health > Info .. then click on the button “View extended php information” on the button of the page. The url should be: /wp-admin/tools.php?page=health-check&tab=phpinfo

    Thread Starter MarkOlbert

    (@markolbert)

    Thanx, @threadi! I am such an idiot — I literally didn’t notice that big, fat button…because I assumed the add-in “simply” added a new section to the accordion area.

    When something doesn’t work, check your assumptions. Or your cables, if we’re talking hardware :).

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    BUT…

    Since you have site health installed, click the mustard colored button at the bottom:

    and search for php.ini

    Thread Starter MarkOlbert

    (@markolbert)

    A little write-up, in case others run into this problem…

    https://imperfect.olbert.com/the-most-important-wordpress-command-youll-ever-see/

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Display php.ini File In Use’ is closed to new replies.