GNU/Linux >> LINUX-Kenntnisse >  >> Panels >> Panels

So erhalten Sie MySQL/Apache/PHP-Versionen

Sie können diese Befehle auf einem Virtual Private Server (VPS) oder einem dedizierten Server verwenden, auf dem CentOS ausgeführt wird. Normalerweise verwenden Sie CentOS für einen Webhosting-Server. Oft möchten Sie die Versionen von Apache, PHP und MySQL-Server überprüfen.

Für MySQL:

root@web [/home/admin]# mysql -V
mysql Ver 14.14 Distrib 5.5.29, for Linux (i686) using readline 5.1
root@web [/home/admin]# 

Beachten Sie das große „V“ aus dem ersten Befehl.

Alternativ können Sie auch verwenden:

root@host [/]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 273052
Server version: 5.5.28-cll MySQL Community Server (GPL)
Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> SHOW VARIABLES LIKE "%version%";
+-------------------------+------------------------------+
| Variable_name | Value |
+-------------------------+------------------------------+
| innodb_version | 1.1.8 |
| protocol_version | 10 |
| slave_type_conversions | |
| version | 5.5.28-cll |
| version_comment | MySQL Community Server (GPL) |
| version_compile_machine | i686 |
| version_compile_os | Linux |
+-------------------------+------------------------------+
7 rows in set (0.00 sec)

mysql>
root@host [/]#

Für PHP:

root@host [/]# php -v
PHP 5.3.21 (cli) (built: Jan 27 2013 06:28:24)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd.
root@host [/]#

Für Apache-Nutzung:

root@host [/]# /usr/local/apache/bin/httpd -v
Server version: Apache/2.2.23 (Unix)
Server built: Jan 27 2013 06:23:25
Cpanel::Easy::Apache v3.16.7 rev9999
root@host [/]#

Wie Sie sehen können, gibt dieser Befehl auch die Easy Apache-Version aus – wenn auf dem Server cPanel installiert ist.


Panels
  1. So finden Sie MySQL-, PHP- und Apache-Konfigurationsdateien

  2. So installieren Sie Apache, MySQL, PHP (LAMP) unter CentOS/RHEL 7

  3. So installieren Sie Apache, MySQL, PHP (LAMP) unter Ubuntu 16.04 LTS

  4. Wie bringt man Apache dazu, Php 7.0 (nicht 7.1) zu verwenden?

  5. So installieren Sie LAMP Apache, MySQL, PHP unter Debian 11

So installieren Sie Apache, MySQL und PHP unter Ubuntu 20.04

So installieren Sie Apache, MySQL und PHP auf AlmaLinux 8

So installieren Sie Apache, MySQL, PHP (LAMP) auf Fedora 21

So installieren Sie LAMP auf einem Ubuntu 15.04-Server

So installieren Sie FAMP (FreeBSD 10, Apache, MySQL, PHP) auf einem Cloud- oder VPS-Server

So installieren Sie Linux, Apache, MySQL, PHP (LAMP) auf Debian 8.2 Cloud Server