Проверьте, установлен ли xampp ubuntu
1. Check php by running
which php
return path -> `/usr/bin/php`
2. Check mysql by runnung
which mysql
return path -> `/usr/bin/mysql`
3. Check apache2 by runnung
which apache2
return path -> `/usr/sbin/apache2`
Harendra