≡ Menu

Retrieve php’s configure options from the shell prompt

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.

Share this on:

Your support makes a big difference:
I have a small favor to ask. More people are reading the nixCraft. Many of you block advertising which is your right, and advertising revenues are not sufficient to cover my operating costs. So you can see why I need to ask for your help. The nixCraft, takes a lot of my time and hard work to produce. If you use nixCraft, who likes it, helps me with donations:
Become a Supporter →    Make a contribution via Paypal/Bitcoin →   

Don't Miss Any Linux and Unix Tips

Get nixCraft in your inbox. It's free:



{ 2 comments… add one }
  • nixcraft March 27, 2006, 10:18 pm

    This is a simply 3 line php script:

    <?
    phpinfo();
    ?>

  • Ben May 5, 2013, 1:33 pm

    Actually, you would be far better just using `php-config`

Leave a Comment