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.
You may also be interested in other helpful articles:
- Add PHP GD support on a Linux server with Plesk
- Tutorial: Working with UNIX and Linux Shell
- nixCraft FAQ Roundup ~ Oct, 03, 2007
- Solaris tar command to backup data on tape device
- Linux: Iptables # 14 How to allow POP3 server/protocol request
Discussion on This Article:
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!


This is a simply 3 line php script:
<?
phpinfo();
?>