Merge pull request #3100 from owncloud/ensure_index_php

Fix for #3049(cherry picked from commit ff6fb0906b2442b06f7bbac43d178dc919e4c4df)