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

How to check PHP, Apache, MySQL versions

小云云
Release: 2023-03-22 10:10:01
Original
9901 people have browsed it

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();
Copy after login

echo phpversion();
Copy after login


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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template