You are not logged in.

#1 2011-08-14 16:34:10

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

[Solved] Deleted LAMPP logs, How Do I Get Them Back?

I just installed xampp and after a few hours of messing around I deleted the logs (assuming they would re-create) since I wanted to get a clean start. Once I restarted it the only log that go created was error_log with the contents of

(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

Apache also says it's not running, even though it is.

Last edited by brando56894 (2011-08-17 04:41:48)

Offline

#2 2011-08-15 19:49:53

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: [Solved] Deleted LAMPP logs, How Do I Get Them Back?

I think what is running is a previous instance of apache that wasn't shut down properly hence the messages about the port being in use.

You will have to kill the existing apache processes, then restart via the xampp startup script (you may as well delete the logs too)

Offline

#3 2011-08-15 23:11:28

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: [Solved] Deleted LAMPP logs, How Do I Get Them Back?

Run this as root will show you the processes that are already listening on port 80

netstat -tnlp

EDIT: Then you can kill them and start again...

Last edited by fukawi2 (2011-08-15 23:11:43)

Offline

#4 2011-08-16 00:11:42

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: [Solved] Deleted LAMPP logs, How Do I Get Them Back?

fukawi2 wrote:

Run this as root will show you the processes that are already listening on port 80

netstat -tnlp

EDIT: Then you can kill them and start again...


I'd never noticed the p flag in netstat!  Nice.

Offline

#5 2011-08-17 04:41:20

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Re: [Solved] Deleted LAMPP logs, How Do I Get Them Back?

I ended up just looking through the apache config files and saw references to the log files that it needed and created them. I also had apache running twice apparently since even when I stopped XAMPP I still had a bunch of httpd threads running, a simple sudo killall httpd fixed that!

Offline

#6 2011-08-17 12:48:20

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: [Solved] Deleted LAMPP logs, How Do I Get Them Back?

I think the duplicate httpds were your problem.  If there are no log files, the startup of apache should create them

Offline

Board footer

Powered by FluxBB