Retrieve php's configure options from the shell prompt

Posted on in Categories News last updated March 27, 2006

As a system administrator you need to admin not just Apache web server but other stuff like PHP. PHP has some cool command line options. These options are very useful for system administrators. I am sure it will save time while debugging php config problems:

Display PHP version:

$ php -v

Retrieve php’s configure options from the shell prompt:

$ php -i
$ php –i | less

Display list of compiled in modules

$ php –m

Read man page of php for more options.

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

Share this on (or read 2 comments/add one below):

2 comment

Leave a Comment