Fix the order that PHP packages are installed due to dependency confusion.