XAMPP Apache won’t start – /opt/lampp/lampp: line 98: printf: write error: Broken pipe


lampp: line 98: printf: write error: Broken pipe

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!

Published by:

rasarab

Iqbal Khan urban cyclists. Social Media Specialist, Full time Blogger, SEO Specialist, Web Developer. Founder http://goowes.co & Co Founder http://ngonoo.com EMAIL : ras.arab@gmail.com

Categories Tulisan Rasarab1 Comment

One thought on “XAMPP Apache won’t start – /opt/lampp/lampp: line 98: printf: write error: Broken pipe”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s