How to run a Php web file in kali linux

I am trying to open up my php web files for my project in kali (o.s). I was previously using Xampp in Windows which run well however when i try to install Xampp in kali it gives me a warning not a secure program. Is there any other method or is it possible to use the apache2 service.Any advice on how to solve this problem will be much appreciated.

Installing Xampp became an issue and i could not run my php web files.I have tried using the apache2 service however with no luck