Sunday, 22 June 2025

Cek webserver, php, mariadb version

 

✅ 1. Cek Web Server: Apache atau Nginx

Jalankan:

ps aux | grep -E 'apache2|nginx'

root 1941 0.0 0.0 11156 1532 ? Ss 06:18 0:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
www-data 1942 0.0 0.0 13028 4788 ? S 06:18 0:00 nginx: worker process
www-data 1943 0.0 0.0 13028 4656 ? S 06:18 0:00 nginx: worker process
www-data 1944 0.0 0.0 13028 4444 ? S 06:18 0:00 nginx: worker process
www-data 1945 0.0 0.0 12896 3596 ? S 06:18 0:00 nginx: worker process
dhwan 38805 0.0 0.0 9144 2044 pts/1 S+ 09:55 0:00 grep --color=auto -E apache2|nginx

Contoh output:

  • Jika Anda melihat proses apache2, berarti pakai Apache

  • Jika Anda melihat proses nginx, berarti pakai Nginx

✅ 2. Cek Versi PHP

Jalankan:php -v
$ php -v
PHP 8.2.28 (cli) (built: Mar 13 2025 18:13:49) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.28, Copyright (c) Zend Technologies
with Zend OPcache v8.2.28, Copyright (c), by Zend Technologies

✅ 3. Cek Versi MySQL atau MariaDB

Cek apakah Anda pakai MySQL atau MariaDB:


Jalankan: mysql -V
$ mysql -V
mysql Ver 15.1 Distrib 10.11.13-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper


Share:

0 comments:

Post a Comment