I'm running Centos 5 and I need to know what version of PHP I'm running, is there a command for this which I can run?
|
try running any of the following at the command line
to get alot of info or
to just get the version information It should give you all information you need about the php install. |
||||
|
Use
This will show you:
|
||||
|
|
|
It can usually be done remotely by checking the X-Powered-By HTTP Header On-line Test @ http://hackertarget.com/powered-by/ Or try this against any website to see the headers:
|
|||
|
|
|
An answer was accepted, but another option on RPM systems (RHEL, Centos, Fedora, etc.) is to use the following:
And while I'm at it, the general method for using RPM to find info on a package for any rpm-installed program or file is similar to this (for awk):
It's a bit trickier for packages installed and used by Apache since they may not be on $PATH, but you can start with something like:
|
|||
|
|
|
You can make an
|
|||||||||||
|