Retrieve php’s configure options from the shell prompt

by on March 27, 2006 · 2 comments· LAST UPDATED March 27, 2006

in

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.



If you would like to be kept up to date with our posts, you can follow us on Twitter, Facebook, Google+, or even by subscribing to our RSS Feed.


{ 2 comments… read them below or add one }

1 nixcraft March 27, 2006 at 10:18 pm

This is a simply 3 line php script:

<?
phpinfo();
?>

Reply

2 Ben May 5, 2013 at 1:33 pm

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

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 6 + 10 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.

Previous post:

Next post: