CGIV-99

fixes for php to work on debian