{"id":9401,"date":"2021-01-09T04:19:35","date_gmt":"2021-01-09T09:19:35","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=9401"},"modified":"2021-12-04T06:10:53","modified_gmt":"2021-12-04T06:10:53","slug":"view-phpinfo-output-command-line-linux","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/view-phpinfo-output-command-line-linux\/","title":{"rendered":"How to View phpinfo() Output From Command-line in Linux"},"content":{"rendered":"\n
Here we show you a few ways on how to view the phpinfo() output from the command-line in Linux<\/a> as an alternative to Apache<\/a> or Nginx<\/a> web servers.<\/p>\n\n\n\n Usually,<\/strong> to invoke the phpinfo(), users go through the process of creating a PHP<\/a> file such as info.php<\/strong> somewhere on your web server such as the document root then insert the following code into the file:<\/p>\n\n\n\n The file can be executed on a web server from the web browser to print out details about the PHP setup by going to http:\/\/localhost\/info.php<\/strong><\/em>.<\/p>\n\n\n\n