• Welcome to Web Hosting Community Forum for Webmasters - Web hosting Forum.
 

Easy way to check PHP and MySQL version via SSH

Started by Rick, May 01, 2015, 04:50:18 PM

WordPress Premium Themes


Rick

Hi,

I am new to manage server via SSH. Is it possible to check PHP and MySQL version via SSH for cPanel server? I know we can upload phpifo page to check PHP version but I am curious if we can check it directly via SSH.

Thanks,
Rick

Kailash

You can execute following commands via SSH to check PHP and MySQL version via SSH:

php -v
mysql -V


hmb-willem


neckozenica

Below are the command to check the MySQL version you are using on your Linux server / machine through shell via SSH:

SSH Command: mysql -V

Process:
Open SSH Shell
Login to your server
Enter mysql -V command
You'll receive output in SHELL something like
mysql Ver 14.14 Distrib 5.5.50, for Linux (x86_64) using readline 5.1
NOTE: Type above command carefully and exactly like "mysql -V" without quotes. If by mistake you typed "mysql -v" (without capital v) instead of "mysql -V" you'll see "Welcome to the MySQL monitor".

kumkum

Its very easy to check MySQL version via SSH, you just have to enter below command for it.
MySQL -V

You can check description for this here.

For PHP version you can run below command:
php -v

etechsupport

Hi, IF you are looking for something on cPanel then you can visit our website.

eTechSupport provide service like:-

Web Hosting Support
Cloud Infra Management
Virtualization Support
24×7 Server Management (cPanel, Plesk, DirectAdmin)
24×7 Server Monitoring
Server Migration as a Service
Backups as a Service
Dedicated L1, L2, L3 Staffing

WordPress Premium Themes