apache server not starting in xampp ubuntu

C++
sudo /etc/init.d/apache2 stop   
sudo /opt/lampp/lampp start
sudo /etc/init.d/apache2 stop   
sudo /opt/lampp/lampp start
Source

Also in C++: