↑ ↓ select, Enter open, Esc close

Check the current value of a PHP setting

Adjust the values, the command updates live
user@server
php -i | grep -i memory_limit

Filters the complete PHP configuration for the search term. The output shows the local and master value side by side, for example memory_limit => 128M => 128M. Useful for quickly checking limits for uploads, memory or execution time.

Note: This shows the command line values. Websites on Plesk use the settings of their subscription, which are not reflected in the CLI.

Also searched as

  • check php memory_limit
  • show upload_max_filesize
  • query php setting command line

Related one-liners

All in PHP

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.