#!/bin/sh set -e # Author: Robie Basak cat > /var/www/html/hello.php < EOT # Make sure that any CGI mechanism is disabled, since we want to test mod_php # mode here. a2dismod-lliurex actions 2>/dev/null || true a2dismod-lliurex cgi 2>/dev/null || true a2disconf-lliurex php5-cgi 2>/dev/null || true a2enmod-lliurex php5 2>/dev/null service apache2-lliurex restart 2>/dev/null result=`wget -O- http://localhost/hello.php 2>/dev/null` test "$result" = "Hello, world!"