Home > Article > Backend Development > How to check the versions of Linux, Apache, MySQL and PHP
Check the Apache version under linux httpd -v
Check the PHP version under linux php -v
Check the mysql version under linux mysql -V (capital V)
uname -a;
##more /etc/issue;
cat /proc/version;
##2. View apache The version information
##Of course, after installing apache, you can directly elink loopback to view apache information.
Similarly, you can also use php -v to view php version information;
# Under normal circumstances, most of them are installed by lamp Finally, use the test page of phpinfo to check the information of the installed PHP;
The specific method is to create a new index.php file under /var/www/, the specific content is
<? php phpinfo(); ?>
That’s it. Then add the index.php type to the /etc/httpd/conf/httpd.conf file, and then restart httpd to get the following results.
If it is installed through yum or rpm package, you can use rpm -qa |grep mysql to view; You can also use mysql -V or --help|grep Distrib to view; You can also enter mysql and then use the command select version(); to view; or status; command to view. ##4. Check the version information of mysql
The above is the detailed content of How to check the versions of Linux, Apache, MySQL and PHP. For more information, please follow other related articles on the PHP Chinese website!