How to check which modules and versions of Nginx and PHP are using on my hosting?

karlkoeller

New member
Registered
Joined
Jul 29, 2016
Messages
4
Points
0
Hi, I want to check which modules and versions of Nginx and PHP are using on my hosting to make sure that it will be compatible with latest php versions I am going to update to? how to check them?
 

MooseLucifer

Well-known member
Registered
Joined
May 20, 2016
Messages
149
Points
28
Hey Karl,

It is not too hard to check Nginx and PHP's modules and version they are using, you type these commend in your SSH.

Check PHP version

Code:
php -v
My result from a VPS

Code:
root@moose [~]# php -v
PHP 5.4.30 (cli) (built: Jul 23 2014 14:21:21)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
    with the ionCube PHP Loader v4.6.1, Copyright (c) 2002-2014, by ionCube Ltd., and
    with Zend Guard Loader v3.3, Copyright (c) 1998-2013, by Zend Technologies

If you don't use Zend then it will not include these lines
Code:
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with Zend Guard Loader v3.3, Copyright (c) 1998-2013, by Zend Technologies

Check which modules php is using
Code:
root@moose [~]# php -m
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
ereg
ffmpeg
fileinfo
filter
ftp
gd
geoip
gettext
hash
iconv
imap
ionCube Loader
json
libxml
mbstring
mcrypt
mysql
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
rar
Reflection
session
SimpleXML
soap
sockets
SourceGuardian
SPL
sqlite3
standard
tidy
tokenizer
uploadprogress
xml
xmlreader
xmlrpc
xmlwriter
yaml
Zend Guard Loader
zip
zlib

[Zend Modules]
Zend Guard Loader
the ionCube PHP Loader
Check Nginx version
Code:
[root@moose ~]# nginx -v
nginx version: nginx/1.7.6
Check with this command to know which modules Nginx is using


Code:
nginx -V
The result can be

Code:
root@moose ~]# nginx -V
nginx version: nginx/1.7.7
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) 
TLS SNI support enabled
configure arguments: --group=nginx --user=nginx --pid-path=/var/run/nginx.pid........

Hope that helps!
 
Latest Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top