Error Installing scripts

When trying to upgrade gallery2 or install php based script I get the following error on one of my virtual domains.

This script cannot be installed, as it requires PHP version 4 or 5

Install scripts and upgrade are working fine for other domains

Please Help!