Hi ,
Can anybody tell me how to find the version of apache and PHP running on a Linux Machine.
Regards,
Baskar
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
On 27/02/07, mulakaledu.baskar@wipro.com mulakaledu.baskar@wipro.com wrote:
Can anybody tell me how to find the version of apache and PHP running on a Linux Machine.
The output of phpinfo() provides this information.
Rob Church
Can anybody tell me how to find the version of apache and PHP running on a Linux Machine.
The output of phpinfo() provides this information.
Or from the shell, if you have access to the machine:
php -i
Or if the machine is remote and you have LWP installed, you can do the following to see which version of the webserver it is running:
HEAD www.example.com
Or if you don't have LWP installed, you can use the LiveHTTPHeaders extension for Firefox, just hit ^i while viewing a page and look at the headers..
The latter two presume that your server exports the ServerTokens[3] variable in Apache as something useful.
I personally don't broadcast my Apache version, because it gives remote attackers another piece of information I don't want them to have to try to exploit my machine, if a hole in the version of Apache is found before I have a chance to fix it.
[1] http://search.cpan.org/~gaas/libwww-perl-5.69/bin/lwp-request [2] https://addons.mozilla.org/firefox/3829/ [3] http://httpd.apache.org/docs/2.2/mod/core.html#servertokens
mediawiki-l@lists.wikimedia.org