How To Find Out The Apache Version

Table of contents:

How To Find Out The Apache Version
How To Find Out The Apache Version

Video: How To Find Out The Apache Version

Video: How To Find Out The Apache Version
Video: How To Check The Version Of Apache 2024, April
Anonim

Apache is the most popular and widely used HTTP server in the world today. In most cases, the 2.x version of this product is used. Their functionality is not very different. However, sometimes you still need to find out the version of apache running on a particular machine.

How to find out the apache version
How to find out the apache version

It is necessary

  • - browser;
  • - SSH client or physical access to the machine with apache;
  • - access to the target machine via

Instructions

Step 1

Begin preparing to find out your apache version by running its executable. If the server is on a local machine, boot a shell, a terminal emulator, or switch to a text console. When working in operating systems of the Windows family, click on the "Start" button in the taskbar, select "Run", enter cmd and click OK. On Linux-like systems, press Alt + F1-Alt + F12 or Ctrl + Alt + F1- Ctrl + Alt + F12 to enter a console login, or start a terminal emulator such as Konsole, XTerm, etc. If the apache you want to check is installed on a remote computer, connect to it via ssh. Use PuTTY on Windows and the ssh console client on Linux-like systems

Step 2

Find out your apache version by running the server executable with the -v or -V option. In the first case, only information about the version and build date will be displayed, in the second additional data will be added to it (architecture description, list of preprocessor directives used during compilation, etc.). The apache executable is named httpd or httpd2 depending on which product line it belongs to (1.x or 2.x). Apache 1.x versions are rare today. Thus, you can usually find out its version by running the command in the console: httpd2 -v If the executable httpd2 is not found, specify the full path to it

Step 3

Try to find out the version of apache by calling the phpinfo function from a script written in php and running under the control of the server. Create a server script file with the following content: Place it in one of the directories served by the server and accessible via HTTP. Start apache if needed. Open the address corresponding to the script in a browser window. If the server is configured to run with PHP, and the use of the phpinfo function is not prohibited in the php.ini configuration file, an HTML document will be displayed in the browser. Find the apache2handler section in it. Find out the server version

Step 4

Try to find out your apache version from the information given on the error page. To do this, open the URL in the browser, addressing the machine on which the server is installed, by its IP address and adding the name of a non-existent document. The default apache 404 error page is likely to be displayed. It will most likely display the server version.

Recommended: