This article mainly shares with you how to check the versions of PHP, Apache, and MySQL. I hope it can help you.
How to check the PHP version:
1. Use the php functions--phpinfo() and phpversion() to query;
echo phpinfo();
echo phpversion();
2. Use the predefined constant PHP_VERSION to query
3. Use Use the command line tool to query (you need to configure php system variables or enter the php installation directory)
Enter php -v
to view Apache version method
Enter httpd -v on the command line to query (you need to configure Apache system variables or enter the Apache installation directory)
How to check the Mysql version
Enter mysql -v on the command line to query (you need to configure Mysql system variables or enter the Mysql installation directory)
The above is the detailed content of How to check PHP, Apache, MySQL versions. For more information, please follow other related articles on the PHP Chinese website!