1、backup

/opt/lamp/etc/extra/httpd-xampp.conf

or
/opt/lamp/etc/extra/   any conf  be edited

/opt/lamp/etc/php.ini
/opt/lamp/etc/httpd.conf

any conf、ini  or your edit file backup .

2、download xampp newst install sh    then install again

3、Don’t copy backup file overwrite old ini conf file

use note++ to compare different, then change or no change.

4、finish try to ./lamp restart

====================================

Maybe other way

You can see  /opt/lampp/properties.ini

maybe use apt-get install php or mysql, then change this path, then restart……I Not Sure can or not.