Howto: Upgrade to latest php version (Ubuntu)

Upgrading php to php 5.5 (currently stable version)

  • add-apt-repository ppa:ondrej/php5
  • apt-get install python-software-properties
  • apt-get update
  • apt-get upgrade
  • apt-get dist-upgrade

You do get option to replace your apache2.conf file, but I would select to keep your old version.  In this instance, upon starting Apache, you MAY get error relating to httpd.conf and Lockfile statements. Just comment both of them out of apache.conf, and Apache will start fine.

Directory Buster

Another great security tool from the Open Web Application Security Project. Asides from worrying spelling in a lot of these open source projects (“Responce”??), there is little gem to identify hidden pages/directories and directories with a web application, which highlights possible security holes (an emailer script in unused page for example). This can be used safely as the tool will not exploit anything it finds, just to find other possible attack vectors that are not immediately obvious.
Continue reading

ab – Apache HTTP server benchmarking tool – Apache HTTP Server

ab is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. This especially shows you how many requests per second your Apache installation is capable of serving.

Load and Stress Testing your web applicartion can be a costly exercise, but there are tools such as this that can provide you with some confidence in the robustoness of your web application.  As a sidenote, most databases have some form of test tool, though they usaually require technical understanding to analyse results, and diagnose issues.

Manual of ab is rather extensive, so here is just useful example of it’s usage:

ab -n 100

will send 100 requests to Apache server of this website.