Home  >  Article  >  Backend Development  >  How to check PHP, Apache, MySQL versions

How to check PHP, Apache, MySQL versions

小云云
小云云Original
2018-03-26 11:42:249845browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn