1. View Linux kernel version, System Information, commonly used in three ways:
uname-a; more/etc/issue; Cat/proc/version;
2. Check the Apache version information, if it is installed through Yum, or RPM, you can use the Rpm-qa |gerp httpd to view;
Can also be queried through httpd-v;
Of course, after installing Apache, you can directly elink the loopback to view Apache information.
3. Check the PHP version information, if it is installed through Yum, or RPM package, you can use Rpm-qa |grep php to view;
Similarly, you can use Php-v to view PHP version information;
In general, mostly by installing lamp, use Phpinfo's test page to view the installed PHP information;
The specific method for the/var/www/under the new index.php file, the specific content is
<?
PHP phpinfo ();
?>
Can. Then add the index.php type in the/etc/httpd/conf/httpd.conf file and restart the httpd to get the following results.
4. Check the MySQL version information, if it is installed through Yum, or the RPM package installed, you can use Rpm-qa |grep mysql to view;
You can also use Mysql-v or--help|grep distrib to view;
You can also go to MySQL and then use the command Select version () to view;
or status; Command view.
Personally think these are more commonly used methods, of course, there will certainly be more effective, more convenient ways and means.
Excerpt from: http://nan1hao.blog.51cto.com/753570/602610
Linux,apache,php,mysql Common ways to view version information