Apache and PHP webserver version

Finding out what version of Apache and PHP a webserver is running when you have little access

There are better ways to do this, but let us assume you have no access via SSH or even FTP to be able to add a file.

Linux / OSx

Open up a terminal window and type the following;

curl --head http://thesite.com

This will return something similar to:

HTTP/1.1 200 OK
Date: Wed, 15 Aug 2012 10:41:32 GMT
Server: Apache/2.2.9 (Debian) PHP/5.3.8-1~dotdeb.1 with Suhosin-Patch
X-Powered-By: PHP/5.3.8-1~dotdeb.1
Set-Cookie: PHPSESSID=47d6a5e22c54307f211f67294f17495f; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Keep-Alive: timeout=15, max=100
Content-Type: text/html
Accept-Ranges: none
Connection: Keep-Alive

And as you can see in this information you can find the Apache and PHP information.

Recent posts View all

Talk CSS

FrontEnders - Web Performance

Sharing some of my thoughts on a FrontEnders meetup on the topic of Web Performance

Talk

Tips for how to ask for time off to attend conferences

Asking for time off to attend a conference can be nerve-racking, these tips will get you closer to attending the conferences you're interested in.