You're using a Native Installer, right? When using a VM or a Cloud Image the MySQL port won't be accessible from the outside. In fact, you'll need to create a SSH tunnel in order to access phpMyAdmin in order to access the database. However, both the port 80 and 443 will remain open since they MUST be open in order to make your website available.
Why do you want to close those ports?