1) How to query Linux for version uname -a?
2) Hpw to query Apache for version?
3) How to query PHP for version?
1) How to query Linux for version uname -a?
2) Hpw to query Apache for version?
3) How to query PHP for version?
For apache:
or possibly:Code:apache -v
similarly for php:Code:apache2 -v
provided you've got the command line interface version (CLI) installed as well as the apacahe module.Code:php -v
Otherwise, create the file phpinfo.php in the web root with the contents:
And browse to it for all details.Code:<?php phpinfo(); ?>
As for system info, you can use the command procinfo -a
Note: you might need to make sure you've got the correct packages installed. Eg for Debian or Ubuntu, you'll need to apt-get install sysutils if procinfo is not available.
Alternatively cd to the /proc directory which provides 'file-like' views onto the running system (which procinfo queries). Just view the files in there:
eg: version:
cpuinfo:Code:Linux version 2.6.12-10-386 (buildd@terranova) (gcc version 3.4.5 20050809 (prer elease) (Ubuntu 3.4.4-6ubuntu8.1)) #1 Fri Sep 15 16:31:49 UTC 2006
Also, depending on your distro - you could interrogate your package management system for the installed versions.Code:processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R) Xeon(TM) CPU 3.00GHz stepping : 3 cpu MHz : 3002.350 cache size : 2048 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm pni monitor ds_cpl cid cx16 xtpr bogomips : 5947.39
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks