Page 1 of 1

Error on XAMPP start

PostPosted: 10. August 2017 14:23
by lksferrari
Hello, I'm learning about webserver by my own. And I just installed Xamp 5.6.31 for linux ( https://www.apachefriends.org/pt_br/download.html ), but when I try to it turn on:

root@debian:/home/debian# /opt/lampp/lampp start
Starting XAMPP for Linux 5.6.31-0...
XAMPP: Starting Apache.../opt/lampp/share/xampp/xampplib: linha 22: netstat: comando não encontrado
/opt/lampp/share/xampp/xampplib: linha 22: netstat: comando não encontrado
fail.
XAMPP: Starting diagnose...
XAMPP: Sorry, I've no idea what's going wrong.
XAMPP: Please contact our forum http://www.apachefriends.org/f/
Last 10 lines of "/opt/lampp/logs/error_log":
tail: não foi possível abrir '/opt/lampp/logs/error.log' para leitura: Arquivo ou diretório não encontrado
XAMPP: Starting MySQL.../opt/lampp/share/xampp/xampplib: linha 22: netstat: comando não encontrado
ok.
XAMPP: Starting ProFTPD.../opt/lampp/share/xampp/xampplib: linha 22: netstat: comando não encontrado
ok.

What should I do?

Re: Error on XAMPP start

PostPosted: 10. August 2017 17:58
by Nobbie
lksferrari wrote:What should I do?


Install the missing tools:

Code: Select all
# sudo apt-get install net-tools

Re: Error on XAMPP start

PostPosted: 11. August 2017 03:00
by lksferrari
Seems like it helped with some errors, but it still not working, when I read the error_log on /opt/lampp/logs/error_log there is this lines:

(98)Address already in use: AH00073: make_sock: unable to listen for connections on address [::]:80
(98)Address already in use: AH00073: make_sock: unable to listen for connections on address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
(98)Address already in use: AH00073: make_sock: unable to listen for connections on address [::]:80
(98)Address already in use: AH00073: make_sock: unable to listen for connections on address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
(98)Address already in use: AH00073: make_sock: unable to listen for connections on address [::]:80
(98)Address already in use: AH00073: make_sock: unable to listen for connections on address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs

Don't know how to solve this.

Re: Error on XAMPP start

PostPosted: 11. August 2017 12:43
by Nobbie
It seems you have already running another webserver. Run a process scan ("ps -fe" as root for example or "top" etc.) and look for process like apache or apache2 or httpd. Stop any webserver before starting Xampp and/or de-install other webserver.

Or start the Debian Software Manager (or similar, i dont know Debian well) and look if there is already an Apache installation on your machine.

Or use netstat program in a terminal to find out which program occupies port 80:

Code: Select all
netstat -pln


You can also try lsof instead:

Code: Select all
lsof -i -P


Finally you really should get more indepent and make use of Google. All of this can easily be found in Google, at least i found it in Google for you. Simply enter your questions into Google and scan for usefull answers.

Re: Error on XAMPP start

PostPosted: 14. November 2022 22:25
by jomp
For me doing:

sudo /etc/init.d/apache2 stop

after install net tools

worked fine.