Initially, having a web interface is nice for debugging and testing. However, and outside facing webpage should not have it up as it poses a security risk for commonly used program.
Then use command line to add database and users.
After removing phpMyAdmin, need to remove this line in the /etc/apache2/apache2.conf file, or apache service will not start.
Then apache service can be restarted safely with:
systemctl restart apache2