Difference between templates when creating a new workspace


When I create a new workspace, and if I choose HTML5, I will fail later if I try to connect a database(sqlite3) in a php file, while this is not happening if I choose PHP, Apache and Mysql workspace at the very first. How are they different? Thanks!