First of all: to start XAMPP Control Panel:
#!/bin/bash
sudo /opt/lampp/share/xampp-control-panel/xampp-control-panel
….
Today I started my XAMPP Control Panel – it started MySQL but not Apache.
Linux Mint 17.3 Cinnamon 64bit
If someone is trying to start XAMPP in Linux and gets this kind of errors in terminal:
[sudo] password for bla:
INFO: You could try to speed-up the execution if you had psyco installed.
/opt/lampp/lampp: line 98: printf: write error: Broken pipe
/opt/lampp/lampp: line 109: echo: write error: Broken pipe
/opt/lampp/lampp: line 98: printf: write error: Broken pipe
/opt/lampp/lampp: line 636: printf: write error: Broken pipe
/opt/lampp/lampp: line 239: printf: write error: Broken pipe
The solution:
In terminal: sudo /etc/init.d/apache2 stop
And then start your Apache through the XAMPP Control Panel or if you are not using Control Panel (sudo /opt/lampp/lampp start)
Edit: If you still get this kind of error at next computer start then you probably have apache2 process starting at computer startup.
To prevent apache2 starting automatically at startup:
cd /etc/init.d/
sudo update-rc.d -f apache2 remove
Reboot your computer and now hopefully you can turn on Apache from the XAMPP Control Panel!
me gusta la melodia si me gusta mucho..