I found a couple of tutorials which shows how this can be achieved:
solution 1 - using fast cgi instead of mod_php
solution 2 - runn a single instance of Apache, and run one instance of PHP as a module, and other installs as CGI.
Hope it helps others.