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.
Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!
- Email this to a friend
- Printable version
- Rss Feed
- Last Updated: Mar/27/2006
{ 1 comment… read it below or add one }
This is a simply 3 line php script:
<?
phpinfo();
?>