refactor some stuff to get php and apache and mysql (mariadb) to work together