Description

This article provides information on how to find the PHP version of the Junos OS device.

Symptoms

How to find the current PHP version of the Junos device.

Solution

 

There are two ways you can obtain the PHP version of the Junos device.

One way to obtain the PHP version of the Junos device:

Set the debug level on web-management traceoptions using the following command:

root@#set system services web-management limits debug-level 9

Now you will be able to see the PHP version in httpd.log after a new J-Web access session:

root@> show log httpd.log| match Powered
X-Powered-By: PHP/5.2.3

This output shows that PHP version 5.2.3 is running on the Junos device.

This method of obtaining the PHP version number was tested in Junos OS Release 11.2R1. It will also work for subsequent versions of Junos OS.

Another way to obtain the PHP version of the Junos device:

root@210-1% curl -i -s http://172.27.201.10/login | grep -i -E "^server|PHP"

Server: Embedthis-Appweb/3.2.3
x-powered-by: PHP/5.3.2

where:

172.27.201.10 is the interface IP used for J-Web management.

http://172.27.201.10/login is the URL to access the J-Web.

Modification History

29-07-2023 : Edited platform from SRX to all junos. As the same command works for EX platforms as well