Commands to find the working directory for LAMP (htdocs) and to the start the LAMP Service
Go to htdocs folder
cd /opt/lampp/htdocs/
Run the LAMP service
sudo /opt/lampp/lampp start
Use restart
or stop
instead of start
for those purposes.