move setup of php mysql conf files to apache class