Open your terminal and select the dir where lampp is located and write this command:
sudo /etc/init.d/apache2 stop and then type this
sudo /opt/lampp/lampp start
Open your terminal and select the dir where lampp is located and write this command:
sudo /etc/init.d/apache2 stop
and then type this
sudo /opt/lampp/lampp start